pub struct Header { /* private fields */ }

Implementations§

source§

impl Header

source

pub fn key_frame(&self) -> bool

Get a reference to the header’s key frame.

source

pub fn version(&self) -> u8

Get a reference to the header’s version.

source

pub fn show_frame(&self) -> bool

Get a reference to the header’s show frame.

source

pub fn data_chunk_size(&self) -> u8

Get a reference to the header’s data chunk size.

source

pub fn first_part_size(&self) -> u32

Get a reference to the header’s first part size.

source

pub fn width(&self) -> u16

Get a reference to the header’s width.

source

pub fn height(&self) -> u16

Get a reference to the header’s height.

source

pub fn horiz_scale_code(&self) -> u8

Get a reference to the header’s horiz scale code.

source

pub fn vert_scale_code(&self) -> u8

Get a reference to the header’s vert scale code.

source

pub fn color_space(&self) -> bool

Get a reference to the header’s color space.

source

pub fn clamping_type(&self) -> bool

Get a reference to the header’s clamping type.

source

pub fn filter_type(&self) -> bool

Get a reference to the header’s filter type.

source

pub fn loop_filter_level(&self) -> u8

Get a reference to the header’s loop filter level.

source

pub fn sharpness_level(&self) -> u8

Get a reference to the header’s sharpness level.

source

pub fn log2_nbr_of_dct_partitions(&self) -> u8

Get a reference to the header’s log2 nbr of dct partitions.

source

pub fn partition_size(&self) -> [u32; 8]

Get a reference to the header’s partition size.

source

pub fn quant_indices(&self) -> &QuantIndices

Get a reference to the header’s quant indices.

source

pub fn refresh_entropy_probs(&self) -> bool

Get a reference to the header’s refresh entropy probs.

source

pub fn refresh_last(&self) -> bool

Get a reference to the header’s refresh last.

source

pub fn refresh_golden_frame(&self) -> bool

Get a reference to the header’s refresh golden frame.

source

pub fn refresh_alternate_frame(&self) -> bool

Get a reference to the header’s refresh alternate frame.

source

pub fn copy_buffer_to_golden(&self) -> u8

Get a reference to the header’s copy buffer to golden.

source

pub fn copy_buffer_to_alternate(&self) -> u8

Get a reference to the header’s copy buffer to alternate.

source

pub fn sign_bias_golden(&self) -> bool

Get a reference to the header’s sign bias golden.

source

pub fn sign_bias_alternate(&self) -> bool

Get a reference to the header’s sign bias alternate.

source

pub fn coeff_prob(&self) -> [[[[u8; 11]; 3]; 8]; 4]

Get a reference to the header’s coeff prob.

source

pub fn mv_prob(&self) -> [[u8; 19]; 2]

Get a reference to the header’s mv prob.

source

pub fn mb_no_coeff_skip(&self) -> bool

Get a reference to the header’s mb no coeff skip.

source

pub fn prob_skip_false(&self) -> u8

Get a reference to the header’s prob skip false.

source

pub fn prob_intra(&self) -> u8

Get a reference to the header’s prob intra.

source

pub fn prob_last(&self) -> u8

Get a reference to the header’s prob last.

source

pub fn prob_golden(&self) -> u8

Get a reference to the header’s prob golden.

source

pub fn mode_probs(&self) -> &ModeProbs

Get a reference to the header’s mode probs.

source

pub fn bd_range(&self) -> usize

Get a reference to the header’s bd range.

source

pub fn bd_value(&self) -> usize

Get a reference to the header’s bd value.

source

pub fn bd_count(&self) -> isize

Get a reference to the header’s bd count.

source

pub fn header_size(&self) -> u32

Get a reference to the header’s header size.

Trait Implementations§

source§

impl Clone for Header

source§

fn clone(&self) -> Header

Returns a copy of the value. Read more
1.0.0 · 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() -> Header

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

impl PartialEq<Header> for Header

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Header

source§

impl StructuralEq for Header

source§

impl StructuralPartialEq for Header

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.