CHECK(init_movit(MOVIT_SHADER_DIR, MOVIT_DEBUG_OFF));
check_error();
- chain.reset(new EffectChain(WIDTH, HEIGHT));
+ resource_pool.reset(new ResourcePool);
+ chain.reset(new EffectChain(WIDTH, HEIGHT, resource_pool.get()));
check_error();
ImageFormat inout_format;
//chain->enable_phase_timing(true);
// Set up stuff for NV12 conversion.
- resource_pool = chain->get_resource_pool();
// Cb/Cr shader.
string cbcr_vert_shader = read_file("vs-cbcr.130.vert");
void subsample_chroma(GLuint src_tex, GLuint dst_dst);
QSurface *mixer_surface, *h264_encoder_surface;
+ std::unique_ptr<movit::ResourcePool> resource_pool;
std::unique_ptr<movit::EffectChain> chain;
- movit::ResourcePool *resource_pool; // Owned by <chain>.
GLuint cbcr_program_num; // Owned by <resource_pool>.
std::unique_ptr<H264Encoder> h264_encoder;