3939
4040#include " ojph_defs.h"
4141#include " ojph_arch.h"
42+ #include " ojph_mem.h"
4243#include " ojph_colour.h"
4344#include " ojph_colour_local.h"
4445
4546namespace ojph {
47+
48+ // defined elsewhere
49+ class line_buf ;
50+
4651 namespace local {
4752
4853 // ////////////////////////////////////////////////////////////////////////
4954 void (*cnvrt_si32_to_si32_shftd)
50- (const si32 *sp, si32 *dp , int shift, ui32 width) = NULL ;
55+ (const line_buf* src, line_buf* dst , int shift, ui32 width) = NULL ;
5156
5257 // ////////////////////////////////////////////////////////////////////////
5358 void (*cnvrt_si32_to_si32_nlt_type3)
54- (const si32* sp, si32* dp , int shift, ui32 width) = NULL ;
59+ (const line_buf* src, line_buf* dst , int shift, ui32 width) = NULL ;
5560
5661 // ////////////////////////////////////////////////////////////////////////
5762 void (*cnvrt_si32_to_float_shftd)
58- (const si32 *sp, float *dp , float mul, ui32 width) = NULL ;
63+ (const line_buf* src, line_buf* dst , float mul, ui32 width) = NULL ;
5964
6065 // ////////////////////////////////////////////////////////////////////////
6166 void (*cnvrt_si32_to_float)
62- (const si32 *sp, float *dp , float mul, ui32 width) = NULL ;
67+ (const line_buf* src, line_buf* dst , float mul, ui32 width) = NULL ;
6368
6469 // ////////////////////////////////////////////////////////////////////////
6570 void (*cnvrt_float_to_si32_shftd)
66- (const float * sp, si32 * dp, float mul, ui32 width) = NULL ;
71+ (const line_buf* sp, line_buf* dp, float mul, ui32 width) = NULL ;
6772
6873 // ////////////////////////////////////////////////////////////////////////
6974 void (*cnvrt_float_to_si32)
70- (const float * sp, si32 * dp, float mul, ui32 width) = NULL ;
75+ (const line_buf* sp, line_buf* dp, float mul, ui32 width) = NULL ;
7176
7277 // ////////////////////////////////////////////////////////////////////////
7378 void (*rct_forward)
74- (const si32 * r, const si32 * g, const si32 * b,
75- si32 * y, si32 * cb, si32 * cr, ui32 repeat) = NULL ;
79+ (const line_buf* r, const line_buf* g, const line_buf* b,
80+ line_buf* y, line_buf* cb, line_buf* cr, ui32 repeat) = NULL ;
7681
7782 // ////////////////////////////////////////////////////////////////////////
7883 void (*rct_backward)
79- (const si32 *y , const si32 *cb , const si32 *cr ,
80- si32 *r, si32 *g, si32 *b , ui32 repeat) = NULL ;
84+ (const line_buf* r , const line_buf* g , const line_buf* b ,
85+ line_buf* y, line_buf* cb, line_buf* cr , ui32 repeat) = NULL ;
8186
8287 // ////////////////////////////////////////////////////////////////////////
8388 void (*ict_forward)
@@ -86,8 +91,8 @@ namespace ojph {
8691
8792 // ////////////////////////////////////////////////////////////////////////
8893 void (*ict_backward)
89- (const float * y, const float * cb, const float * cr,
90- float * r, float * g, float * b, ui32 repeat) = NULL ;
94+ (const line_buf* y, const line_buf* cb, const line_buf* cr,
95+ line_buf* r, line_buf* g, line_buf* b, ui32 repeat) = NULL ;
9196
9297 // ////////////////////////////////////////////////////////////////////////
9398 static bool colour_transform_functions_initialized = false ;
0 commit comments