fset,
__global uchar *mat_src0, int src0_step, int src0_offset,
__global uchar *mat_src1, int src1_step, int src1_offset,
int rows, int cols, int dst_step1)
{
int x = get_global_id(0);
int y = get_global_id(1);
if ((x < cols) && (y < rows))
{
x = x << 1;
#define dst_align  ((dst_offset & 3) >> 1)
int src0_index = mad24(y, src0_step, src0_offset + x - dst_align);
int src1_index = mad24(y, src1_step, src1_offset + x - dst_align);
int dst_start  = mad24(y, dst_step, dst_offset);
int dst_end    = mad24(y, dst_step, dst_offset + dst_step1);
int dst_index  = mad24(y, dst_step, dst_offset + (x << 1) & (int)0xfffffffc);
__global uchar4 * dst  = (__global uchar4 *)(mat_dst + dst_index);
__global uchar  * src0 = mat_src0 + src0_index;
__global uchar  * src1 = src0     + 1;
__global uchar  * src2 = mat_src1 + src1_index;
__global uchar  * src3 = src2     + 1;
uchar4 dst_data = *dst;
uchar  data_0   = *(src0);
uchar  data_1   = *(src1);
uchar  data_2   = *(src2);
uchar  data_3   = *(src3);
uchar4 tmp_data = (uchar4)(data