Type Alias switch_frame_t

Source
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_codec

a pointer to the codec information

§source: *const i8

the originating source of the frame

§packet: *mut c_void

the raw packet

§packetlen: u32

the size of the raw packet when applicable

§extra_data: *mut c_void

the extra frame data

§data: *mut c_void

the frame data

§datalen: u32

the size of the buffer that is in use

§buflen: u32

the entire size of the buffer

§samples: u32

the number of audio samples present (audio only)

§rate: u32

the rate of the frame

§channels: u32

the number of channels in the frame

§payload: u8

the payload of the frame

§timestamp: u32

the timestamp of the frame

§seq: u16§ssrc: u32§m: u32§flags: u32

frame flags

§user_data: *mut c_void§pmap: *mut payload_map_s§img: *mut vpx_image§geometry: switch_frame_geometry