pub struct FlvFrame { /* private fields */ }Trait Implementations§
Source§impl Frame for FlvFrame
impl Frame for FlvFrame
Source§fn pts(&self) -> i64
fn pts(&self) -> i64
Presentation timestamp in microseconds - same as DTS, but with frame presentation offset correction
Source§fn dts(&self) -> u64
fn dts(&self) -> u64
Decoding timestamp in microseconds (monotonic increasing timestamp starting from 0 (usually) at the first frame)
Source§fn timestamp(&self) -> Option<u64>
fn timestamp(&self) -> Option<u64>
The begging of translation timestamp (unixtimespamp in ms from 01:01:1970)
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Frame Flags (keyframe, last, multitrack, live etc.)
Source§fn params(&self) -> impl Iterator<Item = &[u8]>
fn params(&self) -> impl Iterator<Item = &[u8]>
Iterator by NAL units of the parameters (for h264/h265 - VPS,SPS,PPS), without annexb prefix
Source§fn is_keyframe(&self) -> bool
fn is_keyframe(&self) -> bool
true if frame is IDR (not depends on other frames)
Source§fn is_multichannel(&self) -> bool
fn is_multichannel(&self) -> bool
true if frame is part of multichannel translation
Source§fn is_compressed(&self) -> bool
fn is_compressed(&self) -> bool
true if frame is compressed
Source§fn has_params(&self) -> bool
fn has_params(&self) -> bool
frame needs updated decoding params
Source§fn has_timestamp(&self) -> bool
fn has_timestamp(&self) -> bool
live stream has timestamp of starting of the translation
Source§fn is_metadata(&self) -> bool
fn is_metadata(&self) -> bool
Metadata Frame
Source§fn units_annexb(&self) -> impl Iterator<Item = &[u8]>
fn units_annexb(&self) -> impl Iterator<Item = &[u8]>
Iterator by NAL units of the parameters (for h264/h265 - VPS,SPS,PPS), with annexb prefix
Auto Trait Implementations§
impl Freeze for FlvFrame
impl RefUnwindSafe for FlvFrame
impl Send for FlvFrame
impl Sync for FlvFrame
impl Unpin for FlvFrame
impl UnsafeUnpin for FlvFrame
impl UnwindSafe for FlvFrame
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