]> 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 bb6ff9bebd43ffc761c538739727800a8cc60a0c..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);
@@ -44,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