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