#[repr(C)]pub struct Frame {Show 15 fields
pub frame_type: FrameType,
pub timestamp: u32,
pub composition_time: u32,
pub size: u32,
pub data: *const u8,
pub audio_codec: AudioCodec,
pub audio_sample_rate: u32,
pub audio_channels: u8,
pub audio_bit_depth: u8,
pub audio_fourcc: FourCc,
pub video_codec: VideoCodec,
pub video_fourcc: FourCc,
pub video_frame_type: u8,
pub is_metadata: u8,
pub track_id: u8,
}Expand description
A parsed frame delivered via the on_frame callback.
Fields§
§frame_type: FrameType§timestamp: u32§composition_time: u32§size: u32§data: *const u8§audio_codec: AudioCodecAudio-specific
audio_sample_rate: u32§audio_channels: u8§audio_bit_depth: u8§audio_fourcc: FourCcEnhanced: FourCC from ExAudioTagHeader
video_codec: VideoCodecVideo-specific
video_fourcc: FourCc§video_frame_type: u81=keyframe, 2=inter, etc.
is_metadata: u8Script/metadata flag
track_id: u8E-RTMP multitrack id (0 = default track; 255 = not set / single-track).
Trait Implementations§
Auto Trait Implementations§
impl !Send for Frame
impl !Sync for Frame
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for 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