pub type switch_frame_t = switch_frame;Expand description
\brief An abstraction of a data frame
Aliased Type§
#[repr(C)]pub struct switch_frame_t {Show 21 fields
pub codec: *mut switch_codec,
pub source: *const i8,
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: u8,
pub timestamp: u32,
pub seq: u16,
pub ssrc: u32,
pub m: u32,
pub flags: u32,
pub user_data: *mut c_void,
pub pmap: *mut payload_map_s,
pub img: *mut vpx_image,
pub geometry: switch_frame_geometry,
}Fields§
§codec: *mut switch_codeca pointer to the codec information
source: *const i8the 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: u8the payload of the frame
timestamp: u32the timestamp of the frame
seq: u16§ssrc: u32§m: u32§flags: u32frame flags
user_data: *mut c_void§pmap: *mut payload_map_s§img: *mut vpx_image§geometry: switch_frame_geometry