#[repr(C)]pub struct switch_frame {Show 21 fields
pub codec: *mut switch_codec_t,
pub source: *const c_char,
pub packet: *mut c_void,
pub packetlen: u32,
pub extra_data: *mut c_void,
pub data: *mut c_void,
pub datalen: u32,
pub buflen: u32,
pub samples: u32,
pub rate: u32,
pub channels: u32,
pub payload: switch_payload_t,
pub timestamp: u32,
pub seq: u16,
pub ssrc: u32,
pub m: switch_bool_t,
pub flags: switch_frame_flag_t,
pub user_data: *mut c_void,
pub pmap: *mut payload_map_t,
pub img: *mut switch_image_t,
pub geometry: switch_frame_geometry,
}Expand description
\brief An abstraction of a data frame
Fields§
§codec: *mut switch_codec_ta pointer to the codec information
source: *const c_charthe originating source of the frame
packet: *mut c_voidthe raw packet
packetlen: u32the size of the raw packet when applicable
extra_data: *mut c_voidthe extra frame data
data: *mut c_voidthe frame data
datalen: u32the size of the buffer that is in use
buflen: u32the entire size of the buffer
samples: u32the number of audio samples present (audio only)
rate: u32the rate of the frame
channels: u32the number of channels in the frame
payload: switch_payload_tthe payload of the frame
timestamp: u32the timestamp of the frame
seq: u16§ssrc: u32§m: switch_bool_t§flags: switch_frame_flag_tframe flags
user_data: *mut c_void§pmap: *mut payload_map_t§img: *mut switch_image_t§geometry: switch_frame_geometryTrait Implementations§
Source§impl Clone for switch_frame
impl Clone for switch_frame
Source§fn clone(&self) -> switch_frame
fn clone(&self) -> switch_frame
Returns a duplicate of the value. Read more
1.0.0 · 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_frame
impl Debug for switch_frame
impl Copy for switch_frame
Auto Trait Implementations§
impl Freeze for switch_frame
impl RefUnwindSafe for switch_frame
impl !Send for switch_frame
impl !Sync for switch_frame
impl Unpin for switch_frame
impl UnwindSafe for switch_frame
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