mlt_filter mlt_filter_new( ) { mlt_filter self = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( self != NULL ) mlt_filter_init( self, NULL ); return self; }
mlt_filter filter_resize_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter filter = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( mlt_filter_init( filter, filter ) == 0 ) { filter->process = filter_process; } return filter; }
mlt_filter filter_crop_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter filter = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( mlt_filter_init( filter, filter ) == 0 ) { filter->process = filter_process; if ( arg ) mlt_properties_set_int( MLT_FILTER_PROPERTIES( filter ), "active", atoi( arg ) ); } return filter; }
mlt_filter mlt_filter_new( ) { mlt_filter self = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( self != NULL && mlt_filter_init( self, NULL ) == 0 ) { return self; } else { free(self); return NULL; } }
mlt_filter filter_panner_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter filter = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( filter != NULL && mlt_filter_init( filter, NULL ) == 0 ) { filter->process = filter_process; if ( arg != NULL ) mlt_properties_set_double( MLT_FILTER_PROPERTIES( filter ), "start", atof( arg ) ); mlt_properties_set_int( MLT_FILTER_PROPERTIES( filter ), "channel", -1 ); mlt_properties_set( MLT_FILTER_PROPERTIES( filter ), "split", NULL ); } return filter; }
mlt_filter filter_volume_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg ) { mlt_filter filter = calloc( 1, sizeof( struct mlt_filter_s ) ); if ( filter != NULL && mlt_filter_init( filter, NULL ) == 0 ) { mlt_properties properties = MLT_FILTER_PROPERTIES( filter ); filter->process = filter_process; if ( arg != NULL ) mlt_properties_set( properties, "gain", arg ); mlt_properties_set_int( properties, "window", 75 ); mlt_properties_set( properties, "max_gain", "20dB" ); mlt_properties_set( properties, "level", NULL ); } return filter; }