The only way is to use GL_OES_EGL_image_external to load an NV12 image.
kmscube does that.

Marek

On Fri, Mar 16, 2018 at 4:10 AM, Zong, Wei <wei.z...@intel.com> wrote:

> Hello,
>
> May I ask a question? I got a NV12 image buffer and I want to render it
> with OpenGL. I know a method to do this is to bind Y/UV planes as two
> separate textures, then perform YUV to RGB conversion in fragment shader.
>
> But I want to know if Mesa provide APIs to create and bind a texture 2D
> image with NV12 format directly?
>
> Thanks,
> Zong Wei
>
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to