*/
#include <string.h>
+#include <limits.h>
#include <framework/mlt.h>
extern mlt_producer producer_qimage_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
+extern mlt_producer producer_kdenlivetitle_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
+extern mlt_transition transition_vqm_init( mlt_profile profile, mlt_service_type type, const char *id, void *arg );
-void *mlt_create_producer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
+static mlt_properties metadata( mlt_service_type type, const char *id, void *data )
{
- if ( !strcmp( id, "qimage" ) )
- return producer_qimage_init( profile, type, id, arg );
- return NULL;
+ char file[ PATH_MAX ];
+ snprintf( file, PATH_MAX, "%s/qimage/%s", mlt_environment( "MLT_DATA" ), (char*) data );
+ return mlt_properties_parse_yaml( file );
}
-void *mlt_create_filter( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
+MLT_REPOSITORY
{
- return NULL;
+ MLT_REGISTER( producer_type, "qimage", producer_qimage_init );
+ MLT_REGISTER( producer_type, "kdenlivetitle", producer_kdenlivetitle_init );
+ MLT_REGISTER_METADATA( producer_type, "qimage", metadata, "producer_qimage.yml" );
+ MLT_REGISTER_METADATA( producer_type, "kdenlivetitle", metadata, "producer_kdenlivetitle.yml" );
+#ifdef GPL3
+ MLT_REGISTER( transition_type, "vqm", transition_vqm_init );
+ MLT_REGISTER_METADATA( transition_type, "vqm", metadata, "transition_vqm.yml" );
+#endif
}
-
-void *mlt_create_transition( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
- return NULL;
-}
-
-void *mlt_create_consumer( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
-{
- return NULL;
-}
-