]> git.sesse.net Git - nageru/blobdiff - jpeg_frame_view.h
Support JPEGs that are not 4:2:2.
[nageru] / jpeg_frame_view.h
index 43418192bfa1969b6f731ea579183c8696b34dbf..478c4a672388fbb8c0673d1cba791b7fd10a3e31 100644 (file)
@@ -14,6 +14,7 @@
 struct Frame {
        std::unique_ptr<uint8_t[]> y, cb, cr;
        unsigned width, height;
+       unsigned chroma_subsampling_x, chroma_subsampling_y;
 };
 
 class JPEGFrameView : public QGLWidget {
@@ -45,6 +46,7 @@ private:
        std::unique_ptr<movit::EffectChain> chain;
        std::shared_ptr<Frame> current_frame;  // So that we hold on to the pixels.
        movit::YCbCrInput *ycbcr_input;
+       movit::YCbCrFormat ycbcr_format;
 };
 
 #endif  // !defined(_JPEG_FRAME_VIEW_H)