UniMRCP  1.5.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Functions
mpf_termination_factory.h File Reference

MPF Termination Factory. More...

#include "mpf_types.h"

Go to the source code of this file.

Data Structures

struct  mpf_termination_factory_t
 

Functions

apt_bool_t mpf_termination_factory_engine_assign (mpf_termination_factory_t *termination_factory, mpf_engine_t *media_engine)
 
mpf_termination_tmpf_termination_create (mpf_termination_factory_t *termination_factory, void *obj, apr_pool_t *pool)
 
mpf_termination_tmpf_raw_termination_create (void *obj, mpf_audio_stream_t *audio_stream, mpf_video_stream_t *video_stream, apr_pool_t *pool)
 
apt_bool_t mpf_termination_destroy (mpf_termination_t *termination)
 
const char * mpf_termination_name_get (const mpf_termination_t *termination)
 
void * mpf_termination_object_get (const mpf_termination_t *termination)
 
mpf_audio_stream_tmpf_termination_audio_stream_get (const mpf_termination_t *termination)
 
mpf_video_stream_tmpf_termination_video_stream_get (const mpf_termination_t *termination)
 

Detailed Description

MPF Termination Factory.

Function Documentation

mpf_termination_t* mpf_raw_termination_create ( void *  obj,
mpf_audio_stream_t audio_stream,
mpf_video_stream_t video_stream,
apr_pool_t *  pool 
)

Create raw MPF termination.

Parameters
objthe external object associated with termination
audio_streamthe audio stream of the termination
video_streamthe video stream of the termination
poolthe pool to allocate memory from
mpf_audio_stream_t* mpf_termination_audio_stream_get ( const mpf_termination_t termination)

Get audio stream.

Parameters
terminationthe termination to get audio stream from
mpf_termination_t* mpf_termination_create ( mpf_termination_factory_t termination_factory,
void *  obj,
apr_pool_t *  pool 
)

Create MPF termination from termination factory.

Parameters
termination_factorythe termination factory to create termination from
objthe external object associated with termination
poolthe pool to allocate memory from
apt_bool_t mpf_termination_destroy ( mpf_termination_t termination)

Destroy MPF termination.

Parameters
terminationthe termination to destroy
apt_bool_t mpf_termination_factory_engine_assign ( mpf_termination_factory_t termination_factory,
mpf_engine_t media_engine 
)

Assign media engine to termination factory.

Parameters
termination_factorythe termination factory to assign media engine to
media_enginethe media engine to assign
const char* mpf_termination_name_get ( const mpf_termination_t termination)

Get termination name.

Parameters
terminationthe termination to get name of
void* mpf_termination_object_get ( const mpf_termination_t termination)

Get associated object.

Parameters
terminationthe termination to get object from
mpf_video_stream_t* mpf_termination_video_stream_get ( const mpf_termination_t termination)

Get video stream.

Parameters
terminationthe termination to get video stream from