- mlt_service service = MLT_TRANSITION_SERVICE(transition);
-
- if ( !GlslManager::init_chain( service ) ) {
- // Create the Movit effect chain
- EffectChain* chain = GlslManager::get_chain( service );
- mlt_profile profile = mlt_service_profile( service );
- Input* b_input = new MltInput( profile->width, profile->height );
- ImageFormat output_format;
- output_format.color_space = COLORSPACE_sRGB;
- output_format.gamma_curve = GAMMA_sRGB;
- chain->add_input( b_input );
- chain->add_output( output_format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED );
- chain->set_dither_bits( 8 );
-
- chain->add_effect( new OverlayEffect(), GlslManager::get_input( service ), b_input );
-
- // Save these new input on properties for get_image
- mlt_properties_set_data( MLT_TRANSITION_PROPERTIES(transition),
- "movit input B", b_input, 0, NULL, NULL );
- }
-
- // Push the transition on to the frame