]> git.sesse.net Git - movit/blobdiff - ycbcr_422interleaved_input.h
Release Movit 1.3.2. (From a branch, since I do not want to break ABI compatibility...
[movit] / ycbcr_422interleaved_input.h
index b3469864d5024373b9c301d73243e4cd3fac0c81..a8c77738f752a32866f6b759ca2b564164f96c9a 100644 (file)
 // RGBA texture (from which we sample chroma). We throw away half of the color
 // channels each time, so bandwidth is wasted, but it makes for a very
 // uncomplicated shader.
+//
+// Note that if you can shuffle your data around very cheaply on the CPU
+// (say, while you're decoding it out of some other buffer anyway),
+// regular YCbCrInput with YCBCR_INPUT_SPLIT_Y_AND_CBCR will probably be
+// more efficient, as it doesn't need this bandwidth waste.
 
 #include <epoxy/gl.h>
 #include <string>
@@ -123,6 +128,8 @@ private:
        unsigned width, height;
        const unsigned char *pixel_data;
        ResourcePool *resource_pool;
+
+       GLint uniform_tex_y, uniform_tex_cbcr;
 };
 
 }  // namespace movit