Skip to main content

Vp8FrameHeader

Struct Vp8FrameHeader 

Source
pub struct Vp8FrameHeader {
Show 14 fields pub width: u16, pub height: u16, pub horizontal_scale: u8, pub vertical_scale: u8, pub version: u8, pub color_space: u8, pub clamp_required: bool, pub segmentation: Segmentation, pub loop_filter: LoopFilterParams, pub token_partitions: u8, pub quant: QuantIndices, pub refresh_entropy_probs: bool, pub mb_no_skip_coeff: bool, pub prob_skip_false: u8,
}
Expand description

A VP8 key-frame header (RFC 6386 §9). Intra/key-frame fields only — gamut codes no inter-frame state.

Fields§

§width: u16

Frame width in pixels (the 14-bit field of the uncompressed chunk).

§height: u16

Frame height in pixels (the 14-bit field of the uncompressed chunk).

§horizontal_scale: u8

Horizontal upscaling hint (2 bits; 0 = none).

§vertical_scale: u8

Vertical upscaling hint (2 bits; 0 = none).

§version: u8

Bitstream version (3 bits; selects loop-filter / reconstruction variants).

§color_space: u8

Color space (0 = YUV per BT.601; 1 is reserved).

§clamp_required: bool

Whether pixel clamping is required (the clamping_type flag).

§segmentation: Segmentation

Segmentation state (§9.3).

§loop_filter: LoopFilterParams

Loop-filter header (§9.4).

§token_partitions: u8

Number of DCT-coefficient token partitions (1, 2, 4, or 8) (§9.5).

§quant: QuantIndices

Dequantization indices (§9.6).

§refresh_entropy_probs: bool

Whether token-probability updates persist past this frame (§9.11).

§mb_no_skip_coeff: bool

Whether macroblocks may signal that they carry no non-zero coefficients (§9.10).

§prob_skip_false: u8

Probability that a macroblock is not skipped (only meaningful if mb_no_skip_coeff) (§9.10).

Trait Implementations§

Source§

impl Clone for Vp8FrameHeader

Source§

fn clone(&self) -> Vp8FrameHeader

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 Copy for Vp8FrameHeader

Source§

impl Debug for Vp8FrameHeader

Source§

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

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

impl Eq for Vp8FrameHeader

Source§

impl PartialEq for Vp8FrameHeader

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Vp8FrameHeader

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.