You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.5 KiB
46 lines
1.5 KiB
/*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#include <string.h>
|
|
|
|
#include "filter_motion_est.h"
|
|
|
|
extern mlt_filter filter_motion_est_init(char *);
|
|
extern mlt_filter filter_vismv_init(char *);
|
|
extern mlt_filter filter_crop_detect_init(char *);
|
|
extern mlt_filter filter_autotrack_rectangle_init(char *);
|
|
extern mlt_producer producer_slowmotion_init(char *);
|
|
|
|
void *mlt_create_filter( char *id, void *arg )
|
|
{
|
|
if ( !strcmp( id, "motion_est" ) )
|
|
return filter_motion_est_init( arg );
|
|
if ( !strcmp( id, "vismv" ) )
|
|
return filter_vismv_init( arg );
|
|
if ( !strcmp( id, "crop_detect" ) )
|
|
return filter_crop_detect_init( arg );
|
|
if ( !strcmp( id, "autotrack_rectangle" ) )
|
|
return filter_autotrack_rectangle_init( arg );
|
|
return NULL;
|
|
}
|
|
|
|
void *mlt_create_producer( char *id, void *arg )
|
|
{
|
|
if ( !strcmp( id, "slowmotion" ) )
|
|
return producer_slowmotion_init( arg );
|
|
return NULL;
|
|
}
|