]> git.sesse.net Git - nageru/blobdiff - theme.h
Specify unspecified gamma instead of lying and saying we use Rec. 709. Again, for...
[nageru] / theme.h
diff --git a/theme.h b/theme.h
index 6701ece87db2948487674eb267e233ebfd34e1b0..49152637975c8d2df8a90325c8f2dbd247a5eebb 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);
-       void register_class(const char *class_name, const luaL_Reg *funcs);
 
        std::pair<movit::EffectChain *, std::function<void()>>
        get_chain(unsigned num, float t, unsigned width, unsigned height);
@@ -26,10 +36,15 @@ 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);
 
 private:
+       void register_class(const char *class_name, const luaL_Reg *funcs);
+
        std::mutex m;
        lua_State *L;
        movit::ResourcePool *resource_pool;
@@ -41,7 +56,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