- // Positioning of the chroma samples. MPEG-1 and JPEG is (0.5, 0.5);
- // MPEG-2 and newer typically are (0.0, 0.5).
- float chroma_x_position, chroma_y_position;
+#include "effect.h"
+#include "effect_chain.h"
+#include "image_format.h"
+#include "input.h"
+#include "ycbcr.h"
+
+namespace movit {
+
+class ResourcePool;
+
+// Whether the data is fully planar (Y', Cb and Cr in one texture each)
+// or not. Note that this input does currently not support fully interleaved
+// data (Y', Cb and Cr next to each other), as 4:4:4 interleaved Y'CbCr seems
+// to be rare; however, YCbCr422InterleavedInput supports the important special
+// case of 4:2:2 interleaved.
+enum YCbCrInputSplitting {
+ // The standard, default case; Y', Cb and Cr in one texture each.
+ YCBCR_INPUT_PLANAR,
+
+ // Y' in one texture, and then Cb and Cr interleaved in one texture.
+ // In particular, this is a superset of the relatively popular NV12 mode.
+ // If you specify this mode, the “Cr” pointer texture will be unused
+ // (the ”Cb” texture contains both).
+ YCBCR_INPUT_SPLIT_Y_AND_CBCR,