Conversion of YUV data into Image format Opencl

人走茶凉 提交于 2019-12-07 08:21:28

The way we do it is we pass YUV data in an OpenCL Buffer, and run a kernel that converts it to RGB in an OpenCL Image which is used for further RGB processing. Some YUV formats could be passed as an Image; if yours can then feel free to do so (but many can't, such as v210, so we always use Buffers). At the end of our processing chain if we need YUV again we run a kernel that converts an RGB[A] Image into a YUV Buffer.

I have resolved the issue with respect to the concern. I didnt have to convert into any other format. I used the same YUV format read it perfectly on the device side as well. The only extra inclusion I did was include CL_RGBA as image_format.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!