Skip to main content

Header

Struct Header 

Source
pub struct Header {
Show 37 fields pub profile: u8, pub bpp: u8, pub keyframe: bool, pub invisible: bool, pub errorres: bool, pub intraonly: bool, pub resetctx: u8, pub refreshrefmask: u8, pub highprecisionmvs: bool, pub filtermode: FilterMode, pub allowcompinter: bool, pub refreshctx: bool, pub parallelmode: bool, pub framectxid: u8, pub use_last_frame_mvs: bool, pub refidx: [u8; 3], pub signbias: [bool; 3], pub fixcompref: u8, pub varcompref: [u8; 2], pub filter_level: u8, pub sharpness: i8, pub lf_delta_enabled: bool, pub lf_delta_updated: bool, pub lf_delta_mode: [i8; 2], pub lf_delta_ref: [i8; 4], pub yac_qi: u8, pub ydc_qdelta: i8, pub uvdc_qdelta: i8, pub uvac_qdelta: i8, pub lossless: bool, pub segmentation: Segmentation, pub txfmmode: u8, pub comppredmode: CompPred, pub log2_tile_cols: u32, pub log2_tile_rows: u32, pub tile_cols: u32, pub tile_rows: u32,
}
Available on crate feature decode only.
Expand description

VP9BitstreamHeader. It persists across frames: fields a frame does not code keep the previous frame’s values, as in ffmpeg.

Fields§

§profile: u8

profile.

§bpp: u8

Bits per sample.

§keyframe: bool

frame_type == KEY_FRAME.

§invisible: bool

!show_frame.

§errorres: bool

error_resilient_mode.

§intraonly: bool

intra_only.

§resetctx: u8

reset_frame_context.

§refreshrefmask: u8

refresh_frame_flags.

§highprecisionmvs: bool

allow_high_precision_mv.

§filtermode: FilterMode

interpolation_filter.

§allowcompinter: bool

Compound prediction is possible (sign biases differ).

§refreshctx: bool

refresh_frame_context.

§parallelmode: bool

frame_parallel_decoding_mode.

§framectxid: u8

frame_context_idx.

§use_last_frame_mvs: bool

The previous frame’s MVs are usable.

§refidx: [u8; 3]

ref_frame_idx for last, golden, altref.

§signbias: [bool; 3]

ref_frame_sign_bias for the same.

§fixcompref: u8

The fixed reference of compound prediction.

§varcompref: [u8; 2]

Its variable references.

§filter_level: u8

loop_filter_level.

§sharpness: i8

loop_filter_sharpness.

§lf_delta_enabled: bool

loop_filter_delta_enabled.

§lf_delta_updated: bool

loop_filter_delta_update.

§lf_delta_mode: [i8; 2]

loop_filter_mode_deltas.

§lf_delta_ref: [i8; 4]

loop_filter_ref_deltas.

§yac_qi: u8

base_q_idx.

§ydc_qdelta: i8

delta_q_y_dc.

§uvdc_qdelta: i8

delta_q_uv_dc.

§uvac_qdelta: i8

delta_q_uv_ac.

§lossless: bool

Lossless: every quantizer 0.

§segmentation: Segmentation

segmentation_params().

§txfmmode: u8

tx_mode.

§comppredmode: CompPred

reference_select.

§log2_tile_cols: u32

tile_cols_log2.

§log2_tile_rows: u32

tile_rows_log2.

§tile_cols: u32

Tile columns.

§tile_rows: u32

Tile rows.

Trait Implementations§

Source§

impl Clone for Header

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 Header

Source§

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

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

impl Default for Header

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Forget for Header

§

impl Freeze for Header

§

impl Move for Header

§

impl RefUnwindSafe for Header

§

impl Send for Header

§

impl Sync for Header

§

impl Unpin for Header

§

impl UnsafeUnpin for Header

§

impl UnwindSafe for Header

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.