YUV -> RGB based on extension: GL_EXT_YUV_target

hello everyone

i want to render a yuv data by opengles on mobile phone

It seems that i have to convert yuv to rgb in my shader.

according to the link: https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_YUV_target.txt

I add below code to my fragment shader:

uniform __samplerExternal2DY2YEXT   u_sTexture;

But how can i send the yuv raw data to a txture and bind to the sampler u_sTexture?


Parents Reply Children