#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);
}
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:
std::mutex m;
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