#[repr(C)]pub struct switch_codec_implementation {Show 24 fields
pub codec_type: switch_codec_type_t,
pub ianacode: switch_payload_t,
pub iananame: *mut c_char,
pub fmtp: *mut c_char,
pub samples_per_second: u32,
pub actual_samples_per_second: u32,
pub bits_per_second: c_int,
pub microseconds_per_packet: c_int,
pub samples_per_packet: u32,
pub decoded_bytes_per_packet: u32,
pub encoded_bytes_per_packet: u32,
pub number_of_channels: u8,
pub codec_frames_per_packet: c_int,
pub init: switch_core_codec_init_func_t,
pub encode: switch_core_codec_encode_func_t,
pub decode: switch_core_codec_decode_func_t,
pub encode_video: switch_core_codec_video_encode_func_t,
pub decode_video: switch_core_codec_video_decode_func_t,
pub codec_control: switch_core_codec_control_func_t,
pub destroy: switch_core_codec_destroy_func_t,
pub codec_id: u32,
pub impl_id: u32,
pub modname: *mut c_char,
pub next: *mut switch_codec_implementation,
}Expand description
\brief A table of settings and callbacks that define a paticular implementation of a codec
Fields§
§codec_type: switch_codec_type_tenumeration defining the type of the codec
ianacode: switch_payload_tthe IANA code number
iananame: *mut c_charthe IANA code name
fmtp: *mut c_chardefault fmtp to send (can be overridden by the init function)
samples_per_second: u32samples transferred per second
actual_samples_per_second: u32actual samples transferred per second for those who are not moron g722 RFC writers
bits_per_second: c_intbits transferred per second
microseconds_per_packet: c_intnumber of microseconds of media in one packet (ptime * 1000)
samples_per_packet: u32number of samples in one packet
decoded_bytes_per_packet: u32number of bytes one packet will decompress to
encoded_bytes_per_packet: u32number of encoded bytes in the RTP payload
number_of_channels: u8number of channels represented
codec_frames_per_packet: c_intnumber of codec frames packetized into one packet
init: switch_core_codec_init_func_tfunction to initialize a codec handle using this implementation
encode: switch_core_codec_encode_func_tfunction to encode raw data into encoded data
decode: switch_core_codec_decode_func_tfunction to decode encoded data into raw data
encode_video: switch_core_codec_video_encode_func_tfunction to encode video raw data into encoded data
decode_video: switch_core_codec_video_decode_func_tfunction to decode video encoded data into raw data
codec_control: switch_core_codec_control_func_tfunction to send control messages to the codec
destroy: switch_core_codec_destroy_func_tdeinitalize a codec handle using this implementation
codec_id: u32§impl_id: u32§modname: *mut c_char§next: *mut switch_codec_implementationTrait Implementations§
Source§impl Clone for switch_codec_implementation
impl Clone for switch_codec_implementation
Source§fn clone(&self) -> switch_codec_implementation
fn clone(&self) -> switch_codec_implementation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more