pub struct Vp8FrameHeader {
pub frame_type: u8,
pub version: u8,
pub show_frame: bool,
pub first_part_size: u32,
pub width: u32,
pub height: u32,
pub horizontal_scale: u8,
pub vertical_scale: u8,
}Expand description
Output of the VP8 uncompressed-header parsers.
Fields§
§frame_type: u80 = keyframe (RFC 6386 calls this KEY_FRAME), 1 = interframe.
version: u8Bitstream version (0..3). RFC 6386 §9.1 — only 0 is in widespread use; libvpx may emit 1, 2 or 3 to select the loop-filter / motion-comp tweaks.
show_frame: boolshow_frame bit. False here means the encoder emitted an
alternate-reference frame that should not be rendered.
first_part_size: u32first_part_size — length in bytes of the compressed
“first partition” (the partition that holds the bool-coded
frame header + per-MB modes, before the residual partitions).
width: u32Coded width in luma samples (keyframes only — 0 on interframes since RFC 6386 only re-transmits dimensions for keyframes).
height: u32Coded height in luma samples (keyframes only).
horizontal_scale: u8horizontal_scale — 0 means no horizontal upscale at display.
vertical_scale: u8vertical_scale — 0 means no vertical upscale at display.