Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Media Format Cache API. More...
#include "asterisk.h"
#include "asterisk/logger.h"
#include "asterisk/format.h"
#include "asterisk/format_cache.h"
#include "asterisk/astobj2.h"
#include "asterisk/strings.h"
Go to the source code of this file.
Macros | |
#define | CACHE_BUCKETS 53 |
Number of buckets to use for the media format cache (should be prime for performance reasons) More... | |
Functions | |
struct ast_format * | __ast_format_cache_get (const char *name, const char *tag, const char *file, int line, const char *func) |
struct ast_format * | ast_format_cache_get_by_codec (const struct ast_codec *codec) |
Retrieve a format from the cache by its codec. More... | |
struct ast_format * | ast_format_cache_get_slin_by_rate (unsigned int rate) |
Retrieve the best signed linear format given a sample rate. More... | |
int | ast_format_cache_init (void) |
Initialize format cache support within the core. More... | |
int | ast_format_cache_is_slinear (struct ast_format *format) |
Determines if a format is one of the cached slin formats. More... | |
int | ast_format_cache_set (struct ast_format *format) |
Set a named format cache entry. More... | |
static void | format_cache_shutdown (void) |
Function called when the process is shutting down. More... | |
static int | format_cmp_cb (void *obj, void *arg, int flags) |
static int | format_hash_cb (const void *obj, int flags) |
static void | set_cached_format (const char *name, struct ast_format *format) |
Variables | |
struct ast_format * | ast_format_adpcm |
Built-in cached adpcm format. More... | |
struct ast_format * | ast_format_alaw |
Built-in cached alaw format. More... | |
struct ast_format * | ast_format_codec2 |
Built-in cached codec2 format. More... | |
struct ast_format * | ast_format_g719 |
Built-in cached g719 format. More... | |
struct ast_format * | ast_format_g722 |
Built-in cached g722 format. More... | |
struct ast_format * | ast_format_g723 |
Built-in cached g723.1 format. More... | |
struct ast_format * | ast_format_g726 |
Built-in cached g726 format. More... | |
struct ast_format * | ast_format_g726_aal2 |
Built-in cached g726-aal2 format. More... | |
struct ast_format * | ast_format_g729 |
Built-in cached g729 format. More... | |
struct ast_format * | ast_format_gsm |
Built-in cached gsm format. More... | |
struct ast_format * | ast_format_h261 |
Built-in cached h261 format. More... | |
struct ast_format * | ast_format_h263 |
Built-in cached h263 format. More... | |
struct ast_format * | ast_format_h263p |
Built-in cached h263 plus format. More... | |
struct ast_format * | ast_format_h264 |
Built-in cached h264 format. More... | |
struct ast_format * | ast_format_h265 |
Built-in cached h265 format. More... | |
struct ast_format * | ast_format_ilbc |
Built-in cached ilbc format. More... | |
struct ast_format * | ast_format_jpeg |
Built-in cached jpeg format. More... | |
struct ast_format * | ast_format_lpc10 |
Built-in cached ilbc format. More... | |
struct ast_format * | ast_format_mp4 |
Built-in cached mp4 format. More... | |
struct ast_format * | ast_format_none |
Built-in "null" format. More... | |
struct ast_format * | ast_format_opus |
Built-in cached opus format. More... | |
struct ast_format * | ast_format_png |
Built-in cached png format. More... | |
struct ast_format * | ast_format_silk12 |
struct ast_format * | ast_format_silk16 |
struct ast_format * | ast_format_silk24 |
struct ast_format * | ast_format_silk8 |
Built-in "silk" format. More... | |
struct ast_format * | ast_format_siren14 |
Built-in cached siren14 format. More... | |
struct ast_format * | ast_format_siren7 |
Built-in cached siren7 format. More... | |
struct ast_format * | ast_format_slin |
Built-in cached signed linear 8kHz format. More... | |
struct ast_format * | ast_format_slin12 |
Built-in cached signed linear 12kHz format. More... | |
struct ast_format * | ast_format_slin16 |
Built-in cached signed linear 16kHz format. More... | |
struct ast_format * | ast_format_slin192 |
Built-in cached signed linear 192kHz format. More... | |
struct ast_format * | ast_format_slin24 |
Built-in cached signed linear 24kHz format. More... | |
struct ast_format * | ast_format_slin32 |
Built-in cached signed linear 32kHz format. More... | |
struct ast_format * | ast_format_slin44 |
Built-in cached signed linear 44kHz format. More... | |
struct ast_format * | ast_format_slin48 |
Built-in cached signed linear 48kHz format. More... | |
struct ast_format * | ast_format_slin96 |
Built-in cached signed linear 96kHz format. More... | |
struct ast_format * | ast_format_speex |
Built-in cached speex format. More... | |
struct ast_format * | ast_format_speex16 |
Built-in cached speex at 16kHz format. More... | |
struct ast_format * | ast_format_speex32 |
Built-in cached speex at 32kHz format. More... | |
struct ast_format * | ast_format_t140 |
Built-in cached t140 format. More... | |
struct ast_format * | ast_format_t140_red |
Built-in cached t140 red format. More... | |
struct ast_format * | ast_format_t38 |
Built-in cached T.38 format. More... | |
struct ast_format * | ast_format_ulaw |
Built-in cached ulaw format. More... | |
struct ast_format * | ast_format_vp8 |
Built-in cached vp8 format. More... | |
struct ast_format * | ast_format_vp9 |
Built-in cached vp9 format. More... | |
static struct ao2_container * | formats |
Cached formats. More... | |
Media Format Cache API.
Definition in file format_cache.c.
#define CACHE_BUCKETS 53 |
Number of buckets to use for the media format cache (should be prime for performance reasons)
Definition at line 257 of file format_cache.c.
struct ast_format * __ast_format_cache_get | ( | const char * | name, |
const char * | tag, | ||
const char * | file, | ||
int | line, | ||
const char * | func | ||
) |
Definition at line 502 of file format_cache.c.
References __ao2_find(), ast_strlen_zero(), make_ari_stubs::file, name, NULL, and OBJ_SEARCH_KEY.
struct ast_format * ast_format_cache_get_by_codec | ( | const struct ast_codec * | codec | ) |
Retrieve a format from the cache by its codec.
codec | The codec to search by |
non-NULL | if found |
NULL | if not found |
Definition at line 551 of file format_cache.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_format_get_codec(), and NULL.
Referenced by ast_format_cap_append_by_type().
struct ast_format * ast_format_cache_get_slin_by_rate | ( | unsigned int | rate | ) |
Retrieve the best signed linear format given a sample rate.
rate | The sample rate |
This is a convenience function that returns one of the global ast_format_slinxxx formats.
Definition at line 512 of file format_cache.c.
References ast_format_slin, ast_format_slin12, ast_format_slin16, ast_format_slin192, ast_format_slin24, ast_format_slin32, ast_format_slin44, ast_format_slin48, and ast_format_slin96.
Referenced by ast_channel_make_compatible_helper(), audiohook_list_translate_to_slin(), audiohook_read_frame_both(), audiohook_read_frame_helper(), audiohook_read_frame_single(), audiohook_set_internal_rate(), generate_interpolated_slin(), init_jack_data(), mixmonitor_thread(), mp3_exec(), resamp_new(), set_softmix_bridge_data(), snoop_determine_format(), softmix_bridge_unsuspend(), softmix_mixing_loop(), softmix_translate_helper_change_rate(), softmix_translate_helper_init(), and spy_generate().
int ast_format_cache_init | ( | void | ) |
Initialize format cache support within the core.
0 | success |
-1 | failure |
Definition at line 364 of file format_cache.c.
References AO2_ALLOC_OPT_LOCK_RWLOCK, ao2_container_alloc_hash, ast_register_cleanup(), CACHE_BUCKETS, format_cache_shutdown(), format_cmp_cb(), format_hash_cb(), and NULL.
Referenced by asterisk_daemon().
int ast_format_cache_is_slinear | ( | struct ast_format * | format | ) |
Determines if a format is one of the cached slin formats.
format | The format to check |
0 | if the format is not an SLIN format |
1 | if the format is an SLIN format |
Definition at line 534 of file format_cache.c.
References ast_format_cmp(), AST_FORMAT_CMP_EQUAL, ast_format_slin, ast_format_slin12, ast_format_slin16, ast_format_slin192, ast_format_slin24, ast_format_slin32, ast_format_slin44, ast_format_slin48, and ast_format_slin96.
Referenced by __ast_read(), ast_channel_make_compatible_helper(), ast_dsp_call_progress(), ast_dsp_process(), ast_dsp_silence_noise_with_energy(), ast_frame_adjust_volume(), ast_frame_adjust_volume_float(), ast_rtp_interpret(), ast_slinfactory_init_with_format(), and ast_write_stream().
int ast_format_cache_set | ( | struct ast_format * | format | ) |
Set a named format cache entry.
format | A pointer to the format to cache |
0 | success |
-1 | failure |
Definition at line 474 of file format_cache.c.
References ao2_cleanup, ao2_find, ao2_link_flags, ao2_unlink_flags, ast_assert, ast_format_get_name(), ast_strlen_zero(), ast_verb, lock, NULL, OBJ_NOLOCK, OBJ_SEARCH_KEY, SCOPED_AO2WRLOCK, and set_cached_format().
Referenced by AST_TEST_DEFINE().
|
static |
Function called when the process is shutting down.
Definition at line 311 of file format_cache.c.
References ao2_cleanup, ao2_replace, ast_format_adpcm, ast_format_alaw, ast_format_codec2, ast_format_g719, ast_format_g722, ast_format_g723, ast_format_g726, ast_format_g726_aal2, ast_format_g729, ast_format_gsm, ast_format_h261, ast_format_h263, ast_format_h263p, ast_format_h264, ast_format_h265, ast_format_ilbc, ast_format_jpeg, ast_format_lpc10, ast_format_mp4, ast_format_none, ast_format_opus, ast_format_png, ast_format_silk12, ast_format_silk16, ast_format_silk24, ast_format_silk8, ast_format_siren14, ast_format_siren7, ast_format_slin, ast_format_slin12, ast_format_slin16, ast_format_slin192, ast_format_slin24, ast_format_slin32, ast_format_slin44, ast_format_slin48, ast_format_slin96, ast_format_speex, ast_format_speex16, ast_format_speex32, ast_format_t140, ast_format_t140_red, ast_format_t38, ast_format_ulaw, ast_format_vp8, ast_format_vp9, and NULL.
Referenced by ast_format_cache_init().
|
static |
Definition at line 281 of file format_cache.c.
References ast_assert, ast_format_get_name(), CMP_MATCH, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, OBJ_SEARCH_OBJECT, and OBJ_SEARCH_PARTIAL_KEY.
Referenced by ast_format_cache_init().
|
static |
Definition at line 262 of file format_cache.c.
References ast_assert, ast_format_get_name(), ast_str_case_hash(), OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, and OBJ_SEARCH_OBJECT.
Referenced by ast_format_cache_init().
|
static |
Definition at line 377 of file format_cache.c.
References ao2_replace, ast_format_adpcm, ast_format_alaw, ast_format_codec2, ast_format_g719, ast_format_g722, ast_format_g723, ast_format_g726, ast_format_g726_aal2, ast_format_g729, ast_format_gsm, ast_format_h261, ast_format_h263, ast_format_h263p, ast_format_h264, ast_format_h265, ast_format_ilbc, ast_format_jpeg, ast_format_lpc10, ast_format_mp4, ast_format_none, ast_format_opus, ast_format_png, ast_format_silk12, ast_format_silk16, ast_format_silk24, ast_format_silk8, ast_format_siren14, ast_format_siren7, ast_format_slin, ast_format_slin12, ast_format_slin16, ast_format_slin192, ast_format_slin24, ast_format_slin32, ast_format_slin44, ast_format_slin48, ast_format_slin96, ast_format_speex, ast_format_speex16, ast_format_speex32, ast_format_t140, ast_format_t140_red, ast_format_t38, ast_format_ulaw, ast_format_vp8, ast_format_vp9, and name.
Referenced by ast_format_cache_set().
struct ast_format* ast_format_adpcm |
Built-in cached adpcm format.
Definition at line 101 of file format_cache.c.
Referenced by adpcm_sample(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), dahdi_format_to_cached(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_alaw |
Built-in cached alaw format.
Definition at line 91 of file format_cache.c.
Referenced by alarmreceiver_exec(), alaw_sample(), ast_dsp_process(), ast_dsp_silence_noise_with_energy(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), AST_TEST_DEFINE(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), dahdi_new(), dahdi_write(), fax_detect_framehook(), fax_gateway_framehook(), format_cache_shutdown(), handle_exec(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323_rtp_read(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), ooh323c_start_transmit_channel(), pcm_seek(), pcm_write(), send_start_rtp(), set_cached_format(), and spandsp_v21_detect().
struct ast_format* ast_format_codec2 |
Built-in cached codec2 format.
Built-in cached Codec 2 format.
Definition at line 226 of file format_cache.c.
Referenced by codec2_sample(), format_cache_shutdown(), load_module(), set_cached_format(), and unload_module().
struct ast_format* ast_format_g719 |
Built-in cached g719 format.
Definition at line 156 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_g722 |
Built-in cached g722 format.
Definition at line 106 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), ast_rtp_get_rate(), format_cache_shutdown(), jingle_add_payloads_to_description(), load_module(), rtp_get_rate(), rtp_raw_write(), and set_cached_format().
struct ast_format* ast_format_g723 |
Built-in cached g723.1 format.
Definition at line 146 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), format_cache_shutdown(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), send_start_rtp(), and set_cached_format().
struct ast_format* ast_format_g726 |
Built-in cached g726 format.
Definition at line 111 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_codecs_payloads_set_rtpmap_type_rate(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), format_cache_shutdown(), g726_sample(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and set_cached_format().
struct ast_format* ast_format_g726_aal2 |
Built-in cached g726-aal2 format.
Built-in cached g726 aal2 format.
Definition at line 116 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_codecs_payloads_set_rtpmap_type_rate(), ast_rtp_engine_init(), ast_rtp_lookup_mime_subtype2(), convertH323CapToAsteriskCap(), format_cache_shutdown(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), set_cached_format(), and setup_rtp_connection().
struct ast_format* ast_format_g729 |
Built-in cached g729 format.
Definition at line 151 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), format_cache_shutdown(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), ooh323c_start_transmit_channel(), send_start_rtp(), and set_cached_format().
struct ast_format* ast_format_gsm |
Built-in cached gsm format.
Definition at line 96 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), format_cache_shutdown(), gsm_sample(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), set_cached_format(), and test_vm_api_create_mock_channel().
struct ast_format* ast_format_h261 |
Built-in cached h261 format.
Definition at line 161 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_h263 |
Built-in cached h263 format.
Definition at line 166 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), format_cache_shutdown(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and set_cached_format().
struct ast_format* ast_format_h263p |
Built-in cached h263 plus format.
Definition at line 171 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_h264 |
Built-in cached h264 format.
Definition at line 176 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), AST_TEST_DEFINE(), chan_pjsip_indicate(), format_cache_shutdown(), handle_exec(), load_module(), load_stream_readqueue(), make_channel(), mock_channel_read(), and set_cached_format().
struct ast_format* ast_format_h265 |
Built-in cached h265 format.
Definition at line 181 of file format_cache.c.
Referenced by ast_rtp_engine_init(), chan_pjsip_indicate(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_ilbc |
Built-in cached ilbc format.
Definition at line 121 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), dahdi_format_to_cached(), format_cache_shutdown(), ilbc_sample(), load_module(), and set_cached_format().
struct ast_format* ast_format_jpeg |
Built-in cached jpeg format.
Definition at line 201 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_lpc10 |
Built-in cached ilbc format.
Definition at line 126 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), dahdi_format_to_cached(), format_cache_shutdown(), lpc10_sample(), and set_cached_format().
struct ast_format* ast_format_mp4 |
Built-in cached mp4 format.
Definition at line 186 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_none |
Built-in "null" format.
Definition at line 246 of file format_cache.c.
Referenced by __ast_channel_alloc_ap(), ast_format_cap_append_by_type(), ast_format_cap_empty(), ast_format_cap_get_best_by_type(), ast_format_cap_get_format(), ast_rtp_dtmf_begin(), ast_rtp_new(), bridge_p2p_rtp_write(), decode_frame(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_opus |
Built-in cached opus format.
Definition at line 221 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_png |
Built-in cached png format.
Definition at line 206 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_silk12 |
Definition at line 252 of file format_cache.c.
Referenced by format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_silk16 |
Definition at line 253 of file format_cache.c.
Referenced by format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_silk24 |
Definition at line 254 of file format_cache.c.
Referenced by format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_silk8 |
Built-in "silk" format.
Built-in SILK format.
Definition at line 251 of file format_cache.c.
Referenced by format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_siren14 |
Built-in cached siren14 format.
Definition at line 211 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_siren7 |
Built-in cached siren7 format.
Definition at line 216 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin |
Built-in cached signed linear 8kHz format.
Definition at line 41 of file format_cache.c.
Referenced by _moh_class_malloc(), action_originate(), alloc_playback_chan(), announce_to_dial(), ast_audiosocket_receive_frame(), ast_channel_start_silence_generator(), ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_frame_slinear_sum(), ast_rtp_engine_init(), ast_slinfactory_init(), ast_speech_new(), ast_write_stream(), audiosocket_exec(), background_detect_exec(), broadcast_exec(), build_conf(), chanspy_exec(), conf_run(), conf_start_record(), create_test_frame(), dahdi_format_to_cached(), dahdi_read(), dahdi_write(), dahdiscan_exec(), derive_format_from_cap(), dictate_exec(), do_notify(), do_waiting(), eagi_exec(), extenspy_exec(), fax_detect_framehook(), fax_gateway_framehook(), format_cache_shutdown(), g722_sample(), generate_interpolated_slin(), generic_fax_exec(), generic_recall(), handle_exec(), handle_participant_join(), handle_recordfile(), handle_speechcreate(), handle_speechrecognize(), holding_bridge_join(), iax_frame_wrap(), isAnsweringMachine(), linear_alloc(), linear_generator(), load_module(), make_silence(), measurenoise(), meetme_menu_admin_extended(), moh_parse_options(), new_outgoing(), ooh323_rtp_read(), orig_app(), orig_exten(), originate_exec(), participant_reaction_announcer_join(), playtones_alloc(), playtones_generator(), prepare_bridge_media_channel(), prepare_bridge_moh_channel(), rec_request(), recalling_enter(), record_exec(), retransfer_enter(), send_waveform_to_channel(), set_cached_format(), set_read_to_slin(), silence_generator_generate(), slin8_sample(), socket_process_helper(), spandsp_fax_gateway_process(), spandsp_fax_gw_t30_gen(), spandsp_fax_read(), spandsp_v21_detect(), spy_generate(), tonepair_alloc(), and tonepair_generator().
struct ast_format* ast_format_slin12 |
Built-in cached signed linear 12kHz format.
Definition at line 46 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin16 |
Built-in cached signed linear 16kHz format.
Definition at line 51 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), console_new(), format_cache_shutdown(), load_module(), set_cached_format(), slin16_sample(), and stream_monitor().
struct ast_format* ast_format_slin192 |
Built-in cached signed linear 192kHz format.
Definition at line 81 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin24 |
Built-in cached signed linear 24kHz format.
Definition at line 56 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin32 |
Built-in cached signed linear 32kHz format.
Definition at line 61 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin44 |
Built-in cached signed linear 44kHz format.
Definition at line 66 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin48 |
Built-in cached signed linear 48kHz format.
Definition at line 71 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_slin96 |
Built-in cached signed linear 96kHz format.
Definition at line 76 of file format_cache.c.
Referenced by ast_format_cache_get_slin_by_rate(), ast_format_cache_is_slinear(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_speex |
Built-in cached speex format.
Definition at line 131 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), format_cache_shutdown(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), set_cached_format(), and speex_sample().
struct ast_format* ast_format_speex16 |
Built-in cached speex at 16kHz format.
Definition at line 136 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), format_cache_shutdown(), load_module(), set_cached_format(), and speex16_sample().
struct ast_format* ast_format_speex32 |
Built-in cached speex at 32kHz format.
Definition at line 141 of file format_cache.c.
Referenced by ast_rtp_engine_init(), format_cache_shutdown(), load_module(), and set_cached_format().
struct ast_format* ast_format_t140 |
Built-in cached t140 format.
Definition at line 231 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), ast_rtp_interpret(), ast_sendtext_data(), ast_write_stream(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_t140_red |
Built-in cached t140 red format.
Definition at line 236 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), ast_rtp_interpret(), format_cache_shutdown(), rtp_red_init(), and set_cached_format().
struct ast_format* ast_format_t38 |
Built-in cached T.38 format.
Definition at line 241 of file format_cache.c.
Referenced by format_cache_shutdown(), set_cached_format(), and t38_create_media_state().
struct ast_format* ast_format_ulaw |
Built-in cached ulaw format.
Definition at line 86 of file format_cache.c.
Referenced by __adsi_transmit_messages(), adsi_careful_send(), adsi_transmit_message_full(), alarmreceiver_exec(), ast_dsp_process(), ast_dsp_silence_noise_with_energy(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), AST_TEST_DEFINE(), calc_energy(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), dahdi_new(), dahdi_write(), derive_format_from_cap(), fax_detect_framehook(), fax_gateway_framehook(), format_cache_shutdown(), handle_exec(), load_module(), load_stream_readqueue(), make_channel(), milliwatt_generate(), mock_channel_read(), old_milliwatt_exec(), ooh323_convertAsteriskCapToH323Cap(), ooh323_rtp_read(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), ooh323c_start_transmit_channel(), reload_config(), send_start_rtp(), set_cached_format(), spandsp_v21_detect(), test_write_and_read_interleaved_frames(), test_write_frames(), and ulaw_sample().
struct ast_format* ast_format_vp8 |
Built-in cached vp8 format.
Definition at line 191 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), chan_pjsip_indicate(), format_cache_shutdown(), and set_cached_format().
struct ast_format* ast_format_vp9 |
Built-in cached vp9 format.
Definition at line 196 of file format_cache.c.
Referenced by ast_rtp_engine_init(), chan_pjsip_indicate(), format_cache_shutdown(), and set_cached_format().
|
static |
Cached formats.
Definition at line 260 of file format_cache.c.