pub struct Vp8FrameHeader {Show 14 fields
pub width: u16,
pub height: u16,
pub horizontal_scale: u8,
pub vertical_scale: u8,
pub version: u8,
pub color_space: u8,
pub clamp_required: bool,
pub segmentation: Segmentation,
pub loop_filter: LoopFilterParams,
pub token_partitions: u8,
pub quant: QuantIndices,
pub refresh_entropy_probs: bool,
pub mb_no_skip_coeff: bool,
pub prob_skip_false: u8,
}Expand description
A VP8 key-frame header (RFC 6386 §9). Intra/key-frame fields only — gamut codes no inter-frame state.
Fields§
§width: u16Frame width in pixels (the 14-bit field of the uncompressed chunk).
height: u16Frame height in pixels (the 14-bit field of the uncompressed chunk).
horizontal_scale: u8Horizontal upscaling hint (2 bits; 0 = none).
vertical_scale: u8Vertical upscaling hint (2 bits; 0 = none).
version: u8Bitstream version (3 bits; selects loop-filter / reconstruction variants).
color_space: u8Color space (0 = YUV per BT.601; 1 is reserved).
clamp_required: boolWhether pixel clamping is required (the clamping_type flag).
segmentation: SegmentationSegmentation state (§9.3).
loop_filter: LoopFilterParamsLoop-filter header (§9.4).
token_partitions: u8Number of DCT-coefficient token partitions (1, 2, 4, or 8) (§9.5).
quant: QuantIndicesDequantization indices (§9.6).
refresh_entropy_probs: boolWhether token-probability updates persist past this frame (§9.11).
mb_no_skip_coeff: boolWhether macroblocks may signal that they carry no non-zero coefficients (§9.10).
prob_skip_false: u8Probability that a macroblock is not skipped (only meaningful if mb_no_skip_coeff) (§9.10).
Trait Implementations§
Source§impl Clone for Vp8FrameHeader
impl Clone for Vp8FrameHeader
Source§fn clone(&self) -> Vp8FrameHeader
fn clone(&self) -> Vp8FrameHeader
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Vp8FrameHeader
Source§impl Debug for Vp8FrameHeader
impl Debug for Vp8FrameHeader
impl Eq for Vp8FrameHeader
Source§impl PartialEq for Vp8FrameHeader
impl PartialEq for Vp8FrameHeader
Source§fn eq(&self, other: &Vp8FrameHeader) -> bool
fn eq(&self, other: &Vp8FrameHeader) -> bool
self and other values to be equal, and is used by ==.