Search code examples
cocoaopengltransformationobjective-c++color-space

How to get OpenGL to display NV12 texture in Cocoa


I have a YUV:420 (aka NV12) frame data, how can I get OpenGL to recognize its format for glTexImage2D() rendering.

I realize that I might have to perform colorspace transformation, but is there a way that I can tell openGl to command the graphic hardware to perform the colorspace transformation?


Solution

  • I have recently verified that OpenGL doest not support NV12 formats. I had to convert my data through hardware acceleration to RGB.