2
2
* MltFactory.cpp - MLT Wrapper
3
3
* Copyright (C) 2004-2005 Charles Yates
4
* Copyright (C) 2008 Dan Dennedy <dan@dennedy.org>
4
5
* Author: Charles Yates <charles.yates@pandora.be>
6
7
* This program is free software; you can redistribute it and/or modify
23
24
#include "MltFilter.h"
24
25
#include "MltTransition.h"
25
26
#include "MltConsumer.h"
27
#include "MltRepository.h"
26
28
using namespace Mlt;
28
int Factory::init( char *arg )
30
Repository *Factory::init( const char *directory )
30
return mlt_factory_init( arg );
32
return new Repository( mlt_factory_init( directory ) );
33
35
Properties *Factory::event_object( )
35
37
return new Properties( mlt_factory_event_object( ) );
38
Producer *Factory::producer( char *id, char *arg )
40
return new Producer( id, arg );
43
Filter *Factory::filter( char *id, char *arg )
45
return new Filter( id, arg );
48
Transition *Factory::transition( char *id, char *arg )
50
return new Transition( id, arg );
53
Consumer *Factory::consumer( char *id, char *arg )
55
return new Consumer( id, arg );
40
Producer *Factory::producer( Profile& profile, char *id, char *arg )
42
return new Producer( profile, id, arg );
45
Filter *Factory::filter( Profile& profile, char *id, char *arg )
47
return new Filter( profile, id, arg );
50
Transition *Factory::transition( Profile& profile, char *id, char *arg )
52
return new Transition( profile, id, arg );
55
Consumer *Factory::consumer( Profile& profile, char *id, char *arg )
57
return new Consumer( profile, id, arg );