cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Wheedle
Journeyman III

image2D and BGR 24 bits image

Hello,

I have a simple question:

I want to process with OpenCL some video encoded in BGR 24 bits that I read with OpenCV. Basically it returns me a pointer to the frame data.

For the moment I use OCL buffers, and I want to use image2D instead.

It should be something like :


cl_image_format rgb_format;

          rgb_format.image_channel_order = CL_RGB;

          rgb_format.image_channel_data_type = CL_UNSIGNED_INT8;

but when I've checked at the standard the cl_image_format that i need to create is not allow.

Am I wrong? Did I miss something? And if I understood properly How could i solve my problem?

Thanks for your time,

Etienne

0 Likes
1 Solution
nou
Exemplar

you must use CL_RGBA. convert 24 bit image to 32 bit image manualy on CPU or write kernel which take buffer and copy it to image.

View solution in original post

0 Likes
2 Replies
nou
Exemplar

you must use CL_RGBA. convert 24 bit image to 32 bit image manualy on CPU or write kernel which take buffer and copy it to image.

0 Likes

Yeah,

just what I feared.

Ok thanks for the reply. I'm gonna try that.

Bye

0 Likes