This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pixel format support for EGLImage/GraphicBuffer?

I am using EGLImage in combination with Android GraphicBuffers to remove the need to copy to/from GPU memory. The problem is it seems only one format is supported (RGBA8888). I would like to confirm this, either by quering the driver or if you have the answer here.

1. Is there a way to get this information from the driver?

2. Is there a list of supported GraphicBuffer formats?

Parents
  • Hi Emil,

    You can create an EGLImageKHR then import it in OpenCL using clCreateFromEGLImageKHR

    CL uses the type of the EGLImage to find out how much data it needs to sample from the cl_image but never performs any type conversion. (Data will be interpolated only if you enable it in the image sampler).

    Therefore I would recommend using a CL_RGBA image (Not all CL or EGL image formats are supported by the extension) for your YUV data, this way you get 32bit of raw data for each image read in your kernel

    Hope this helps,

    Anthony

Reply
  • Hi Emil,

    You can create an EGLImageKHR then import it in OpenCL using clCreateFromEGLImageKHR

    CL uses the type of the EGLImage to find out how much data it needs to sample from the cl_image but never performs any type conversion. (Data will be interpolated only if you enable it in the image sampler).

    Therefore I would recommend using a CL_RGBA image (Not all CL or EGL image formats are supported by the extension) for your YUV data, this way you get 32bit of raw data for each image read in your kernel

    Hope this helps,

    Anthony

Children