#[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,
}Fields§
§codec_type: switch_codec_type_t§ianacode: switch_payload_t§iananame: *mut c_char§fmtp: *mut c_char§samples_per_second: u32§actual_samples_per_second: u32§bits_per_second: c_int§microseconds_per_packet: c_int§samples_per_packet: u32§decoded_bytes_per_packet: u32§encoded_bytes_per_packet: u32§number_of_channels: u8§codec_frames_per_packet: c_int§init: switch_core_codec_init_func_t§encode: switch_core_codec_encode_func_t§decode: switch_core_codec_decode_func_t§encode_video: switch_core_codec_video_encode_func_t§decode_video: switch_core_codec_video_decode_func_t§codec_control: switch_core_codec_control_func_t§destroy: switch_core_codec_destroy_func_t§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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for switch_codec_implementation
impl Debug for switch_codec_implementation
impl Copy for switch_codec_implementation
Auto Trait Implementations§
impl Freeze for switch_codec_implementation
impl RefUnwindSafe for switch_codec_implementation
impl !Send for switch_codec_implementation
impl !Sync for switch_codec_implementation
impl Unpin for switch_codec_implementation
impl UnsafeUnpin for switch_codec_implementation
impl UnwindSafe for switch_codec_implementation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more