27 #define DATA_TYPE short 31 #define COMPUTE_TYPE int 35 #define DATA_TYPE_OUT uchar 53 __global const uchar *left_pixel,
54 const
short left1_coeff,
55 const
short left2_coeff,
56 const
short left3_coeff,
57 const
short middle_coeff,
58 const
short right1_coeff,
59 const
short right2_coeff,
60 const
short right3_coeff)
62 uchar16 temp = vload16(0, left_pixel);
99 const
short up1_coeff,
100 const
short up2_coeff,
101 const
short up3_coeff,
102 const
short middle_coeff,
103 const
short down1_coeff,
104 const
short down2_coeff,
105 const
short down3_coeff)
204 const short mat0,
const short mat1,
const short mat2,
const short mat3,
const short mat4,
205 const short mat5,
const short mat6,
const short mat7,
const short mat8,
const short mat9,
206 const short mat10,
const short mat11,
const short mat12,
const short mat13,
const short mat14,
207 const short mat15,
const short mat16,
const short mat17,
const short mat18,
const short mat19,
208 const short mat20,
const short mat21,
const short mat22,
const short mat23,
const short mat24,
209 const short mat25,
const short mat26,
const short mat27,
const short mat28,
const short mat29,
210 const short mat30,
const short mat31,
const short mat32,
const short mat33,
const short mat34,
211 const short mat35,
const short mat36,
const short mat37,
const short mat38,
const short mat39,
212 const short mat40,
const short mat41,
const short mat42,
const short mat43,
const short mat44,
213 const short mat45,
const short mat46,
const short mat47,
const short mat48, uint scale)
231 return convert_short8_sat(pixels);
234 #ifndef DYNAMIC_MATRIX_CONVOLUTION 296 pixels =
convolution7x1(&src, MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13);
331 MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8, MAT9, MAT10, MAT11, MAT12, MAT13,
332 MAT14, MAT15, MAT16, MAT17, MAT18, MAT19, MAT20, MAT21, MAT22, MAT23, MAT24, MAT25,
333 MAT26, MAT27, MAT28, MAT29, MAT30, MAT31, MAT32, MAT33, MAT34, MAT35, MAT36, MAT37,
334 MAT38, MAT39, MAT40, MAT41, MAT42, MAT43, MAT44, MAT45, MAT46, MAT47, MAT48, SCALE);
340 #endif // DYNAMIC_MATRIX_CONVOLUTION __kernel void convolution_separable1x7_static(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)
Apply a 1x7 static convolution matrix to a single channel U8 input image and output a single temporar...
#define IMAGE_DECLARATION(name)
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
#define CONVERT_TO_IMAGE_STRUCT(name)
#define VEC_DATA_TYPE(type, size)
short8 convolution7x7(Image *src, const short mat0, const short mat1, const short mat2, const short mat3, const short mat4, const short mat5, const short mat6, const short mat7, const short mat8, const short mat9, const short mat10, const short mat11, const short mat12, const short mat13, const short mat14, const short mat15, const short mat16, const short mat17, const short mat18, const short mat19, const short mat20, const short mat21, const short mat22, const short mat23, const short mat24, const short mat25, const short mat26, const short mat27, const short mat28, const short mat29, const short mat30, const short mat31, const short mat32, const short mat33, const short mat34, const short mat35, const short mat36, const short mat37, const short mat38, const short mat39, const short mat40, const short mat41, const short mat42, const short mat43, const short mat44, const short mat45, const short mat46, const short mat47, const short mat48, uint scale)
Apply a 7x7 convolution matrix to a single channel U8 input image and return the result.
__kernel void convolution7x7_static(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)
Apply a static 7x7 convolution matrix to a single channel U8 input image and output a single channel ...
__kernel void convolution_separable7x1_static(__global uchar *src_ptr, uint src_stride_x, uint src_step_x, uint src_stride_y, uint src_step_y, uint src_offset_first_element_in_bytes, __global uchar *dst_ptr, uint dst_stride_x, uint dst_step_x, uint dst_stride_y, uint dst_step_y, uint dst_offset_first_element_in_bytes)
Apply a 7x1 static convolution matrix to a single channel U8 input image and output a single channel ...
int8 convolution7x1(Image *src, const short up1_coeff, const short up2_coeff, const short up3_coeff, const short middle_coeff, const short down1_coeff, const short down2_coeff, const short down3_coeff)
Compute a 1D vertical convolution of size 7 for 8 bytes assuming the input is made of 1 channel of 1 ...
Structure to hold Image information.
#define CONVERT_SAT(x, type)
__global uchar * ptr
Pointer to the starting postion of the buffer.
short8 convolution1x7(__global const uchar *left_pixel, const short left1_coeff, const short left2_coeff, const short left3_coeff, const short middle_coeff, const short right1_coeff, const short right2_coeff, const short right3_coeff)
Compute a 1D horizontal convolution of size 7 for 8 bytes assuming the input is made of 1 channel of ...