static void *create_service( mlt_profile profile, mlt_service_type type, const char *id, void *arg ) { avformat_init( ); #ifdef CODECS if ( !strncmp( id, "avformat", 8 ) ) { if ( type == producer_type ) return producer_avformat_init( profile, id, arg ); else if ( type == consumer_type ) return consumer_avformat_init( profile, arg ); } #endif #ifdef FILTERS if ( !strcmp( id, "avcolor_space" ) ) return filter_avcolour_space_init( arg ); if ( !strcmp( id, "avcolour_space" ) ) return filter_avcolour_space_init( arg ); if ( !strcmp( id, "avdeinterlace" ) ) return filter_avdeinterlace_init( arg ); #if defined(FFUDIV) || (LIBAVCODEC_VERSION_INT < ((54<<16)+(26<<8)+0)) if ( !strcmp( id, "avresample" ) ) return filter_avresample_init( arg ); #endif if ( !strcmp( id, "swscale" ) ) return filter_swscale_init( profile, arg ); #endif return NULL; }
static void *create_service( mlt_profile profile, mlt_service_type type, const char *id, void *arg ) { avformat_init( ); #ifdef CODECS if ( !strncmp( id, "avformat", 8 ) ) { if ( type == producer_type ) return producer_avformat_init( profile, id, arg ); else if ( type == consumer_type ) return consumer_avformat_init( profile, arg ); } #endif #ifdef FILTERS if ( !strcmp( id, "avcolor_space" ) ) return filter_avcolour_space_init( arg ); if ( !strcmp( id, "avcolour_space" ) ) return filter_avcolour_space_init( arg ); if ( !strcmp( id, "avdeinterlace" ) ) return filter_avdeinterlace_init( arg ); if ( !strcmp( id, "avresample" ) ) return filter_avresample_init( arg ); #ifdef SWSCALE if ( !strcmp( id, "swscale" ) ) return filter_swscale_init( profile, arg ); #endif #endif return NULL; }