Skip to main content

FlvFrame

Struct FlvFrame 

Source
pub struct FlvFrame { /* private fields */ }

Trait Implementations§

Source§

impl Clone for FlvFrame

Source§

fn clone(&self) -> FlvFrame

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlvFrame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Frame for FlvFrame

Source§

fn pts(&self) -> i64

Presentation timestamp in microseconds - same as DTS, but with frame presentation offset correction
Source§

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>

The begging of translation timestamp (unixtimespamp in ms from 01:01:1970)
Source§

fn codec(&self) -> Fourcc

Fourcc signature of the payload type
Source§

fn flags(&self) -> FrameFlags

Frame Flags (keyframe, last, multitrack, live etc.)
Source§

fn track(&self) -> u32

Track Number frame belongs to (always 0 for singletrack)
Source§

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 units(&self) -> impl Iterator<Item = &[u8]>

Iterator by NAL units without annexb prefix
Source§

fn is_keyframe(&self) -> bool

true if frame is IDR (not depends on other frames)
Source§

fn is_multichannel(&self) -> bool

true if frame is part of multichannel translation
Source§

fn is_compressed(&self) -> bool

true if frame is compressed
Source§

fn is_last(&self) -> bool

true if frame is last one in the seq
Source§

fn has_params(&self) -> bool

frame needs updated decoding params
Source§

fn has_timestamp(&self) -> bool

live stream has timestamp of starting of the translation
Source§

fn is_audio(&self) -> bool

Audio Frame
Source§

fn is_video(&self) -> bool

Video Frame
Source§

fn is_metadata(&self) -> bool

Metadata Frame
Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.