+
+ register_uniform_sampler2d("tex_y", &uniform_tex_y);
+
+ if (ycbcr_input_splitting == YCBCR_INPUT_SPLIT_Y_AND_CBCR) {
+ num_channels = 2;
+ register_uniform_sampler2d("tex_cbcr", &uniform_tex_cb);
+ } else {
+ assert(ycbcr_input_splitting == YCBCR_INPUT_PLANAR);
+ num_channels = 3;
+ register_uniform_sampler2d("tex_cb", &uniform_tex_cb);
+ register_uniform_sampler2d("tex_cr", &uniform_tex_cr);
+ }