Problems converting YV12 to RGB through GLSL
问题 I'm trying to accomplish YV12 to RGB conversion mentioned in this post with GLSL shaders. My application loads a raw YV12 frame from the disk and tries to perform the conversion using GLSL shaders. However, the resulting image is flipped vertically and has some color issues. I think the problem may be that the image is being read as an array of char (1 byte) and then converted to an array of GLushort (2 bytes). What do you think? This is how the raw YUV frame looks like: and the raw frame