Asterisk - The Open Source Telephony Project
18.5.0
|
Represents a media codec within Asterisk. More...
#include <codec.h>
Data Fields | |
unsigned int | default_ms |
Default length of media carried (in milliseconds) in a frame. More... | |
const char * | description |
Brief description. More... | |
int(* | get_length )(unsigned int samples) |
Retrieve the length of media from number of samples. More... | |
unsigned int | id |
Internal unique identifier for this codec, set at registration time (starts at 1) More... | |
unsigned int | maximum_ms |
Maximum length of media that can be carried (in milliseconds) in a frame. More... | |
unsigned int | minimum_bytes |
Length in bytes of the data payload of a minimum_ms frame. More... | |
unsigned int | minimum_ms |
Minimum length of media that can be carried (in milliseconds) in a frame. More... | |
struct ast_module * | mod |
The module that registered this codec. More... | |
const char * | name |
Name for this codec. More... | |
unsigned int | sample_rate |
Sample rate (number of samples carried in a second) More... | |
int(* | samples_count )(struct ast_frame *frame) |
Retrieve the number of samples in a frame. More... | |
unsigned int | smooth |
Whether the media can be smoothed or not. More... | |
unsigned int | smoother_flags |
Flags to be passed to the smoother. More... | |
enum ast_media_type | type |
Type of media this codec contains. More... | |
unsigned int default_ms |
Default length of media carried (in milliseconds) in a frame.
Definition at line 58 of file codec.h.
Referenced by ast_format_get_default_ms().
const char* description |
Brief description.
Definition at line 48 of file codec.h.
Referenced by __ast_codec_register_with_format(), ast_format_create_named(), Parameter::load(), Api::load(), Property::load(), Model::load(), ResourceApi::load(), show_codec(), and show_codecs().
int(* get_length) (unsigned int samples) |
Retrieve the length of media from number of samples.
samples | The number of samples |
Definition at line 76 of file codec.h.
Referenced by ast_codec_determine_length().
unsigned int id |
Internal unique identifier for this codec, set at registration time (starts at 1)
Definition at line 44 of file codec.h.
Referenced by __ast_codec_register_with_format(), add_codec2index(), ast_format_compatibility_codec2bitfield(), ast_format_get_codec_id(), codec2index(), codec_id_cmp(), Model::load(), show_codec(), and show_codecs().
unsigned int maximum_ms |
Maximum length of media that can be carried (in milliseconds) in a frame.
Definition at line 56 of file codec.h.
Referenced by ast_format_get_maximum_ms().
unsigned int minimum_bytes |
Length in bytes of the data payload of a minimum_ms frame.
Definition at line 60 of file codec.h.
Referenced by ast_format_get_minimum_bytes().
unsigned int minimum_ms |
Minimum length of media that can be carried (in milliseconds) in a frame.
Definition at line 54 of file codec.h.
Referenced by ast_format_get_minimum_ms().
struct ast_module* mod |
The module that registered this codec.
Definition at line 82 of file codec.h.
Referenced by codec_dtor().
const char* name |
Name for this codec.
Definition at line 46 of file codec.h.
Referenced by __ast_codec_register_with_format(), __ast_register_translator(), ast_codec_get(), ast_format_attribute_get(), ast_format_create(), ast_format_create_named(), ast_format_generate_sdp_fmtp(), ast_format_get_codec_name(), ast_format_parse_sdp_fmtp(), AST_TEST_DEFINE(), ast_unregister_translator(), codec_append_name(), codec_cmp(), complete_trans_path_choice(), dahdi_translate(), generate_table_cost(), PathSegment::get_child(), get_dahdi_codec(), handle_show_translation_path(), handle_show_translation_table(), Parameter::load(), SwaggerType::load(), Property::load(), matrix_rebuild(), newpvt(), register_translator(), and show_codecs().
unsigned int sample_rate |
Sample rate (number of samples carried in a second)
Definition at line 52 of file codec.h.
Referenced by __ast_codec_register_with_format(), __ast_register_translator(), ast_codec_get(), ast_format_get_sample_rate(), AST_TEST_DEFINE(), ast_translator_build_path(), codec_append_name(), codec_cmp(), framein(), generate_computational_cost(), generate_table_cost(), handle_cli_core_show_translation(), handle_show_translation_path(), handle_show_translation_table(), ilbctolin_framein(), lintoilbc_frameout(), load_module(), newpvt(), and resamp_new().
int(* samples_count) (struct ast_frame *frame) |
Retrieve the number of samples in a frame.
frame | The frame to examine |
Definition at line 68 of file codec.h.
Referenced by ast_codec_samples_count().
unsigned int smooth |
Whether the media can be smoothed or not.
Definition at line 78 of file codec.h.
Referenced by ast_format_can_be_smoothed().
unsigned int smoother_flags |
Flags to be passed to the smoother.
Definition at line 80 of file codec.h.
Referenced by ast_format_get_smoother_flags().
enum ast_media_type type |
Type of media this codec contains.
Definition at line 50 of file codec.h.
Referenced by __ast_codec_register_with_format(), __ast_register_translator(), ast_format_cap_append_by_type(), ast_format_get_type(), AST_TEST_DEFINE(), ast_translator_build_path(), codec_cmp(), complete_trans_path_choice(), generate_table_cost(), handle_show_translation_path(), handle_show_translation_table(), Property::load(), newpvt(), and show_codecs().