AnsweredAssumed Answered

How to convert the UYVY and YUV2 to RGB with OpenGL ES ( i.mx6q/linux platform ) ?

Question asked by wu longsui on Apr 4, 2017
Latest reply on Apr 5, 2017 by wu longsui
How to convert the UYVY and YUV2 to RGB with OpenGL ES ( i.mx6q/linux platform ) ? 
 
(1)  I know how to convert the YUV SemiPlanar( Y placed in a buffer and UV in another buffer ) to RGB with GLSL shader, and had done it sucessful; 
(2)  But I don't know how to convert the packed UYVY 4:2:2 and YUV2 4:2:2 to RGB, which the UYVY is organized as U Y V Y U Y V Y...... (packed format), and placed in one buffer. in detail, the question is:
     (a): Which internalformat ang format shoud I assign in glTexImage2D()  or  in glTexDirectVIVMap()? 
     (b): When use rgba = texture2D()  in fragment shader, How rgba corresponding to yuv ?  If the yuv were got correctly , i can convert them to RGB properly.
 
Thanks!

Outcomes