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