Skip to main content

Crate vp9dec

Crate vp9dec 

Source
Expand description

vp9dec: a from-scratch VP9 video decoder (zero dependency crates).

Reference spec: VP9 Bitstream & Decoding Process Specification v0.7 (Google, dated 2017-02-22, https://storage.googleapis.com/downloads.webmproject.org/docs/vp9/vp9-bitstream-specification-v0.7-20170222-draft.pdf)

Decodes all four VP9 profiles (8/10/12-bit; 4:2:0/4:2:2/4:4:0/4:4:4), verified bit-exact against the full official conformance corpus. Runtime-detected AVX2 fast paths and tile-parallel decoding accelerate the scalar reference path without altering its output. See README.md “Current architecture” for the module map.

Modules§

ivf
IVF container parser.

Structs§

DecodedFrame
The outcome of decoding one constituent VP9 frame of a container chunk; one element of Decoder::decode_frame’s result.
Decoder
A stateful decoder for decoding multiple frames in sequence.
Frame
One decoded frame. Cropped to the display size (FrameWidth/FrameHeight), holding the 3 Y/U/V planes as PlaneData (row-major). Chroma sizing follows subsampling_x/subsampling_y: 4:2:0 for profiles 0/2; profiles 1/3 also output 4:2:2, 4:4:0, or 4:4:4.
FrameDecodeInfo
Read-only per-frame decode statistics, recorded purely for observation (e.g. test assertions that a stream actually exercised a given decode path). Has no effect on decode behavior. See DecodedFrame::info.

Enums§

DecodeError
Error type covering everything that can cause Decoder::decode_frame to fail.
PlaneData
One decoded plane’s pixel data. 8-bit streams (BitDepth == 8) decode into U8 (no memory bloat from widening the overwhelmingly common case); 10/12-bit streams (VP9 profiles 2/3) decode into U16 (each sample 0..=1023 or 0..=4095).