DecodedFrame

Struct DecodedFrame 

Source
pub struct DecodedFrame<S> {
    pub timestamp: u64,
    pub data: Vec<u8>,
    pub width: u16,
    pub height: u16,
    pub flags: FrameFlags,
    /* private fields */
}

Fields§

§timestamp: u64§data: Vec<u8>§width: u16§height: u16§flags: FrameFlags

Trait Implementations§

Source§

impl<S: Clone> Clone for DecodedFrame<S>

Source§

fn clone(&self) -> DecodedFrame<S>

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl<S: FrameSource> DataFrame for DecodedFrame<S>

Source§

type Source = S

Source§

type Chunk = Vec<u8>

Source§

fn source(&self) -> &Self::Source

FrameSource - source info structure
Source§

fn chunks( &self, ) -> impl Send + Iterator<Item = <Self::Chunk as MemBlock>::Ref<'_>>

Source§

fn into_chunks(self) -> impl Send + Iterator<Item = Self::Chunk>

Source§

fn put_into(self, chunks: &mut Chunked<Self::Chunk>)
where Self::Chunk: Buf,

Source§

impl<S: Debug> Debug for DecodedFrame<S>

Source§

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

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

impl<S: FrameSource> Frame for DecodedFrame<S>

Source§

fn timestamp(&self) -> u64

Timestamp in microseconds when frame should appear from start
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 has_flag(&self, flag: FrameFlags) -> bool

Check the flag presence
Source§

fn is_keyframe(&self) -> bool

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

fn is_live(&self) -> bool

true if frame is compressed
Source§

fn is_multichannel(&self) -> bool

true if frame is part of multichannel translation
Source§

fn is_encoded(&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_start_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§

impl<S: FrameSource> VideoFrame for DecodedFrame<S>

Source§

fn dimensions(&self) -> (u16, u16)

Video Dimensions (Width, Height)
Source§

fn bit_depth(&self) -> u8

Bits per pixel (8, 10, 12)

Auto Trait Implementations§

§

impl<S> Freeze for DecodedFrame<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for DecodedFrame<S>
where S: RefUnwindSafe,

§

impl<S> Send for DecodedFrame<S>
where S: Send,

§

impl<S> Sync for DecodedFrame<S>
where S: Sync,

§

impl<S> Unpin for DecodedFrame<S>
where S: Unpin,

§

impl<S> UnwindSafe for DecodedFrame<S>
where S: UnwindSafe,

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.