#include <mlt++/MltProducer.h>
#include "mlt_flip_effect.h"
+static void set_movit_parameters( GlslChain *chain, mlt_service service, mlt_frame frame );
+
static void yuv422_to_yuv422p( uint8_t *yuv422, uint8_t *yuv422p, int width, int height )
{
uint8_t *Y = yuv422p;
fingerprint->push_back( '(' );
fingerprint->append( mlt_properties_get( MLT_SERVICE_PROPERTIES( service ), "_unique_id" ) );
- bool disable = mlt_properties_get_int( MLT_SERVICE_PROPERTIES( service ), "movit.disable" );
+ bool disable = mlt_properties_get_int( MLT_SERVICE_PROPERTIES( service ), "movit.parms.int.disable" );
if ( disable ) {
fingerprint->push_back( 'd' );
- bool ok = effect->set_int( "disable", 1 );
- assert(ok);
}
fingerprint->push_back( ')' );
}
chain->fingerprint = new_fingerprint;
build_movit_chain( leaf_service, frame, chain );
+ set_movit_parameters( chain, leaf_service, frame );
chain->effect_chain->add_effect( new Mlt::VerticalFlip );
ImageFormat output_format;
finalize_movit_chain( leaf_service, frame );
// Set per-frame parameters now that we know which Effect instances to set them on.
+ // (finalize_movit_chain may already have done this, though, but twice doesn't hurt.)
GlslChain *chain = GlslManager::get_chain( leaf_service );
set_movit_parameters( chain, leaf_service, frame );
mlt_properties_set_double( properties, "movit.parms.float.top", -top );
bool disable = ( *width == owidth && *height == oheight );
- mlt_properties_set_int( properties, "movit.disable", disable );
+ mlt_properties_set_int( properties, "movit.parms.int.disable", disable );
GlslManager::get_instance()->unlock_service( frame );
}
mlt_properties_set_int( filter_properties, "movit.parms.int.height", oheight );
bool disable = ( iwidth == owidth && iheight == oheight );
- mlt_properties_set_int( filter_properties, "movit.disable", disable );
+ mlt_properties_set_int( filter_properties, "movit.parms.int.disable", disable );
*width = owidth;
*height = oheight;
mlt_properties_set_double( filter_properties, "movit.parms.float.top", rect.y );
bool disable = ( *width == owidth && *height == oheight );
- mlt_properties_set_int( filter_properties, "movit.disable", disable );
+ mlt_properties_set_int( filter_properties, "movit.parms.int.disable", disable );
GlslManager::get_instance()->unlock_service( frame );