Asterisk - The Open Source Telephony Project
18.5.0
|
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) |
Retrieve a named format from the cache. More... | |
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_testlaw |
Built-in cached testlaw 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 262 of file format_cache.c.
Referenced by ast_format_cache_init().
struct ast_format* __ast_format_cache_get | ( | const char * | name, |
const char * | tag, | ||
const char * | file, | ||
int | line, | ||
const char * | func | ||
) |
Retrieve a named format from the cache.
name | Name of the cached format |
non-NULL | if found |
NULL | if not found |
Definition at line 510 of file format_cache.c.
References __ao2_find(), ast_strlen_zero, 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 559 of file format_cache.c.
References ao2_cleanup, ao2_iterator_destroy(), ao2_iterator_init(), ao2_iterator_next, ao2_ref, ast_format_get_codec(), format, 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 520 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(), and softmix_translate_helper_init().
int ast_format_cache_init | ( | void | ) |
Initialize format cache support within the core.
0 | success |
-1 | failure |
Definition at line 370 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 542 of file format_cache.c.
References ast_format_cmp(), and AST_FORMAT_CMP_EQUAL.
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 482 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 316 of file format_cache.c.
References ao2_cleanup, ao2_replace, and NULL.
Referenced by ast_format_cache_init().
|
static |
Definition at line 286 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 267 of file format_cache.c.
References ast_assert, ast_format_get_name(), ast_str_case_hash(), format, OBJ_SEARCH_KEY, OBJ_SEARCH_MASK, and OBJ_SEARCH_OBJECT.
Referenced by ast_format_cache_init().
|
static |
Definition at line 383 of file format_cache.c.
References ao2_replace.
Referenced by ast_format_cache_set().
struct ast_format* ast_format_adpcm |
Built-in cached adpcm format.
Definition at line 106 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(), and load_module().
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(), cb_events(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), dahdi_new(), dahdi_write(), fax_detect_framehook(), fax_gateway_framehook(), load_module(), misdn_new(), misdn_read(), misdn_write(), ooh323_convertAsteriskCapToH323Cap(), ooh323_rtp_read(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), ooh323c_start_transmit_channel(), pcm_seek(), pcm_write(), send_start_rtp(), sip_set_default_format_capabilities(), and spandsp_v21_detect().
struct ast_format* ast_format_codec2 |
Built-in cached codec2 format.
Built-in cached Codec 2 format.
Definition at line 231 of file format_cache.c.
Referenced by codec2_sample(), load_module(), and unload_module().
struct ast_format* ast_format_g719 |
Built-in cached g719 format.
Definition at line 161 of file format_cache.c.
Referenced by add_codec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), load_module(), and process_sdp_a_audio().
struct ast_format* ast_format_g722 |
Built-in cached g722 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_engine_init(), ast_rtp_get_rate(), codec_ast2skinny(), codec_skinny2ast(), jingle_add_payloads_to_description(), load_module(), rtp_get_rate(), and rtp_raw_write().
struct ast_format* ast_format_g723 |
Built-in cached g723.1 format.
Definition at line 151 of file format_cache.c.
Referenced by add_codec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), phone_setup(), phone_write(), and send_start_rtp().
struct ast_format* ast_format_g726 |
Built-in cached g726 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(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), g726_sample(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), and ooh323c_set_capability_for_call().
struct ast_format* ast_format_g726_aal2 |
Built-in cached g726-aal2 format.
Built-in cached g726 aal2 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_codecs_payloads_set_rtpmap_type_rate(), ast_rtp_engine_init(), ast_rtp_lookup_mime_subtype2(), convertH323CapToAsteriskCap(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and setup_rtp_connection().
struct ast_format* ast_format_g729 |
Built-in cached g729 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(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), ooh323c_start_transmit_channel(), phone_setup(), phone_write(), and send_start_rtp().
struct ast_format* ast_format_gsm |
Built-in cached gsm format.
Definition at line 101 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(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), gsm_sample(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), sip_set_default_format_capabilities(), and test_vm_api_create_mock_channel().
struct ast_format* ast_format_h261 |
Built-in cached h261 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(), codec_ast2skinny(), and codec_skinny2ast().
struct ast_format* ast_format_h263 |
Built-in cached h263 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(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and sip_set_default_format_capabilities().
struct ast_format* ast_format_h263p |
Built-in cached h263 plus format.
Definition at line 176 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), and ast_rtp_engine_init().
struct ast_format* ast_format_h264 |
Built-in cached h264 format.
Definition at line 181 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(), load_module(), load_stream_readqueue(), make_channel(), and mock_channel_read().
struct ast_format* ast_format_h265 |
Built-in cached h265 format.
Definition at line 186 of file format_cache.c.
Referenced by ast_rtp_engine_init(), and chan_pjsip_indicate().
struct ast_format* ast_format_ilbc |
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(), ilbc_sample(), and load_module().
struct ast_format* ast_format_jpeg |
Built-in cached jpeg format.
Definition at line 206 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), and ast_rtp_engine_init().
struct ast_format* ast_format_lpc10 |
Built-in cached ilbc 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(), dahdi_format_to_cached(), and lpc10_sample().
struct ast_format* ast_format_mp4 |
Built-in cached mp4 format.
Definition at line 191 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), and ast_rtp_engine_init().
struct ast_format* ast_format_none |
Built-in "null" format.
Definition at line 251 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_new(), bridge_p2p_rtp_write(), and codec_skinny2ast().
struct ast_format* ast_format_opus |
Built-in cached opus format.
Definition at line 226 of file format_cache.c.
Referenced by add_codec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), and ast_rtp_engine_init().
struct ast_format* ast_format_png |
Built-in cached png format.
Definition at line 211 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), and ast_rtp_engine_init().
struct ast_format* ast_format_silk12 |
Definition at line 257 of file format_cache.c.
struct ast_format* ast_format_silk16 |
Definition at line 258 of file format_cache.c.
struct ast_format* ast_format_silk24 |
Definition at line 259 of file format_cache.c.
struct ast_format* ast_format_silk8 |
struct ast_format* ast_format_siren14 |
Built-in cached siren14 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(), and load_module().
struct ast_format* ast_format_siren7 |
Built-in cached siren7 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(), and load_module().
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(), alsa_new(), alsa_read(), alsa_request(), announce_to_dial(), ast_audiosocket_receive_frame(), ast_channel_start_silence_generator(), ast_format_cache_get_slin_by_rate(), 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(), 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(), fax_generator_generate(), g722_sample(), generate_interpolated_slin(), generic_fax_exec(), generic_recall(), handle_participant_join(), handle_recordfile(), handle_speechcreate(), handle_speechrecognize(), holding_bridge_join(), iax_frame_wrap(), ices_exec(), isAnsweringMachine(), linear_alloc(), linear_generator(), load_module(), make_silence(), measurenoise(), meetme_menu_admin_extended(), moh_parse_options(), nbs_new(), nbs_request(), NBScat_exec(), new_outgoing(), ooh323_rtp_read(), orig_app(), orig_exten(), originate_exec(), oss_new(), oss_read(), oss_request(), participant_reaction_announcer_join(), phone_new(), phone_read(), phone_setup(), phone_write(), 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_read_to_slin(), silence_generator_generate(), slin8_sample(), sms_exec(), socket_process_helper(), spandsp_fax_gateway_process(), spandsp_fax_gw_t30_gen(), spandsp_fax_read(), spandsp_v21_detect(), spy_generate(), tonepair_alloc(), tonepair_generator(), and transmit_audio().
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_rtp_engine_init(), and load_module().
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_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), console_new(), load_module(), 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_rtp_engine_init(), and load_module().
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_rtp_engine_init(), and load_module().
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_rtp_engine_init(), and load_module().
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_rtp_engine_init(), and load_module().
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_rtp_engine_init(), and load_module().
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_rtp_engine_init(), and load_module().
struct ast_format* ast_format_speex |
Built-in cached speex 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(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), load_module(), ooh323_convertAsteriskCapToH323Cap(), ooh323c_set_capability(), ooh323c_set_capability_for_call(), and speex_sample().
struct ast_format* ast_format_speex16 |
Built-in cached speex at 16kHz format.
Definition at line 141 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), load_module(), and speex16_sample().
struct ast_format* ast_format_speex32 |
Built-in cached speex at 32kHz format.
Definition at line 146 of file format_cache.c.
Referenced by ast_rtp_engine_init(), and load_module().
struct ast_format* ast_format_t140 |
Built-in cached t140 format.
Definition at line 236 of file format_cache.c.
Referenced by add_tcodec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), ast_rtp_interpret(), ast_sendtext_data(), and ast_write_stream().
struct ast_format* ast_format_t140_red |
Built-in cached t140 red format.
Definition at line 241 of file format_cache.c.
Referenced by add_tcodec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), ast_rtp_interpret(), process_sdp(), and rtp_red_init().
struct ast_format* ast_format_t38 |
Built-in cached T.38 format.
Definition at line 246 of file format_cache.c.
Referenced by t38_create_media_state().
struct ast_format* ast_format_testlaw |
Built-in cached testlaw format.
Definition at line 96 of file format_cache.c.
Referenced by ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), and ast_format_compatibility_format2bitfield().
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(), codec_ast2skinny(), codec_skinny2ast(), convertH323CapToAsteriskCap(), dahdi_format_to_cached(), dahdi_new(), dahdi_write(), derive_format_from_cap(), fax_detect_framehook(), fax_gateway_framehook(), 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(), phone_setup(), phone_write(), reload_config(), send_start_rtp(), set_test_formats(), sip_set_default_format_capabilities(), spandsp_v21_detect(), test_write_frames(), and ulaw_sample().
struct ast_format* ast_format_vp8 |
Built-in cached vp8 format.
Definition at line 196 of file format_cache.c.
Referenced by add_vcodec_to_sdp(), ast_format_compatibility_bitfield2format(), ast_format_compatibility_codec2bitfield(), ast_format_compatibility_format2bitfield(), ast_rtp_engine_init(), chan_pjsip_indicate(), and sip_indicate().
struct ast_format* ast_format_vp9 |
Built-in cached vp9 format.
Definition at line 201 of file format_cache.c.
Referenced by ast_rtp_engine_init(), and chan_pjsip_indicate().
|
static |
Cached formats.
Definition at line 265 of file format_cache.c.