cconvYV12.c revision 6035a3d1ce01a78c316578f23393c0b7edca0548
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* texture internalFormat: GL_LUMINANCE
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * size: width X height
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync * data format: GL_LUMINANCE
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync/* YV12-rgb888 conversion shader */
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync vec4 clrV = texture2DRect(uVTex, vec2(gl_TexCoord[2]));
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync vec4 clrU = texture2DRect(uUTex, vec2(gl_TexCoord[3]));
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync /* convert it to AYUV (for the GL_BGRA_EXT texture this is mapped as follows:
a48399c41d6eb8b66ad69c050ad263af36873e9cvboxsync * V -> A */
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync// gl_FragColor = vec4(clrY.r,clrY.r,clrY.r,1.0);