RTS API Documentation
1.10.11
|
Go to the source code of this file.
Functions | |
SWITCH_MODULE_LOAD_FUNCTION (core_pcm_load) | |
SWITCH_MODULE_SHUTDOWN_FUNCTION (core_pcm_shutdown) | |
SWITCH_MODULE_DEFINITION (CORE_PCM_MODULE, core_pcm_load, core_pcm_shutdown, NULL) | |
static switch_status_t | switch_raw_init (switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings) |
static switch_status_t | switch_raw_encode (switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data, uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data, uint32_t *encoded_data_len, uint32_t *encoded_rate, unsigned int *flag) |
static switch_status_t | switch_raw_decode (switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data, uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data, uint32_t *decoded_data_len, uint32_t *decoded_rate, unsigned int *flag) |
static switch_status_t | switch_raw_destroy (switch_codec_t *codec) |
static switch_status_t | switch_proxy_init (switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings) |
static switch_status_t | switch_proxy_encode (switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data, uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data, uint32_t *encoded_data_len, uint32_t *encoded_rate, unsigned int *flag) |
static switch_status_t | switch_proxy_decode (switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data, uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data, uint32_t *decoded_data_len, uint32_t *decoded_rate, unsigned int *flag) |
static switch_status_t | switch_proxy_destroy (switch_codec_t *codec) |
static switch_status_t | switch_g711u_init (switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings) |
static switch_status_t | switch_g711u_encode (switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data, uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data, uint32_t *encoded_data_len, uint32_t *encoded_rate, unsigned int *flag) |
static switch_status_t | switch_g711u_decode (switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data, uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data, uint32_t *decoded_data_len, uint32_t *decoded_rate, unsigned int *flag) |
static switch_status_t | switch_g711u_destroy (switch_codec_t *codec) |
static switch_status_t | switch_g711a_init (switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings) |
static switch_status_t | switch_g711a_encode (switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data, uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data, uint32_t *encoded_data_len, uint32_t *encoded_rate, unsigned int *flag) |
static switch_status_t | switch_g711a_decode (switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data, uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data, uint32_t *decoded_data_len, uint32_t *decoded_rate, unsigned int *flag) |
static switch_status_t | switch_g711a_destroy (switch_codec_t *codec) |
static void | mod_g711_load (switch_loadable_module_interface_t **module_interface, switch_memory_pool_t *pool) |
|
static |
Definition at line 271 of file switch_pcm.c.
References count, SWITCH_ADD_CODEC, SWITCH_CODEC_TYPE_AUDIO, switch_core_codec_add_implementation(), switch_g711a_decode(), switch_g711a_destroy(), switch_g711a_encode(), switch_g711a_init(), switch_g711u_decode(), switch_g711u_destroy(), switch_g711u_encode(), and switch_g711u_init().
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 237 of file switch_pcm.c.
References alaw_to_linear(), switch_codec_implementation::decoded_bytes_per_packet, switch_codec::implementation, memset(), SWITCH_CODEC_FLAG_SILENCE, and SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 265 of file switch_pcm.c.
References SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 214 of file switch_pcm.c.
References linear_to_alaw(), and SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 200 of file switch_pcm.c.
References SWITCH_CODEC_FLAG_DECODE, SWITCH_CODEC_FLAG_ENCODE, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 166 of file switch_pcm.c.
References switch_codec_implementation::decoded_bytes_per_packet, switch_codec::implementation, memset(), SWITCH_CODEC_FLAG_SILENCE, SWITCH_STATUS_SUCCESS, and ulaw_to_linear().
Referenced by mod_g711_load().
|
static |
Definition at line 194 of file switch_pcm.c.
References SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 143 of file switch_pcm.c.
References linear_to_ulaw(), and SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
|
static |
Definition at line 129 of file switch_pcm.c.
References SWITCH_CODEC_FLAG_DECODE, SWITCH_CODEC_FLAG_ENCODE, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by mod_g711_load().
SWITCH_MODULE_DEFINITION | ( | CORE_PCM_MODULE | , |
core_pcm_load | , | ||
core_pcm_shutdown | , | ||
NULL | |||
) |
SWITCH_MODULE_LOAD_FUNCTION | ( | core_pcm_load | ) |
Definition at line 357 of file switch_pcm.c.
References mod_g711_load(), pool, SWITCH_ADD_CODEC, SWITCH_CODEC_TYPE_AUDIO, SWITCH_CODEC_TYPE_VIDEO, switch_core_codec_add_implementation(), switch_loadable_module_create_module_interface(), switch_proxy_decode(), switch_proxy_destroy(), switch_proxy_encode(), switch_proxy_init(), switch_raw_decode(), switch_raw_destroy(), switch_raw_encode(), switch_raw_init(), and SWITCH_STATUS_SUCCESS.
SWITCH_MODULE_SHUTDOWN_FUNCTION | ( | core_pcm_shutdown | ) |
Definition at line 948 of file switch_pcm.c.
References SWITCH_STATUS_NOUNLOAD.
|
static |
Definition at line 113 of file switch_pcm.c.
References SWITCH_STATUS_FALSE.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 123 of file switch_pcm.c.
References SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 103 of file switch_pcm.c.
References SWITCH_STATUS_FALSE.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 98 of file switch_pcm.c.
References SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 75 of file switch_pcm.c.
References switch_codec_implementation::actual_samples_per_second, switch_codec::implementation, SWITCH_STATUS_NOOP, and SWITCH_STATUS_RESAMPLE.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 91 of file switch_pcm.c.
References SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 58 of file switch_pcm.c.
References switch_codec_implementation::actual_samples_per_second, switch_codec::implementation, SWITCH_STATUS_NOOP, and SWITCH_STATUS_RESAMPLE.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 44 of file switch_pcm.c.
References SWITCH_CODEC_FLAG_DECODE, SWITCH_CODEC_FLAG_ENCODE, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().