| liboil.h | | liboil.h | |
| | | | |
| skipping to change at line 49 | | skipping to change at line 49 | |
| * @dest: | | * @dest: | |
| * @src: | | * @src: | |
| * @n_bytes: | | * @n_bytes: | |
| * | | * | |
| * Macro that uses oil_copy_u8() to provide an implementation of | | * Macro that uses oil_copy_u8() to provide an implementation of | |
| * memcpy(). Note that oil_copy_u8() is optimized for short copies, | | * memcpy(). Note that oil_copy_u8() is optimized for short copies, | |
| * and may be very slow for large copies compared to alternatives, | | * and may be very slow for large copies compared to alternatives, | |
| * including the system memcpy(). | | * including the system memcpy(). | |
| */ | | */ | |
| #define oil_memcpy(dest,src,n_bytes) \ | | #define oil_memcpy(dest,src,n_bytes) \ | |
|
| oil_copy_u8((void *)(dest),(void *)(src),(n_bytes)) | | oil_copy_u8((void *)(dest),(const void *)(src),(n_bytes)) | |
| | | | |
| /** | | /** | |
| * oil_trans8x8_s16: | | * oil_trans8x8_s16: | |
| * @dest: | | * @dest: | |
| * @dstr: | | * @dstr: | |
| * @src: | | * @src: | |
| * @sstr: | | * @sstr: | |
| * | | * | |
| * Macro wrapping trans8x8_u16(). | | * Macro wrapping trans8x8_u16(). | |
| */ | | */ | |
| #define oil_trans8x8_s16(dest, dstr, src, sstr) \ | | #define oil_trans8x8_s16(dest, dstr, src, sstr) \ | |
|
| oil_trans8x8_u16((uint16_t *)dest, dstr, (uint16_t *)src, sstr) | | oil_trans8x8_u16((uint16_t *)dest, dstr, (const uint16_t *)src, sstr) | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| liboilclasses.h | | liboilclasses.h | |
| | | | |
| skipping to change at line 47 | | skipping to change at line 47 | |
| #endif | | #endif | |
| | | | |
| OIL_DECLARE_CLASS(abs_f32_f32); | | OIL_DECLARE_CLASS(abs_f32_f32); | |
| OIL_DECLARE_CLASS(abs_f64_f64); | | OIL_DECLARE_CLASS(abs_f64_f64); | |
| OIL_DECLARE_CLASS(abs_u16_s16); | | OIL_DECLARE_CLASS(abs_u16_s16); | |
| OIL_DECLARE_CLASS(abs_u32_s32); | | OIL_DECLARE_CLASS(abs_u32_s32); | |
| OIL_DECLARE_CLASS(abs_u8_s8); | | OIL_DECLARE_CLASS(abs_u8_s8); | |
| OIL_DECLARE_CLASS(add_const_rshift_s16); | | OIL_DECLARE_CLASS(add_const_rshift_s16); | |
| OIL_DECLARE_CLASS(add_f32); | | OIL_DECLARE_CLASS(add_f32); | |
| OIL_DECLARE_CLASS(add_s16); | | OIL_DECLARE_CLASS(add_s16); | |
|
| | | OIL_DECLARE_CLASS(add_s16_u8); | |
| OIL_DECLARE_CLASS(argb_paint_u8); | | OIL_DECLARE_CLASS(argb_paint_u8); | |
| OIL_DECLARE_CLASS(average2_u8); | | OIL_DECLARE_CLASS(average2_u8); | |
| OIL_DECLARE_CLASS(ayuv2argb_u8); | | OIL_DECLARE_CLASS(ayuv2argb_u8); | |
| OIL_DECLARE_CLASS(ayuv2uyvy); | | OIL_DECLARE_CLASS(ayuv2uyvy); | |
| OIL_DECLARE_CLASS(ayuv2yuyv); | | OIL_DECLARE_CLASS(ayuv2yuyv); | |
| OIL_DECLARE_CLASS(ayuv2yvyu); | | OIL_DECLARE_CLASS(ayuv2yvyu); | |
| OIL_DECLARE_CLASS(clamp_f32); | | OIL_DECLARE_CLASS(clamp_f32); | |
| OIL_DECLARE_CLASS(clamp_f64); | | OIL_DECLARE_CLASS(clamp_f64); | |
| OIL_DECLARE_CLASS(clamp_s16); | | OIL_DECLARE_CLASS(clamp_s16); | |
| OIL_DECLARE_CLASS(clamp_s32); | | OIL_DECLARE_CLASS(clamp_s32); | |
| | | | |
| skipping to change at line 372 | | skipping to change at line 373 | |
| OIL_DECLARE_CLASS(splat_u32_ns); | | OIL_DECLARE_CLASS(splat_u32_ns); | |
| OIL_DECLARE_CLASS(splat_u8); | | OIL_DECLARE_CLASS(splat_u8); | |
| OIL_DECLARE_CLASS(splat_u8_ns); | | OIL_DECLARE_CLASS(splat_u8_ns); | |
| OIL_DECLARE_CLASS(split_135); | | OIL_DECLARE_CLASS(split_135); | |
| OIL_DECLARE_CLASS(split_53); | | OIL_DECLARE_CLASS(split_53); | |
| OIL_DECLARE_CLASS(split_approx97); | | OIL_DECLARE_CLASS(split_approx97); | |
| OIL_DECLARE_CLASS(split_daub97); | | OIL_DECLARE_CLASS(split_daub97); | |
| OIL_DECLARE_CLASS(squaresum_f64); | | OIL_DECLARE_CLASS(squaresum_f64); | |
| OIL_DECLARE_CLASS(squaresum_shifted_s16); | | OIL_DECLARE_CLASS(squaresum_shifted_s16); | |
| OIL_DECLARE_CLASS(subtract_f32); | | OIL_DECLARE_CLASS(subtract_f32); | |
|
| | | OIL_DECLARE_CLASS(subtract_s16); | |
| | | OIL_DECLARE_CLASS(subtract_s16_u8); | |
| OIL_DECLARE_CLASS(sum_f64); | | OIL_DECLARE_CLASS(sum_f64); | |
| OIL_DECLARE_CLASS(sum_s16); | | OIL_DECLARE_CLASS(sum_s16); | |
| OIL_DECLARE_CLASS(swab_u16); | | OIL_DECLARE_CLASS(swab_u16); | |
| OIL_DECLARE_CLASS(swab_u32); | | OIL_DECLARE_CLASS(swab_u32); | |
| OIL_DECLARE_CLASS(synth_135); | | OIL_DECLARE_CLASS(synth_135); | |
| OIL_DECLARE_CLASS(synth_53); | | OIL_DECLARE_CLASS(synth_53); | |
| OIL_DECLARE_CLASS(synth_approx97); | | OIL_DECLARE_CLASS(synth_approx97); | |
| OIL_DECLARE_CLASS(synth_daub97); | | OIL_DECLARE_CLASS(synth_daub97); | |
| OIL_DECLARE_CLASS(tablelookup_u8); | | OIL_DECLARE_CLASS(tablelookup_u8); | |
| OIL_DECLARE_CLASS(testzero_u8); | | OIL_DECLARE_CLASS(testzero_u8); | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 3 lines changed or added | |
|
| liboildebug.h | | liboildebug.h | |
| | | | |
| skipping to change at line 113 | | skipping to change at line 113 | |
| #define OIL_FUNCTION __func__ | | #define OIL_FUNCTION __func__ | |
| #else | | #else | |
| #define OIL_FUNCTION "" | | #define OIL_FUNCTION "" | |
| #endif | | #endif | |
| | | | |
| /** | | /** | |
| * OIL_DEBUG_PRINT: | | * OIL_DEBUG_PRINT: | |
| * @level: | | * @level: | |
| * @...: | | * @...: | |
| * | | * | |
|
| * Macro to call _oil_debug_print() with the correct values for | | * Macro to call oil_debug_print() with the correct values for | |
| * the name of the source file, line of source file, and function. | | * the name of the source file, line of source file, and function. | |
| */ | | */ | |
| #define OIL_DEBUG_PRINT(level, ...) do { \ | | #define OIL_DEBUG_PRINT(level, ...) do { \ | |
|
| _oil_debug_print((level), __FILE__, OIL_FUNCTION, __LINE__, __VA_ARGS__);
\ | | oil_debug_print((level), __FILE__, OIL_FUNCTION, __LINE__, __VA_ARGS__);
\ | |
| }while(0) | | }while(0) | |
| | | | |
| void oil_debug_set_print_function (OilDebugPrintFunc func); | | void oil_debug_set_print_function (OilDebugPrintFunc func); | |
| int oil_debug_get_level (void); | | int oil_debug_get_level (void); | |
| void oil_debug_set_level (int level); | | void oil_debug_set_level (int level); | |
| | | | |
| void _oil_debug_init (void); | | void _oil_debug_init (void); | |
| | | | |
|
| void _oil_debug_print (int level, const char *file, const char *func, | | void oil_debug_print (int level, const char *file, const char *func, | |
| int line, const char *format, ...); | | int line, const char *format, ...); | |
| | | | |
| #endif | | #endif | |
| | | | |
End of changes. 3 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added | |
|
| liboilfuncs.h | | liboilfuncs.h | |
| | | | |
| skipping to change at line 63 | | skipping to change at line 63 | |
| #define oil_abs_u8_s8 ((_oil_type_abs_u8_s8)(*(void **)oil_function_class_p
tr_abs_u8_s8)) | | #define oil_abs_u8_s8 ((_oil_type_abs_u8_s8)(*(void **)oil_function_class_p
tr_abs_u8_s8)) | |
| extern OilFunctionClass *oil_function_class_ptr_add_const_rshift_s16; | | extern OilFunctionClass *oil_function_class_ptr_add_const_rshift_s16; | |
| typedef void (*_oil_type_add_const_rshift_s16)(int16_t * d1, const int16_t
* s1, const int16_t * s2_2, int n); | | typedef void (*_oil_type_add_const_rshift_s16)(int16_t * d1, const int16_t
* s1, const int16_t * s2_2, int n); | |
| #define oil_add_const_rshift_s16 ((_oil_type_add_const_rshift_s16)(*(void *
*)oil_function_class_ptr_add_const_rshift_s16)) | | #define oil_add_const_rshift_s16 ((_oil_type_add_const_rshift_s16)(*(void *
*)oil_function_class_ptr_add_const_rshift_s16)) | |
| extern OilFunctionClass *oil_function_class_ptr_add_f32; | | extern OilFunctionClass *oil_function_class_ptr_add_f32; | |
| typedef void (*_oil_type_add_f32)(float * d, const float * s1, const float
* s2, int n); | | typedef void (*_oil_type_add_f32)(float * d, const float * s1, const float
* s2, int n); | |
| #define oil_add_f32 ((_oil_type_add_f32)(*(void **)oil_function_class_ptr_a
dd_f32)) | | #define oil_add_f32 ((_oil_type_add_f32)(*(void **)oil_function_class_ptr_a
dd_f32)) | |
| extern OilFunctionClass *oil_function_class_ptr_add_s16; | | extern OilFunctionClass *oil_function_class_ptr_add_s16; | |
| typedef void (*_oil_type_add_s16)(int16_t * d, const int16_t * src1, const
int16_t * src2, int n); | | typedef void (*_oil_type_add_s16)(int16_t * d, const int16_t * src1, const
int16_t * src2, int n); | |
| #define oil_add_s16 ((_oil_type_add_s16)(*(void **)oil_function_class_ptr_a
dd_s16)) | | #define oil_add_s16 ((_oil_type_add_s16)(*(void **)oil_function_class_ptr_a
dd_s16)) | |
|
| | | extern OilFunctionClass *oil_function_class_ptr_add_s16_u8; | |
| | | typedef void (*_oil_type_add_s16_u8)(int16_t * d, const int16_t * src1, con | |
| | | st uint8_t * src2, int n); | |
| | | #define oil_add_s16_u8 ((_oil_type_add_s16_u8)(*(void **)oil_function_class | |
| | | _ptr_add_s16_u8)) | |
| extern OilFunctionClass *oil_function_class_ptr_argb_paint_u8; | | extern OilFunctionClass *oil_function_class_ptr_argb_paint_u8; | |
| typedef void (*_oil_type_argb_paint_u8)(uint8_t * i_4xn, const uint8_t * s1
_4, const uint8_t * s2_n, int n); | | typedef void (*_oil_type_argb_paint_u8)(uint8_t * i_4xn, const uint8_t * s1
_4, const uint8_t * s2_n, int n); | |
| #define oil_argb_paint_u8 ((_oil_type_argb_paint_u8)(*(void **)oil_function
_class_ptr_argb_paint_u8)) | | #define oil_argb_paint_u8 ((_oil_type_argb_paint_u8)(*(void **)oil_function
_class_ptr_argb_paint_u8)) | |
| extern OilFunctionClass *oil_function_class_ptr_average2_u8; | | extern OilFunctionClass *oil_function_class_ptr_average2_u8; | |
| typedef void (*_oil_type_average2_u8)(uint8_t * d, int dstr, const uint8_t
* s1, int sstr1, const uint8_t * s2, int sstr2, int n); | | typedef void (*_oil_type_average2_u8)(uint8_t * d, int dstr, const uint8_t
* s1, int sstr1, const uint8_t * s2, int sstr2, int n); | |
| #define oil_average2_u8 ((_oil_type_average2_u8)(*(void **)oil_function_cla
ss_ptr_average2_u8)) | | #define oil_average2_u8 ((_oil_type_average2_u8)(*(void **)oil_function_cla
ss_ptr_average2_u8)) | |
| extern OilFunctionClass *oil_function_class_ptr_ayuv2argb_u8; | | extern OilFunctionClass *oil_function_class_ptr_ayuv2argb_u8; | |
| typedef void (*_oil_type_ayuv2argb_u8)(uint8_t * d_4xn, const uint8_t * s_4
xn, int n); | | typedef void (*_oil_type_ayuv2argb_u8)(uint8_t * d_4xn, const uint8_t * s_4
xn, int n); | |
| #define oil_ayuv2argb_u8 ((_oil_type_ayuv2argb_u8)(*(void **)oil_function_c
lass_ptr_ayuv2argb_u8)) | | #define oil_ayuv2argb_u8 ((_oil_type_ayuv2argb_u8)(*(void **)oil_function_c
lass_ptr_ayuv2argb_u8)) | |
| extern OilFunctionClass *oil_function_class_ptr_ayuv2uyvy; | | extern OilFunctionClass *oil_function_class_ptr_ayuv2uyvy; | |
| | | | |
| skipping to change at line 1038 | | skipping to change at line 1041 | |
| #define oil_split_daub97 ((_oil_type_split_daub97)(*(void **)oil_function_c
lass_ptr_split_daub97)) | | #define oil_split_daub97 ((_oil_type_split_daub97)(*(void **)oil_function_c
lass_ptr_split_daub97)) | |
| extern OilFunctionClass *oil_function_class_ptr_squaresum_f64; | | extern OilFunctionClass *oil_function_class_ptr_squaresum_f64; | |
| typedef void (*_oil_type_squaresum_f64)(double * d, const double * s, int n
); | | typedef void (*_oil_type_squaresum_f64)(double * d, const double * s, int n
); | |
| #define oil_squaresum_f64 ((_oil_type_squaresum_f64)(*(void **)oil_function
_class_ptr_squaresum_f64)) | | #define oil_squaresum_f64 ((_oil_type_squaresum_f64)(*(void **)oil_function
_class_ptr_squaresum_f64)) | |
| extern OilFunctionClass *oil_function_class_ptr_squaresum_shifted_s16; | | extern OilFunctionClass *oil_function_class_ptr_squaresum_shifted_s16; | |
| typedef void (*_oil_type_squaresum_shifted_s16)(uint32_t * d, const int16_t
* s, int n); | | typedef void (*_oil_type_squaresum_shifted_s16)(uint32_t * d, const int16_t
* s, int n); | |
| #define oil_squaresum_shifted_s16 ((_oil_type_squaresum_shifted_s16)(*(void
**)oil_function_class_ptr_squaresum_shifted_s16)) | | #define oil_squaresum_shifted_s16 ((_oil_type_squaresum_shifted_s16)(*(void
**)oil_function_class_ptr_squaresum_shifted_s16)) | |
| extern OilFunctionClass *oil_function_class_ptr_subtract_f32; | | extern OilFunctionClass *oil_function_class_ptr_subtract_f32; | |
| typedef void (*_oil_type_subtract_f32)(float * d, const float * s1, const f
loat * s2, int n); | | typedef void (*_oil_type_subtract_f32)(float * d, const float * s1, const f
loat * s2, int n); | |
| #define oil_subtract_f32 ((_oil_type_subtract_f32)(*(void **)oil_function_c
lass_ptr_subtract_f32)) | | #define oil_subtract_f32 ((_oil_type_subtract_f32)(*(void **)oil_function_c
lass_ptr_subtract_f32)) | |
|
| | | extern OilFunctionClass *oil_function_class_ptr_subtract_s16; | |
| | | typedef void (*_oil_type_subtract_s16)(int16_t * d, const int16_t * src1, c | |
| | | onst int16_t * src2, int n); | |
| | | #define oil_subtract_s16 ((_oil_type_subtract_s16)(*(void **)oil_function_c | |
| | | lass_ptr_subtract_s16)) | |
| | | extern OilFunctionClass *oil_function_class_ptr_subtract_s16_u8; | |
| | | typedef void (*_oil_type_subtract_s16_u8)(int16_t * d, const int16_t * src1 | |
| | | , const uint8_t * src2, int n); | |
| | | #define oil_subtract_s16_u8 ((_oil_type_subtract_s16_u8)(*(void **)oil_func | |
| | | tion_class_ptr_subtract_s16_u8)) | |
| extern OilFunctionClass *oil_function_class_ptr_sum_f64; | | extern OilFunctionClass *oil_function_class_ptr_sum_f64; | |
| typedef void (*_oil_type_sum_f64)(double * d_1, const double * s, int sstr,
int n); | | typedef void (*_oil_type_sum_f64)(double * d_1, const double * s, int sstr,
int n); | |
| #define oil_sum_f64 ((_oil_type_sum_f64)(*(void **)oil_function_class_ptr_s
um_f64)) | | #define oil_sum_f64 ((_oil_type_sum_f64)(*(void **)oil_function_class_ptr_s
um_f64)) | |
| extern OilFunctionClass *oil_function_class_ptr_sum_s16; | | extern OilFunctionClass *oil_function_class_ptr_sum_s16; | |
| typedef void (*_oil_type_sum_s16)(int16_t * d_1, const int16_t * s, int n); | | typedef void (*_oil_type_sum_s16)(int16_t * d_1, const int16_t * s, int n); | |
| #define oil_sum_s16 ((_oil_type_sum_s16)(*(void **)oil_function_class_ptr_s
um_s16)) | | #define oil_sum_s16 ((_oil_type_sum_s16)(*(void **)oil_function_class_ptr_s
um_s16)) | |
| extern OilFunctionClass *oil_function_class_ptr_swab_u16; | | extern OilFunctionClass *oil_function_class_ptr_swab_u16; | |
| typedef void (*_oil_type_swab_u16)(uint16_t * d_n, const uint16_t * s_n, in
t n); | | typedef void (*_oil_type_swab_u16)(uint16_t * d_n, const uint16_t * s_n, in
t n); | |
| #define oil_swab_u16 ((_oil_type_swab_u16)(*(void **)oil_function_class_ptr
_swab_u16)) | | #define oil_swab_u16 ((_oil_type_swab_u16)(*(void **)oil_function_class_ptr
_swab_u16)) | |
| extern OilFunctionClass *oil_function_class_ptr_swab_u32; | | extern OilFunctionClass *oil_function_class_ptr_swab_u32; | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 15 lines changed or added | |
|