27 #define DATA_TYPE short 31 #define DATA_TYPE_OUT uchar 44 const
short left_coeff,
45 const
short middle_coeff,
46 const
short right_coeff)
48 uchar16 temp = vload16(0, left_pixel);
84 const
short mat0, const
short mat1, const
short mat2,
85 const
short mat3, const
short mat4, const
short mat5,
86 const
short mat6, const
short mat7, const
short mat8, uint
scale)
103 #ifndef DYNAMIC_MATRIX_CONVOLUTION 132 MAT0, MAT1, MAT2, MAT3, MAT4, MAT5, MAT6, MAT7, MAT8, SCALE);
138 #endif // DYNAMIC_MATRIX_CONVOLUTION
#define CONVERT_SAT(a, b)
#define IMAGE_DECLARATION(name)
__global uchar * offset(const Image *img, int x, int y)
Get the pointer position of a Image.
__kernel void convolution3x3_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 3x3 static convolution matrix to a single channel U8 input image and output a single channel ...
#define CONVERT_TO_IMAGE_STRUCT(name)
short8 convolution3x3(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, uint scale)
Apply a 3x3 convolution matrix to a single channel U8 input image and return the result.
Structure to hold Image information.
__global uchar * ptr
Pointer to the starting postion of the buffer.
#define VEC_DATA_TYPE(type, size)
convolution configure & src
short8 convolution1x3(__global const uchar *left_pixel, const short left_coeff, const short middle_coeff, const short right_coeff)
Compute a 1D horizontal convolution of size 3 for 8 bytes assuming the input is made of 1 channel of ...