pub struct Header {
Show 37 fields key_frame: bool, version: u8, show_frame: bool, data_chunk_size: u8, first_part_size: u32, width: u16, height: u16, horiz_scale_code: u8, vert_scale_code: u8, color_space: bool, clamping_type: bool, filter_type: bool, loop_filter_level: u8, sharpness_level: u8, log2_nbr_of_dct_partitions: u8, partition_size: [u32; 8], quant_indices: QuantIndices, refresh_entropy_probs: bool, refresh_last: bool, refresh_golden_frame: bool, refresh_alternate_frame: bool, copy_buffer_to_golden: u8, copy_buffer_to_alternate: u8, sign_bias_golden: bool, sign_bias_alternate: bool, coeff_prob: [[[[u8; 11]; 3]; 8]; 4], mv_prob: [[u8; 19]; 2], mb_no_coeff_skip: bool, prob_skip_false: u8, prob_intra: u8, prob_last: u8, prob_golden: u8, mode_probs: ModeProbs, bd_range: usize, bd_value: usize, bd_count: isize, header_size: u32,
}

Fields

key_frame: bool

Indicates if the current frame is a key frame or not.

version: u8

Determines the bitstream version.

show_frame: bool

Indicates if the current frame is meant to be displayed or not.

data_chunk_size: u8

The size in bytes of the Uncompressed Data Chunk

first_part_size: u32

Determines the size of the first partition (control partition) excluding the size of the Uncompressed Data Chunk

width: u16

The frame’s width, in pixels.

height: u16

The frame’s height, in pixels.

horiz_scale_code: u8

Horizontal scale code value.

vert_scale_code: u8

Vertical scale code value.

color_space: bool

Defines the YUV color space of the sequence.

clamping_type: bool

Specifies if the decoder is required to clamp the reconstructed pixel values.

filter_type: bool

Determines whether the normal or the simple loop filter is used.

loop_filter_level: u8

Controls the deblocking filter.

sharpness_level: u8

Controls the deblocking filter.

log2_nbr_of_dct_partitions: u8

Determines the number of separate partitions containing the DCT coefficients of the macroblocks.

partition_size: [u32; 8]quant_indices: QuantIndices

Dequantizer indices.

refresh_entropy_probs: bool

Determines whether updated token probabilities are used only for this frame or until further update

refresh_last: bool

Determines if the current decoded frame refreshes the last frame reference buffer

refresh_golden_frame: bool

Determines if the current decoded frame refreshes the golden frame.

refresh_alternate_frame: bool

Determines if the current decoded frame refreshes the alternate reference frame.

copy_buffer_to_golden: u8

Determines if the golden reference is replaced by another reference.

copy_buffer_to_alternate: u8

Determines if the alternate reference is replaced by another reference.

sign_bias_golden: bool

Controls the sign of motion vectors when the golden frame is referenced.

sign_bias_alternate: bool

Controls the sign of motion vectors when the alternate frame is referenced.

coeff_prob: [[[[u8; 11]; 3]; 8]; 4]

The new branch probability for the DCT/WHT tree.

mv_prob: [[u8; 19]; 2]

MV decoding probability.

mb_no_coeff_skip: bool

Enables or disables the skipping of macroblocks containing no non-zero coefficients.

prob_skip_false: u8

The probability that the macroblock is not skipped (flag indicating skipped macroblock is false).

prob_intra: u8

The probability of an intra macroblock.

prob_last: u8

The probability that the last reference frame is used for inter prediction.

prob_golden: u8

The probability that the golden reference frame is used for inter prediction.

mode_probs: ModeProbs

Branch probabilities kept live across frames.

bd_range: usize

Boolean decoder range for this frame.

bd_value: usize

Boolean decoder value for this frame.

bd_count: isize

Boolean decoder count for this frame.

header_size: u32

The size in bits of the Frame Header, thus excluding any Uncompressed Data Chunk bytes.

Implementations

Get a reference to the header’s key frame.

Get a reference to the header’s version.

Get a reference to the header’s show frame.

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

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

Get a reference to the header’s width.

Get a reference to the header’s height.

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

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

Get a reference to the header’s color space.

Get a reference to the header’s clamping type.

Get a reference to the header’s filter type.

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

Get a reference to the header’s sharpness level.

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

Get a reference to the header’s partition size.

Get a reference to the header’s quant indices.

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

Get a reference to the header’s refresh last.

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

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

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

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

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

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

Get a reference to the header’s coeff prob.

Get a reference to the header’s mv prob.

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

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

Get a reference to the header’s prob intra.

Get a reference to the header’s prob last.

Get a reference to the header’s prob golden.

Get a reference to the header’s mode probs.

Get a reference to the header’s bd range.

Get a reference to the header’s bd value.

Get a reference to the header’s bd count.

Get a reference to the header’s header size.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Returns the VA profile of the stream.
Returns the RT format of the stream.
Returns the minimum number of surfaces required to decode the stream.
Returns the coded size of the surfaces required to decode the stream.
Returns the visible rectangle within the coded size for the stream.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.