RTS API Documentation
1.10.11
|
Go to the source code of this file.
Data Structures | |
struct | speex_codec_settings |
Various codec settings (currently only relevant to speex) More... | |
struct | speex_context |
Typedefs | |
typedef struct speex_codec_settings | speex_codec_settings_t |
Functions | |
SWITCH_MODULE_LOAD_FUNCTION (core_speex_load) | |
SWITCH_MODULE_DEFINITION (CORE_SPEEX_MODULE, core_speex_load, NULL, NULL) | |
static switch_status_t | switch_speex_fmtp_parse (const char *fmtp, switch_codec_fmtp_t *codec_fmtp) |
static switch_status_t | switch_speex_init (switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings) |
static switch_status_t | switch_speex_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_speex_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_speex_destroy (switch_codec_t *codec) |
static void | load_configuration (void) |
Variables | |
static speex_codec_settings_t | default_codec_settings |
typedef struct speex_codec_settings speex_codec_settings_t |
Definition at line 82 of file switch_speex.c.
|
static |
read default settings from speex.conf
Definition at line 473 of file switch_speex.c.
References speex_codec_settings::abr, speex_codec_settings::complexity, speex_codec_settings::dtx, speex_codec_settings::enhancement, name, switch_xml::next, speex_codec_settings::pp_agc, speex_codec_settings::pp_agc_level, speex_codec_settings::pp_denoise, speex_codec_settings::pp_dereverb, speex_codec_settings::pp_dereverb_decay, speex_codec_settings::pp_dereverb_level, speex_codec_settings::pp_vad, speex_codec_settings::preproc, speex_codec_settings::quality, SWITCH_CHANNEL_LOG, switch_is_number(), SWITCH_LOG_DEBUG, SWITCH_LOG_ERROR, switch_log_printf(), switch_true(), switch_xml_attr(), switch_xml_child(), switch_xml_free(), switch_xml_open_cfg(), speex_codec_settings::vad, value, speex_codec_settings::vbr, speex_codec_settings::vbr_quality, and zstr.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
SWITCH_MODULE_DEFINITION | ( | CORE_SPEEX_MODULE | , |
core_speex_load | , | ||
NULL | , | ||
NULL | |||
) |
SWITCH_MODULE_LOAD_FUNCTION | ( | core_speex_load | ) |
Definition at line 590 of file switch_speex.c.
References load_configuration(), switch_codec_interface::parse_fmtp, pool, SWITCH_ADD_CODEC, SWITCH_CODEC_TYPE_AUDIO, switch_core_codec_add_implementation(), switch_loadable_module_create_module_interface(), switch_speex_decode(), switch_speex_destroy(), switch_speex_encode(), switch_speex_fmtp_parse(), switch_speex_init(), and SWITCH_STATUS_SUCCESS.
|
static |
Definition at line 416 of file switch_speex.c.
References buf, switch_codec_implementation::decoded_bytes_per_packet, speex_context::decoder_bits, speex_context::decoder_state, switch_codec::implementation, switch_codec::private_info, SWITCH_CODEC_FLAG_SILENCE, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 443 of file switch_speex.c.
References speex_context::decoder_bits, speex_context::decoder_state, speex_context::encoder_bits, speex_context::encoder_state, switch_codec::flags, switch_codec::private_info, SWITCH_CODEC_FLAG_DECODE, SWITCH_CODEC_FLAG_ENCODE, SWITCH_STATUS_FALSE, and SWITCH_STATUS_SUCCESS.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 365 of file switch_speex.c.
References buf, speex_context::codec_settings, speex_codec_settings::dtx, speex_context::encoder_bits, speex_context::encoder_frame_size, speex_context::encoder_state, speex_context::pp, switch_codec::private_info, SFF_CNG, switch_clear_flag, SWITCH_CODEC_FLAG_SILENCE, switch_set_flag, SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, and switch_test_flag.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 122 of file switch_speex.c.
References switch_codec_fmtp::actual_samples_per_second, mode, speex_codec_settings::pp_vad, switch_codec_fmtp::private_info, speex_codec_settings::quality, switch_assert, SWITCH_CHANNEL_LOG, switch_is_number(), SWITCH_LOG_DEBUG1, switch_log_printf(), switch_separate_string(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, switch_true(), speex_codec_settings::vad, speex_codec_settings::vbr, speex_codec_settings::vbr_quality, and zstr.
Referenced by SWITCH_MODULE_LOAD_FUNCTION(), and switch_speex_init().
|
static |
Definition at line 263 of file switch_speex.c.
References speex_codec_settings::abr, switch_codec_fmtp::actual_samples_per_second, switch_codec_implementation::actual_samples_per_second, speex_context::codec, speex_context::codec_settings, speex_codec_settings::complexity, speex_context::decoder_bits, speex_context::decoder_state, speex_codec_settings::dtx, speex_context::encoder_bits, speex_context::encoder_frame_size, speex_context::encoder_state, speex_codec_settings::enhancement, switch_codec::fmtp_in, switch_codec::implementation, switch_codec::memory_pool, memset(), mode, speex_context::pp, speex_codec_settings::pp_agc, speex_codec_settings::pp_agc_level, speex_codec_settings::pp_denoise, speex_codec_settings::pp_dereverb, speex_codec_settings::pp_dereverb_decay, speex_codec_settings::pp_dereverb_level, speex_codec_settings::pp_vad, speex_codec_settings::preproc, switch_codec_fmtp::private_info, switch_codec::private_info, speex_codec_settings::quality, SWITCH_CHANNEL_LOG, SWITCH_CODEC_FLAG_DECODE, SWITCH_CODEC_FLAG_ENCODE, switch_core_alloc, SWITCH_LOG_DEBUG1, switch_log_printf(), switch_speex_fmtp_parse(), SWITCH_STATUS_FALSE, SWITCH_STATUS_SUCCESS, speex_codec_settings::vad, speex_codec_settings::vbr, and speex_codec_settings::vbr_quality.
Referenced by SWITCH_MODULE_LOAD_FUNCTION().
|
static |
Definition at line 84 of file switch_speex.c.