]> git.sesse.net Git - nageru/blobdiff - theme.h
Give frames a pixel format.
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index d5657fe0309b2711b8a70ca76ac3227a60d927a1..4394513cceeb53a8729994e6f1966e152f53ac5b 100644 (file)
--- a/theme.h
+++ b/theme.h
@@ -10,6 +10,7 @@
 #include <string>
 #include <vector>
 
+#include "bmusb/bmusb.h"
 #include "ref_counted_frame.h"
 
 struct InputState;
@@ -87,7 +88,7 @@ private:
 // the mixer, and communicates that state over to the actual YCbCrInput.
 class LiveInputWrapper {
 public:
-       LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bool override_bounce, bool deinterlace);
+       LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bmusb::PixelFormat pixel_format, bool override_bounce, bool deinterlace);
 
        void connect_signal(int signal_num);
        movit::Effect *get_effect() const
@@ -101,6 +102,7 @@ public:
 
 private:
        Theme *theme;  // Not owned by us.
+       bmusb::PixelFormat pixel_format;
        std::vector<movit::YCbCrInput *> inputs;  // Multiple ones if deinterlacing. Owned by the chain.
        movit::Effect *deinterlace_effect = nullptr;  // Owned by the chain.
        bool deinterlace;