Skip to main content

Vp9FrameInfo

Struct Vp9FrameInfo 

Source
pub struct Vp9FrameInfo {
    pub temporal_id: u8,
    pub spatial_id: u8,
    pub switching_up_point: bool,
    pub inter_layer_dependency: bool,
    pub not_reference_for_upper_layers: bool,
    pub end_of_picture: bool,
    pub key_frame: Option<bool>,
    pub inter_picture_predicted: Option<bool>,
    pub reference_diffs: Vec<u8>,
}
Expand description

What the encoder knows about one VP9 frame (one spatial layer of a picture) and the payload descriptor carries (RFC 9628 section 4.2).

The default describes the only frame of a picture in temporal layer 0: end_of_picture is set, the rest is 0 / unset.

Fields§

§temporal_id: u8

TID, the frame’s temporal layer (0 to 7). Every frame of a picture has the same one, except in a pattern with shifted temporal layers, which only flexible mode can carry.

§spatial_id: u8

SID, the frame’s spatial layer (0 to 7). The frames of a picture are sent in increasing order.

§switching_up_point: bool

U: pictures of higher temporal layers after this one do not depend on pictures of higher temporal layers before it.

§inter_layer_dependency: bool

D: the frame predicts from the frame of spatial layer SID-1 of the same picture.

§not_reference_for_upper_layers: bool

Z: no frame of a higher spatial layer, in this picture or a later one, depends on this frame.

§end_of_picture: bool

The frame is the picture’s last. The next frame starts a picture with the next picture ID, and the RTP marker belongs on this frame’s last packet (RFC 9628 section 4.1).

§key_frame: Option<bool>

Whether the frame is a key frame. None reads it from the frame’s uncompressed header; set it when the payloader cannot (the frame is encrypted end to end).

§inter_picture_predicted: Option<bool>

P: whether the frame predicts from another picture. None derives it from the frame’s uncompressed header (the reference slots it reads).

§reference_diffs: Vec<u8>

Flexible mode’s reference indices (P_DIFF): how many pictures back each picture the frame predicts from is, at most three values of 1 to 127. Empty derives them from the frame’s uncompressed header.

Trait Implementations§

Source§

impl Clone for Vp9FrameInfo

Source§

fn clone(&self) -> Self

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 Vp9FrameInfo

Source§

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

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

impl Default for Vp9FrameInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Vp9FrameInfo

Source§

impl PartialEq for Vp9FrameInfo

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Vp9FrameInfo

Auto Trait Implementations§

§

impl Forget for Vp9FrameInfo

§

impl Freeze for Vp9FrameInfo
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for Vp9FrameInfo

§

impl RefUnwindSafe for Vp9FrameInfo

§

impl Send for Vp9FrameInfo
where RawVecInner: Send,

§

impl Sync for Vp9FrameInfo
where RawVecInner: Sync,

§

impl Unpin for Vp9FrameInfo
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Vp9FrameInfo

§

impl UnwindSafe for Vp9FrameInfo
where RawVecInner: 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.