12 #include <movit/effect_chain.h>
13 #include <movit/ycbcr_input.h>
15 class NonBouncingYCbCrInput : public movit::YCbCrInput {
17 NonBouncingYCbCrInput(const movit::ImageFormat &image_format,
18 const movit::YCbCrFormat &ycbcr_format,
19 unsigned width, unsigned height,
20 movit::YCbCrInputSplitting ycbcr_input_splitting = movit::YCBCR_INPUT_PLANAR)
21 : movit::YCbCrInput(image_format, ycbcr_format, width, height, ycbcr_input_splitting) {}
23 bool override_disable_bounce() const override { return true; }
28 Theme(const char *filename, movit::ResourcePool *resource_pool);
29 void register_class(const char *class_name, const luaL_Reg *funcs);
31 std::pair<movit::EffectChain *, std::function<void()>>
32 get_chain(unsigned num, float t, unsigned width, unsigned height);
34 void set_input_textures(int signal_num, GLuint tex_y, GLuint tex_cbcr) {
35 input_textures[signal_num].tex_y = tex_y;
36 input_textures[signal_num].tex_cbcr = tex_cbcr;
38 int get_num_channels() { return num_channels; }
40 std::vector<std::string> get_transition_names(float t);
42 void connect_signal(movit::YCbCrInput *input, int signal_num);
43 void transition_clicked(int transition_num, float t);
44 void channel_clicked(int preview_num);
49 movit::ResourcePool *resource_pool;
51 GLuint tex_y = 0, tex_cbcr = 0;
52 } input_textures[16]; // FIXME
56 class LiveInputWrapper {
58 LiveInputWrapper(Theme *theme, movit::EffectChain *chain, bool override_bounce);
60 void connect_signal(int signal_num);
61 movit::YCbCrInput *get_input() const
67 Theme *theme; // Not owned by us.
68 movit::YCbCrInput *input; // Owned by the chain.
69 int connected_signal_num = 0;
72 #endif // !defined(_THEME_H)