MLT  7.38.0
Multimedia Framework
Static Public Member Functions
Mlt::Factory Class Reference

Static factory for creating MLT services. More...

#include <MltFactory.h>

Static Public Member Functions

static void close ()
 
static Consumerconsumer (Profile &profile, char *id, char *arg=NULL)
 Instantiate a consumer by id. More...
 
static Propertiesevent_object ()
 Return the global event object. More...
 
static Filterfilter (Profile &profile, char *id, char *arg=NULL)
 Instantiate a filter by id. More...
 
static Repositoryinit (const char *directory=NULL)
 Initialise the factory from directory. More...
 
static Producerproducer (Profile &profile, char *id, char *arg=NULL)
 Instantiate a producer by id. More...
 
static Transitiontransition (Profile &profile, char *id, char *arg=NULL)
 Instantiate a transition by id. More...
 

Detailed Description

Static factory for creating MLT services.

Call Factory::init() once at application start to load all plugins from the MLT_REPOSITORY directory. Use the static factory methods to create producers, filters, transitions, and consumers by service identifier.

See also
mlt_factory_s

Member Function Documentation

◆ close()

void Factory::close ( )
static

◆ consumer()

Consumer * Factory::consumer ( Profile profile,
char *  id,
char *  arg = NULL 
)
static

Instantiate a consumer by id.

Caller owns the result.

◆ event_object()

Properties * Factory::event_object ( )
static

Return the global event object.

Caller owns the result.

◆ filter()

Filter * Factory::filter ( Profile profile,
char *  id,
char *  arg = NULL 
)
static

Instantiate a filter by id.

Caller owns the result.

◆ init()

Repository * Factory::init ( const char *  directory = NULL)
static

Initialise the factory from directory.

Caller owns the returned Repository.

◆ producer()

Producer * Factory::producer ( Profile profile,
char *  id,
char *  arg = NULL 
)
static

Instantiate a producer by id.

Caller owns the result.

◆ transition()

Transition * Factory::transition ( Profile profile,
char *  id,
char *  arg = NULL 
)
static

Instantiate a transition by id.

Caller owns the result.


The documentation for this class was generated from the following files: