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: boolIndicates if the current frame is a key frame or not.
version: u8Determines the bitstream version.
show_frame: boolIndicates if the current frame is meant to be displayed or not.
data_chunk_size: u8The size in bytes of the Uncompressed Data Chunk
first_part_size: u32Determines the size of the first partition (control partition) excluding the size of the Uncompressed Data Chunk
width: u16The frame’s width, in pixels.
height: u16The frame’s height, in pixels.
horiz_scale_code: u8Horizontal scale code value.
vert_scale_code: u8Vertical scale code value.
color_space: boolDefines the YUV color space of the sequence.
clamping_type: boolSpecifies if the decoder is required to clamp the reconstructed pixel values.
filter_type: boolDetermines whether the normal or the simple loop filter is used.
loop_filter_level: u8Controls the deblocking filter.
sharpness_level: u8Controls the deblocking filter.
partition_size: [u32; 8]§quant_indices: QuantIndicesDequantizer indices.
refresh_entropy_probs: boolDetermines whether updated token probabilities are used only for this frame or until further update
refresh_last: boolDetermines if the current decoded frame refreshes the last frame reference buffer
refresh_golden_frame: boolDetermines if the current decoded frame refreshes the golden frame.
refresh_alternate_frame: boolDetermines if the current decoded frame refreshes the alternate reference frame.
copy_buffer_to_golden: u8Determines if the golden reference is replaced by another reference.
copy_buffer_to_alternate: u8Determines if the alternate reference is replaced by another reference.
sign_bias_golden: boolControls the sign of motion vectors when the golden frame is referenced.
sign_bias_alternate: boolControls 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: boolEnables or disables the skipping of macroblocks containing no non-zero coefficients.
prob_skip_false: u8The probability that the macroblock is not skipped (flag indicating skipped macroblock is false).
prob_intra: u8The probability of an intra macroblock.
prob_last: u8The probability that the last reference frame is used for inter prediction.
prob_golden: u8The probability that the golden reference frame is used for inter prediction.
mode_probs: ModeProbsBranch probabilities kept live across frames.
bd_range: usizeBoolean decoder range for this frame.
bd_value: usizeBoolean decoder value for this frame.
bd_count: isizeBoolean decoder count for this frame.
header_size: u32The size in bits of the Frame Header, thus excluding any Uncompressed Data Chunk bytes.