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: FrameFlagsTrait Implementations§
Source§impl<S: Clone> Clone for DecodedFrame<S>
impl<S: Clone> Clone for DecodedFrame<S>
Source§fn clone(&self) -> DecodedFrame<S>
fn clone(&self) -> DecodedFrame<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: FrameSource> DataFrame for DecodedFrame<S>
impl<S: FrameSource> DataFrame for DecodedFrame<S>
Source§impl<S: Debug> Debug for DecodedFrame<S>
impl<S: Debug> Debug for DecodedFrame<S>
Source§impl<S: FrameSource> Frame for DecodedFrame<S>
impl<S: FrameSource> Frame for DecodedFrame<S>
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Frame Flags (keyframe, last, multitrack, live etc.)
Source§fn has_flag(&self, flag: FrameFlags) -> bool
fn has_flag(&self, flag: FrameFlags) -> bool
Check the flag presence
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_encoded(&self) -> bool
fn is_encoded(&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_start_timestamp(&self) -> bool
fn has_start_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§impl<S: FrameSource> VideoFrame for DecodedFrame<S>
impl<S: FrameSource> VideoFrame for DecodedFrame<S>
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> 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