Skip to main content

FrameHeader

Struct FrameHeader 

Source
pub struct FrameHeader {
Show 33 fields pub frame_type: u8, 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 frame_width: u32, pub frame_height: u32, pub upscaled_width: u32, pub render_width: u32, pub render_height: u32, pub superres_denom: u32, pub mi_cols: u32, pub mi_rows: u32, pub allow_intrabc: bool, pub disable_frame_end_update_cdf: bool, pub tile_info: TileInfo, pub quantization: Quantization, pub segmentation: Segmentation, pub delta_q_present: bool, pub delta_q_res: u32, pub delta_lf_present: bool, pub delta_lf_res: u32, pub delta_lf_multi: bool, pub coded_lossless: bool, pub all_lossless: bool, pub lossless: [bool; 8], pub loop_filter: LoopFilter, pub cdef: Cdef, pub loop_restoration: LoopRestoration, pub tx_mode: TxMode, pub reduced_tx_set: bool, pub film_grain: FilmGrain,
}
Expand description

A fully parsed intra frame header.

Fields§

§frame_type: u8

frame_type — KEY_FRAME or INTRA_ONLY_FRAME in this decoder.

§show_frame: bool

Whether the frame is shown.

§showable_frame: bool

Whether the frame is later showable.

§error_resilient_mode: bool

Whether error-resilient mode is set.

§disable_cdf_update: bool

Whether CDF updates are disabled for the frame.

§allow_screen_content_tools: bool

Whether screen-content tools are allowed.

§frame_width: u32

Coded frame width, after any super-resolution downscale.

§frame_height: u32

Coded frame height.

§upscaled_width: u32

Width before super-resolution upscale (the displayed coded width).

§render_width: u32

Render (display) width.

§render_height: u32

Render (display) height.

§superres_denom: u32

SuperresDenom.

§mi_cols: u32

Frame width in 4x4 mode-info units.

§mi_rows: u32

Frame height in 4x4 mode-info units.

§allow_intrabc: bool

Whether intra block copy is allowed.

§disable_frame_end_update_cdf: bool

Whether the frame-end CDF update is disabled.

§tile_info: TileInfo

The tile layout.

§quantization: Quantization

Quantizer parameters.

§segmentation: Segmentation

Segmentation parameters.

§delta_q_present: bool

Whether per-block delta-Q is present.

§delta_q_res: u32

Delta-Q resolution.

§delta_lf_present: bool

Whether per-block delta-LF is present.

§delta_lf_res: u32

Delta-LF resolution.

§delta_lf_multi: bool

Whether delta-LF is signalled per edge type.

§coded_lossless: bool

Whether every segment is coded losslessly.

§all_lossless: bool

Whether the frame is lossless and unscaled.

§lossless: [bool; 8]

Per-segment lossless flags.

§loop_filter: LoopFilter

Loop-filter parameters.

§cdef: Cdef

CDEF parameters.

§loop_restoration: LoopRestoration

Loop-restoration parameters.

§tx_mode: TxMode

TxMode.

§reduced_tx_set: bool

Whether the reduced transform set is used.

§film_grain: FilmGrain

Film-grain parameters.

Implementations§

Source§

impl FrameHeader

Source

pub fn parse( r: &mut BitReader<'_>, seq: &SequenceHeader, temporal_id: u8, spatial_id: u8, ) -> Result<Self>

Parse an intra frame header, given the governing sequence header and the OBU’s temporal/spatial layer ids.

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

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