26 #if defined(FIXED_POINT_POSITION) 31 #define CONVERT_DOWN(x, in_type, out_type, fixed_point_position) CONVERT_DOWN1_SAT(x, in_type, out_type, fixed_point_position) 32 #define CONVERT_DOWN1_SAT(x, in_type, out_type, fixed_point_position) convert_##out_type##_##in_type##_sat(x, fixed_point_position) 34 #define CONVERT_DOWN(x, in_type, out_type, fixed_point_position) CONVERT_DOWN1(x, in_type, out_type, fixed_point_position) 35 #define CONVERT_DOWN1(x, in_type, out_type, fixed_point_position) convert_##out_type##_##in_type(x, fixed_point_position) 38 #define CONVERT_UP(x, in_type, out_type, fixed_point_position) CONVERT_UP1(x, in_type, out_type, fixed_point_position) 39 #define CONVERT_UP1(x, in_type, out_type, fixed_point_position) convert_##out_type##_##in_type(x, fixed_point_position) 44 #define CONVERT_DOWN(x, type) CONVERT_SAT(x, type) 46 #define CONVERT_DOWN(x, type) CONVERT(x, type) 49 #define CONVERT_UP(x, type) CONVERT(x, type) 85 in_data = vload16(0, (__global DATA_TYPE_IN *)in.
ptr);
87 #if defined(FIXED_POINT_POSITION) 126 in_data = vload16(0, (__global DATA_TYPE_IN *)in.
ptr);
128 #if defined(FIXED_POINT_POSITION) #define CONVERT_DOWN(x, type)
#define IMAGE_DECLARATION(name)
__kernel void convert_depth_down(__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes, const int shift)
This function performs a down-scaling depth conversion.
#define CONVERT_TO_IMAGE_STRUCT(name)
Structure to hold Image information.
__global uchar * ptr
Pointer to the starting postion of the buffer.
#define VEC_DATA_TYPE(type, size)
#define CONVERT_UP(x, type)
__kernel void convert_depth_up(__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes, const int shift)
This function performs a up-scaling depth conversion.