]> git.sesse.net Git - nageru/blobdiff - theme.h
Use the new texture bounce override instead of relying on a patched Movit.
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index f35c6d5be472eddb3ad9b02b9864e2ab6687b963..80b01badf3f1a1c0b0a38f37e15f9270f4ee84d8 100644 (file)
--- a/theme.h
+++ b/theme.h
 #include <movit/effect_chain.h>
 #include <movit/ycbcr_input.h>
 
+class NonBouncingYCbCrInput : public movit::YCbCrInput {
+public:
+       NonBouncingYCbCrInput(const movit::ImageFormat &image_format,
+                             const movit::YCbCrFormat &ycbcr_format,
+                             unsigned width, unsigned height,
+                             movit::YCbCrInputSplitting ycbcr_input_splitting = movit::YCBCR_INPUT_PLANAR)
+           : movit::YCbCrInput(image_format, ycbcr_format, width, height, ycbcr_input_splitting) {}
+
+       bool override_disable_bounce() const override { return true; }
+};
+
 class Theme {
 public:
        Theme(const char *filename, movit::ResourcePool *resource_pool);
@@ -26,6 +37,8 @@ public:
        }
        int get_num_channels() { return num_channels; }
 
+       std::vector<std::string> get_transition_names(float t);
+
        void connect_signal(movit::YCbCrInput *input, int signal_num);
        void transition_clicked(int transition_num, float t);
        void channel_clicked(int preview_num);
@@ -42,7 +55,7 @@ private:
 
 class LiveInputWrapper {
 public:
-       LiveInputWrapper(Theme *theme, movit::EffectChain *chain);
+       LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bool override_bounce);
 
        void connect_signal(int signal_num);
        movit::YCbCrInput *get_input() const