1 // GLSL is pickier than the C++ preprocessor in if-testing for undefined
2 // tokens; do some fixups here to keep it happy.
4 #ifndef YCBCR_OUTPUT_PLANAR
5 #define YCBCR_OUTPUT_PLANAR 0
8 #ifndef YCBCR_OUTPUT_SPLIT_Y_AND_CBCR
9 #define YCBCR_OUTPUT_SPLIT_Y_AND_CBCR 0
12 #ifndef YCBCR_ALSO_OUTPUT_RGBA
13 #define YCBCR_ALSO_OUTPUT_RGBA 0
16 #if YCBCR_OUTPUT_PLANAR
20 #elif YCBCR_OUTPUT_SPLIT_Y_AND_CBCR
27 #if YCBCR_ALSO_OUTPUT_RGBA
33 #if YCBCR_ALSO_OUTPUT_RGBA
34 vec4 color[2] = INPUT(tc);
35 vec4 color0 = color[0];
36 vec4 color1 = color[1];
38 vec4 color0 = INPUT(tc);
41 #if YCBCR_OUTPUT_PLANAR
45 #elif YCBCR_OUTPUT_SPLIT_Y_AND_CBCR
52 #if YCBCR_ALSO_OUTPUT_RGBA