#include <movit/resample_effect.h>
#include "optional_effect.h"
+using namespace movit;
+
static int get_image( mlt_frame frame, uint8_t **image, mlt_image_format *format, int *width, int *height, int writable )
{
mlt_properties properties = MLT_FRAME_PROPERTIES( frame );
mlt_properties_set_int( properties, "consumer_deinterlace", 1 );
GlslManager::get_instance()->lock_service( frame );
- mlt_properties_set_int( filter_properties, "movit.parms.int.width", owidth );
- mlt_properties_set_int( filter_properties, "movit.parms.int.height", oheight );
+ mlt_properties_set_int( filter_properties, "_movit.parms.int.width", owidth );
+ 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;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
+ mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
+ glsl->add_ref( properties );
filter->process = process;
}
return filter;