7 #include <movit/effect_chain.h>
8 #include <movit/ycbcr_input.h>
26 class NonBouncingYCbCrInput : public movit::YCbCrInput {
28 NonBouncingYCbCrInput(const movit::ImageFormat &image_format,
29 const movit::YCbCrFormat &ycbcr_format,
30 unsigned width, unsigned height,
31 movit::YCbCrInputSplitting ycbcr_input_splitting = movit::YCBCR_INPUT_PLANAR)
32 : movit::YCbCrInput(image_format, ycbcr_format, width, height, ycbcr_input_splitting) {}
34 bool override_disable_bounce() const override { return true; }
39 Theme(const char *filename, movit::ResourcePool *resource_pool, unsigned num_cards);
41 std::pair<movit::EffectChain *, std::function<void()>>
42 get_chain(unsigned num, float t, unsigned width, unsigned height);
44 void set_input_textures(int signal_num, GLuint tex_y, GLuint tex_cbcr) {
45 input_textures[signal_num].tex_y = tex_y;
46 input_textures[signal_num].tex_cbcr = tex_cbcr;
48 int get_num_channels() { return num_channels; }
49 std::string get_channel_name(unsigned channel);
50 bool get_supports_set_wb(unsigned channel);
51 void set_wb(unsigned channel, double r, double g, double b);
53 std::vector<std::string> get_transition_names(float t);
55 void connect_signal(movit::YCbCrInput *input, int signal_num);
56 void transition_clicked(int transition_num, float t);
57 void channel_clicked(int preview_num);
60 void register_class(const char *class_name, const luaL_Reg *funcs);
64 movit::ResourcePool *resource_pool;
66 GLuint tex_y = 0, tex_cbcr = 0;
67 } input_textures[MAX_CARDS];
70 std::set<int> signals_warned_about;
73 class LiveInputWrapper {
75 LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bool override_bounce);
77 void connect_signal(int signal_num);
78 movit::YCbCrInput *get_input() const
84 Theme *theme; // Not owned by us.
85 movit::YCbCrInput *input; // Owned by the chain.
86 int connected_signal_num = 0;
89 #endif // !defined(_THEME_H)