51 uchar16 temp0 = vload16(0, src.
ptr);
52 uchar4 temp1 = vload4(0, src.
ptr + 16);
55 ushort8 l2_data = convert_ushort8((uchar8)(temp0.s02468ACE));
56 ushort8 l1_data = convert_ushort8((uchar8)(temp0.s13579BDF));
57 ushort8 m_data = convert_ushort8((uchar8)(temp0.s2468, temp0.sACE, temp1.s0));
58 ushort8 r1_data = convert_ushort8((uchar8)(temp0.s3579, temp0.sBDF, temp1.s1));
59 ushort8 r2_data = convert_ushort8((uchar8)(temp0.s468A, temp0.sCE, temp1.s02));
62 ushort8 pixels = l2_data + r2_data;
63 pixels += l1_data * (ushort8)4;
64 pixels += m_data * (ushort8)6;
65 pixels += r1_data * (ushort8)4;
68 vstore8(pixels, 0, (__global ushort *)dst.
ptr);
96 ushort8 u2_data = vload8(0, (__global ushort *)
offset(&src, 0, 0));
97 ushort8 u1_data = vload8(0, (__global ushort *)
offset(&src, 0, 1));
98 ushort8 m_data = vload8(0, (__global ushort *)
offset(&src, 0, 2));
99 ushort8 d1_data = vload8(0, (__global ushort *)
offset(&src, 0, 3));
100 ushort8 d2_data = vload8(0, (__global ushort *)
offset(&src, 0, 4));
103 ushort8 pixels = u2_data + d2_data;
104 pixels += u1_data * (ushort8)4;
105 pixels += m_data * (ushort8)6;
106 pixels += d1_data * (ushort8)4;
109 pixels >>= (ushort8)8;
112 vstore8(convert_uchar8_sat(pixels), 0, dst.
ptr);
#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)
__kernel void gaussian5x1_sub_y(__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)
Computes the Gaussian Filter 5x1 + sub-sampling along the Y direction.
__kernel void gaussian1x5_sub_x(__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)
Computes the Gaussian Filter 1x5 + sub-sampling along the X direction.
Structure to hold Image information.
__global uchar * ptr
Pointer to the starting postion of the buffer.
convolution configure & src