return 1;
}
+/** Create a new filter.
+*/
+
+mlt_filter mlt_filter_new( )
+{
+ mlt_filter this = calloc( 1, sizeof( struct mlt_filter_s ) );
+ if ( this != NULL )
+ mlt_filter_init( this, NULL );
+ return this;
+}
+
/** Get the service associated to this filter
*/
return &this->parent;
}
+/** Get the properties associated to this filter.
+*/
+
mlt_properties mlt_filter_properties( mlt_filter this )
{
return mlt_service_properties( mlt_filter_service( this ) );
/** Process the frame.
*/
-static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
+mlt_frame mlt_filter_process( mlt_filter this, mlt_frame frame )
{
if ( this->process == NULL )
return frame;
int ret = mlt_service_get_frame( this->producer, frame, index );
if ( ret == 0 )
{
- if ( !mlt_frame_is_test_card( *frame ) )
- {
- mlt_position position = mlt_frame_get_position( *frame );
- if ( position >= in && ( out == 0 || position < out ) )
- *frame = filter_process( this, *frame );
- }
+ mlt_position position = mlt_frame_get_position( *frame );
+ if ( position >= in && ( out == 0 || position < out ) )
+ *frame = mlt_filter_process( this, *frame );
return 0;
}
else