Skip to main content

FrameHeader

Struct FrameHeader 

Source
pub struct FrameHeader {
Show 52 fields pub film_grain: FilmGrainData, pub film_grain_present: bool, pub film_grain_update: bool, pub frame_type: u8, pub width: [i32; 2], pub height: i32, pub frame_offset: u8, pub temporal_id: u8, pub spatial_id: u8, pub show_existing_frame: bool, pub existing_frame_idx: u8, pub frame_id: u32, pub frame_presentation_delay: u32, pub show_frame: bool, pub showable_frame: bool, pub error_resilient_mode: bool, pub disable_cdf_update: bool, pub allow_screen_content_tools: bool, pub force_integer_mv: bool, pub frame_size_override: bool, pub primary_ref_frame: u8, pub buffer_removal_time_present: bool, pub refresh_frame_flags: u8, pub render_width: i32, pub render_height: i32, pub super_res_width_scale_denominator: u8, pub super_res_enabled: bool, pub have_render_size: bool, pub allow_intrabc: bool, pub frame_ref_short_signaling: bool, pub refidx: [i8; 7], pub hp: bool, pub subpel_filter_mode: u8, pub switchable_motion_mode: bool, pub use_ref_frame_mvs: bool, pub refresh_context: bool, pub tiling: Tiling, pub quant: Quant, pub segmentation: Segmentation, pub delta: Delta, pub all_lossless: bool, pub loopfilter: Loopfilter, pub cdef: Cdef, pub restoration: Restoration, pub txfm_mode: u8, pub switchable_comp_refs: bool, pub skip_mode_allowed: bool, pub skip_mode_enabled: bool, pub skip_mode_refs: [i8; 2], pub warp_motion: bool, pub reduced_txtp_set: bool, pub gmv: [WarpedMotionParams; 7],
}
Available on crate feature decode only.

Fields§

§film_grain: FilmGrainData§film_grain_present: bool§film_grain_update: bool§frame_type: u8§width: [i32; 2]

coded width, superres-upscaled width.

§height: i32§frame_offset: u8§temporal_id: u8§spatial_id: u8§show_existing_frame: bool§existing_frame_idx: u8§frame_id: u32§frame_presentation_delay: u32§show_frame: bool§showable_frame: bool§error_resilient_mode: bool§disable_cdf_update: bool§allow_screen_content_tools: bool§force_integer_mv: bool§frame_size_override: bool§primary_ref_frame: u8§buffer_removal_time_present: bool§refresh_frame_flags: u8§render_width: i32§render_height: i32§super_res_width_scale_denominator: u8§super_res_enabled: bool§have_render_size: bool§allow_intrabc: bool§frame_ref_short_signaling: bool§refidx: [i8; 7]§hp: bool§subpel_filter_mode: u8§switchable_motion_mode: bool§use_ref_frame_mvs: bool§refresh_context: bool§tiling: Tiling§quant: Quant§segmentation: Segmentation§delta: Delta§all_lossless: bool§loopfilter: Loopfilter§cdef: Cdef§restoration: Restoration§txfm_mode: u8§switchable_comp_refs: bool§skip_mode_allowed: bool§skip_mode_enabled: bool§skip_mode_refs: [i8; 2]§warp_motion: bool§reduced_txtp_set: bool§gmv: [WarpedMotionParams; 7]

Implementations§

Trait Implementations§

Source§

impl Clone for FrameHeader

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 FrameHeader

Source§

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

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

impl Default for FrameHeader

Source§

fn default() -> Self

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

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> 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.