UniMRCP
1.5.0
|
Media Processing Framework Engine. More...
Go to the source code of this file.
Variables | |
APT_BEGIN_EXTERN_C typedef apt_task_msg_t | mpf_task_msg_t |
Media Processing Framework Engine.
Factory of Media Processing Engines.
apt_bool_t mpf_engine_assoc_message_add | ( | mpf_engine_t * | engine, |
mpf_command_type_e | command_id, | ||
mpf_context_t * | context, | ||
mpf_termination_t * | termination, | ||
mpf_termination_t * | assoc_termination, | ||
mpf_task_msg_t ** | task_msg | ||
) |
Create task message(if not created) and add MPF association message to it.
engine | the engine task message belongs to |
command_id | the MPF command identifier |
context | the context to add association of terminations for |
termination | the termination to associate |
assoc_termination | the termination to associate |
task_msg | the task message to create and add constructed MPF message to |
mpf_codec_manager_t* mpf_engine_codec_manager_create | ( | apr_pool_t * | pool | ) |
Create MPF codec manager.
pool | the pool to allocate memory from |
apt_bool_t mpf_engine_codec_manager_register | ( | mpf_engine_t * | engine, |
const mpf_codec_manager_t * | codec_manager | ||
) |
Register MPF codec manager.
engine | the engine to register codec manager for |
codec_manager | the codec manager to register |
mpf_context_t* mpf_engine_context_create | ( | mpf_engine_t * | engine, |
const char * | name, | ||
void * | obj, | ||
apr_size_t | max_termination_count, | ||
apr_pool_t * | pool | ||
) |
Create MPF context.
engine | the engine to create context for |
name | the informative name of the context |
obj | the external object associated with context |
max_termination_count | the max number of terminations in context |
pool | the pool to allocate memory from |
apt_bool_t mpf_engine_context_destroy | ( | mpf_context_t * | context | ) |
Destroy MPF context.
context | the context to destroy |
void* mpf_engine_context_object_get | ( | const mpf_context_t * | context | ) |
Get external object associated with MPF context.
context | the context to get object from |
mpf_engine_t* mpf_engine_create | ( | const char * | id, |
apr_pool_t * | pool | ||
) |
Create MPF engine.
id | the identifier of the engine |
pool | the pool to allocate memory from |
const char* mpf_engine_id_get | ( | const mpf_engine_t * | engine | ) |
Get the identifier of the engine .
engine | the engine to get name of |
apt_bool_t mpf_engine_message_send | ( | mpf_engine_t * | engine, |
mpf_task_msg_t ** | task_msg | ||
) |
Send MPF task message.
engine | the engine to send task message to |
task_msg | the task message to send |
apt_bool_t mpf_engine_scheduler_rate_set | ( | mpf_engine_t * | engine, |
unsigned long | rate | ||
) |
Set scheduler rate.
engine | the engine to set rate for |
rate | the rate (n times faster than real-time) |
void mpf_engine_task_msg_type_set | ( | mpf_engine_t * | engine, |
apt_task_msg_type_e | type | ||
) |
Set task msg type to send responses and events with.
engine | the engine to set task msg type for |
type | the type to set |
apt_bool_t mpf_engine_termination_message_add | ( | mpf_engine_t * | engine, |
mpf_command_type_e | command_id, | ||
mpf_context_t * | context, | ||
mpf_termination_t * | termination, | ||
void * | descriptor, | ||
mpf_task_msg_t ** | task_msg | ||
) |
Create task message(if not created) and add MPF termination message to it.
engine | the engine task message belongs to |
command_id | the MPF command identifier |
context | the context to add termination to |
termination | the termination to add |
descriptor | the termination dependent descriptor |
task_msg | the task message to create and add constructed MPF message to |
apt_bool_t mpf_engine_topology_message_add | ( | mpf_engine_t * | engine, |
mpf_command_type_e | command_id, | ||
mpf_context_t * | context, | ||
mpf_task_msg_t ** | task_msg | ||
) |
Create task message(if not created) and add MPF topology message to it.
engine | the engine task message belongs to |
command_id | the MPF command identifier |
context | the context to modify topology for |
task_msg | the task message to create and add constructed MPF message to |
apt_task_t* mpf_task_get | ( | const mpf_engine_t * | engine | ) |
Get task.
engine | the engine to get task from |
APT_BEGIN_EXTERN_C typedef apt_task_msg_t mpf_task_msg_t |
MPF task message definition