Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Manish_K_
Beginner
44 Views

change image format of image object in opencl

I have written a small code to create an image object in opencl as below:

img_fmt.image_channel_order = CL_R;
img_fmt.image_channel_data_type = CL_UNSIGNED_INT8;      
memobj_in_luma = clCreateImage2D(p->context, CL_MEM_READ_ONLY, &img_fmt, p->width, p->height, 0, NULL, &ret);

After creating this object I want to change the image format to CL_RGBA. Is there any way to do this?

0 Kudos
1 Reply
Robert_I_Intel
Employee
44 Views

Manish,

Not that I know of. I think you need to create another image.