FreeSWITCH API Documentation  1.7.0
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_implementation
next
 

Detailed Description

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

Definition at line 695 of file switch_module_interfaces.h.

Field Documentation

uint32_t switch_codec_implementation::actual_samples_per_second
int switch_codec_implementation::bits_per_second
switch_core_codec_control_func_t switch_codec_implementation::codec_control

function to send control messages to the codec

Definition at line 733 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation().

int switch_codec_implementation::codec_frames_per_packet

number of codec frames packetized into one packet

Definition at line 721 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), and switch_core_codec_add_video_implementation().

uint32_t switch_codec_implementation::codec_id
switch_codec_type_t switch_codec_implementation::codec_type
switch_core_codec_decode_func_t switch_codec_implementation::decode

function to decode encoded data into raw data

Definition at line 727 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation().

switch_core_codec_video_decode_func_t switch_codec_implementation::decode_video

function to decode video encoded data into raw data

Definition at line 731 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation().

uint32_t switch_codec_implementation::decoded_bytes_per_packet
switch_core_codec_destroy_func_t switch_codec_implementation::destroy

deinitalize a codec handle using this implementation

Definition at line 735 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation(), and switch_core_codec_add_video_implementation().

switch_core_codec_encode_func_t switch_codec_implementation::encode

function to encode raw data into encoded data

Definition at line 725 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_implementation().

switch_core_codec_video_encode_func_t switch_codec_implementation::encode_video

function to encode video raw data into encoded data

Definition at line 729 of file switch_module_interfaces.h.

Referenced by switch_core_codec_add_video_implementation().

uint32_t switch_codec_implementation::encoded_bytes_per_packet
char* switch_codec_implementation::fmtp

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

Definition at line 703 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().

switch_payload_t switch_codec_implementation::ianacode
char* switch_codec_implementation::iananame
uint32_t switch_codec_implementation::impl_id
switch_core_codec_init_func_t switch_codec_implementation::init

function to initialize a codec handle using this implementation

Definition at line 723 of file switch_module_interfaces.h.

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

int switch_codec_implementation::microseconds_per_packet
char* switch_codec_implementation::modname
struct switch_codec_implementation* switch_codec_implementation::next
uint8_t switch_codec_implementation::number_of_channels
uint32_t switch_codec_implementation::samples_per_packet
uint32_t switch_codec_implementation::samples_per_second

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