602
社区成员
发帖
与我相关
我的任务
分享
const sampler_t sampler2 = CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_LINEAR | CLK_NORMALIZED_COORDS_FALSE;
__kernel void fusion_yuv_in_a_row(__global const float *maptable,
read_only image2d_t yimg,
read_only image2d_t uvimg,
write_only image2d_t dst_yimg,
write_only image2d_t dst_uvimg,
int width_fusion,//输出图像宽度
int width_view,//view宽度
int width_trans,//过渡带宽度
int height,//输出图像高度
int org_w,//原始图像单图宽度(用来确定write_imagef的偏移量)
int viewnum)
{
int src_offset, dst_offset;
int src_offset_left, src_offset_right;
int pixloc, pixloc_left, pixloc_right;
float mapx, mapy, mapx_left, mapx_right, mapy_left, mapy_right;
float4 src_val, src_val_left, src_val_right;
int i;
int x = (int)get_global_id(0);
int y = (int)get_global_id(1);
int width_mono = width_view - width_trans;
int width_lut = width_view + width_trans;
}
program_handle = fopen(filename, "rb");