#include "pbo_frame_allocator.h"
#include "ref_counted_frame.h"
#include "ref_counted_gl_sync.h"
+#include "theme.h"
#define NUM_CARDS 2
void start();
void quit();
- enum Source {
- SOURCE_INPUT1,
- SOURCE_INPUT2,
- SOURCE_SBS,
- };
- void cut(Source source);
+ void transition_clicked(int transition_num, float t);
enum Output {
OUTPUT_LIVE = 0,
QSurface *mixer_surface, *h264_encoder_surface;
std::unique_ptr<movit::ResourcePool> resource_pool;
- std::unique_ptr<movit::EffectChain> chain;
+ std::unique_ptr<Theme> theme;
std::unique_ptr<movit::EffectChain> display_chain;
- std::unique_ptr<movit::EffectChain> preview0_chain;
- std::unique_ptr<movit::EffectChain> preview1_chain;
GLuint cbcr_program_num; // Owned by <resource_pool>.
std::unique_ptr<H264Encoder> h264_encoder;
- // Effects part of <chain>. Owned by <chain>.
- movit::YCbCrInput *input[NUM_CARDS];
- movit::Effect *resample_effect, *resample2_effect;
- movit::Effect *padding_effect, *padding2_effect;
-
// Effects part of <display_chain>. Owned by <display_chain>.
movit::FlatInput *display_input;
- // Effects part of <preview0_chain>. Owned by <preview0_chain>.
- movit::YCbCrInput *preview0_input;
-
- // Effects part of <preview1_chain>. Owned by <preview1_chain>.
- movit::YCbCrInput *preview1_input;
-
- Source current_source = SOURCE_INPUT1;
int frame = 0;
std::mutex bmusb_mutex;