12 #include <movit/effect_chain.h>
13 #include <movit/ycbcr_input.h>
17 Theme(const char *filename, movit::ResourcePool *resource_pool);
18 void register_class(const char *class_name, const luaL_Reg *funcs);
20 std::pair<movit::EffectChain *, std::function<void()>>
21 get_chain(unsigned num, float t, unsigned width, unsigned height);
23 void set_input_textures(int signal_num, GLuint tex_y, GLuint tex_cbcr) {
24 input_textures[signal_num].tex_y = tex_y;
25 input_textures[signal_num].tex_cbcr = tex_cbcr;
27 int get_num_channels() { return num_channels; }
29 void connect_signal(movit::YCbCrInput *input, int signal_num);
30 void transition_clicked(int transition_num, float t);
35 movit::ResourcePool *resource_pool;
37 GLuint tex_y = 0, tex_cbcr = 0;
38 } input_textures[16]; // FIXME
42 class LiveInputWrapper {
44 LiveInputWrapper(Theme *theme, movit::EffectChain *chain);
46 void connect_signal(int signal_num);
49 connected_signal_num = signal_num;
52 int get_connected_signal_num() const {
53 return connected_signal_num;
57 movit::YCbCrInput *get_input() const
63 Theme *theme; // Not owned by us.
64 movit::YCbCrInput *input; // Owned by the chain.
65 int connected_signal_num = 0;
68 #endif // !defined(_THEME_H)