RTS API Documentation  1.10.11
Data Fields
switch_codec_implementation Struct Reference

A table of settings and callbacks that define a paticular implementation of a codec. More...

#include <switch_module_interfaces.h>

+ Collaboration diagram for switch_codec_implementation:

Data Fields

switch_codec_type_t codec_type
 
switch_payload_t ianacode
 
char * iananame
 
char * fmtp
 
uint32_t samples_per_second
 
uint32_t actual_samples_per_second
 
int bits_per_second
 
int microseconds_per_packet
 
uint32_t samples_per_packet
 
uint32_t decoded_bytes_per_packet
 
uint32_t encoded_bytes_per_packet
 
uint8_t number_of_channels
 
int codec_frames_per_packet
 
switch_core_codec_init_func_t init
 
switch_core_codec_encode_func_t encode
 
switch_core_codec_decode_func_t decode
 
switch_core_codec_video_encode_func_t encode_video
 
switch_core_codec_video_decode_func_t decode_video
 
switch_core_codec_control_func_t codec_control
 
switch_core_codec_destroy_func_t destroy
 
uint32_t codec_id
 
uint32_t impl_id
 
char * modname
 
struct switch_codec_implementationnext
 

Detailed Description

A table of settings and callbacks that define a paticular implementation of a codec.

Definition at line 723 of file switch_module_interfaces.h.

Field Documentation

◆ actual_samples_per_second

uint32_t switch_codec_implementation::actual_samples_per_second

actual samples transferred per second for those who are not moron g722 RFC writers

Definition at line 735 of file switch_module_interfaces.h.

Referenced by audio_bridge_thread(), early_thread_run(), inband_dtmf_generate_callback(), main(), record_callback(), rtp_common_write(), send_record_stop_event(), setup_ringback(), switch_channel_event_set_basic_data(), switch_core_codec_add_implementation(), switch_core_codec_add_video_implementation(), switch_core_codec_copy(), switch_core_codec_init_with_bitrate(), switch_core_media_bug_read(), switch_core_media_get_offered_pt(), switch_core_media_negotiate_sdp(), switch_core_media_set_codec(), switch_core_session_read_frame(), switch_core_session_send_dtmf_string(), switch_core_session_set_codec_slin(), switch_core_session_set_read_codec(), switch_core_session_set_real_read_codec(), switch_core_session_set_video_read_codec(), switch_core_session_set_video_write_codec(), switch_core_session_set_write_codec(), switch_core_session_write_frame(), switch_ivr_activate_unicast(), switch_ivr_detect_audio(), switch_ivr_detect_silence(), switch_ivr_detect_speech_init(), switch_ivr_displace_session(), switch_ivr_eavesdrop_session(), switch_ivr_gentones(), switch_ivr_inband_dtmf_session(), switch_ivr_insert_file(), switch_ivr_park(), switch_ivr_play_file(), switch_ivr_record_file_event(), switch_ivr_record_session_event(), switch_ivr_sleep(), switch_ivr_sound_test(), switch_ivr_speak_text(), switch_ivr_tone_detect_session(), switch_ivr_wait_for_answer(), switch_ivr_wait_for_silence(), switch_loadable_module_get_codecs_sorted(), switch_loadable_module_process(), switch_loadable_module_unprocess(), switch_raw_decode(), switch_raw_encode(), and switch_speex_init().

◆ bits_per_second

int switch_codec_implementation::bits_per_second

◆ codec_control

switch_core_codec_control_func_t switch_codec_implementation::codec_control

function to send control messages to the codec

Definition at line 761 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation(), and switch_core_codec_control().

◆ codec_frames_per_packet

int switch_codec_implementation::codec_frames_per_packet

number of codec frames packetized into one packet

Definition at line 749 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), and switch_core_codec_add_video_implementation().

◆ codec_id

uint32_t switch_codec_implementation::codec_id

◆ codec_type

switch_codec_type_t switch_codec_implementation::codec_type

◆ decode

switch_core_codec_decode_func_t switch_codec_implementation::decode

function to decode encoded data into raw data

Definition at line 755 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), and switch_core_codec_decode().

◆ decode_video

switch_core_codec_video_decode_func_t switch_codec_implementation::decode_video

function to decode video encoded data into raw data

Definition at line 759 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation(), and switch_core_codec_decode_video().

◆ decoded_bytes_per_packet

uint32_t switch_codec_implementation::decoded_bytes_per_packet

◆ destroy

switch_core_codec_destroy_func_t switch_codec_implementation::destroy

deinitalize a codec handle using this implementation

Definition at line 763 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), switch_core_codec_add_video_implementation(), switch_core_codec_destroy(), and switch_core_codec_reset().

◆ encode

switch_core_codec_encode_func_t switch_codec_implementation::encode

function to encode raw data into encoded data

Definition at line 753 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), and switch_core_codec_encode().

◆ encode_video

switch_core_codec_video_encode_func_t switch_codec_implementation::encode_video

function to encode video raw data into encoded data

Definition at line 757 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation(), and switch_core_codec_encode_video().

◆ encoded_bytes_per_packet

uint32_t switch_codec_implementation::encoded_bytes_per_packet

◆ fmtp

char* switch_codec_implementation::fmtp

default fmtp to send (can be overridden by the init function)

Definition at line 731 of file switch_module_interfaces.h.

Referenced by generate_m(), switch_core_codec_add_implementation(), switch_core_codec_add_video_implementation(), and switch_core_media_gen_local_sdp().

◆ ianacode

switch_payload_t switch_codec_implementation::ianacode

◆ iananame

char* switch_codec_implementation::iananame

◆ impl_id

uint32_t switch_codec_implementation::impl_id

◆ init

switch_core_codec_init_func_t switch_codec_implementation::init

function to initialize a codec handle using this implementation

Definition at line 751 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), switch_core_codec_add_video_implementation(), switch_core_codec_init_with_bitrate(), and switch_core_codec_reset().

◆ microseconds_per_packet

int switch_codec_implementation::microseconds_per_packet

◆ modname

char* switch_codec_implementation::modname

◆ next

struct switch_codec_implementation* switch_codec_implementation::next

◆ number_of_channels

uint8_t switch_codec_implementation::number_of_channels

◆ samples_per_packet

uint32_t switch_codec_implementation::samples_per_packet

◆ samples_per_second

uint32_t switch_codec_implementation::samples_per_second

The documentation for this struct was generated from the following file: