Re: [Mesa-dev] Create texture2D from NV12

2018-03-19 Thread Marek Olšák
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 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 plane

[Mesa-dev] Create texture2D from NV12

2018-03-16 Thread Zong, Wei
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