Commits
Commits on
dfeffbcebd64426ceeebbf03214c8d6fe57282d6Filtered to scripts/gen-bitstream-fixtures.shClear filter2026-08-14
test(hw): live GPU tests against ffmpeg, and Annex B fixturesAhmet Kaan Gümüş · 43c8097
test(hw): live GPU tests against ffmpeg, and Annex B fixtures Every test here talks to the real driver — a hardware crate whose tests do not touch the hardware tests nothing — and none is `#[ignore]`d; they skip when there is no VA display or the fixtures are missing. ffmpeg's software decoder is the oracle: each fixture is decoded both ways and compared frame by frame, at the stream's own bit depth (converting a 10-bit reference down to 8 dithers, which would hide a real difference behind a fake 53 dB one). Alongside the four codecs: the `frame_num` gap synthesis, a 719-frame decode-and-read-back loop watching `VmRSS`, the DRM PRIME export, the encoders round-tripping through ffmpeg *and* through this crate's own decoder, and a spot check against his real library rather than the fixtures alone. `scripts/gen-bitstream-fixtures.sh` gains the H.264 and HEVC elementary streams — including B-frame clips, so output reordering is exercised rather than assumed.
feat(vp9,av1): bitstream header parsers for stateless hardware decodeAhmet Kaan Gümüş · ee46976
feat(vp9,av1): bitstream header parsers for stateless hardware decode ec-vp9-syntax parses the superframe index and the whole uncompressed frame header (profiles 0-3, colour config, size-from-reference, loop filter, quantization, segmentation, tile info), carrying the state VP9 spreads across frames: reference sizes, segmentation data and loop filter deltas. The spec 8.6.1 dequantization tables and the 8.8.1 loop filter level derivation ship with it, so every field of VADecPictureParameterBufferVP9 and VASegmentParameterVP9 comes out of the parse. ec-av1-syntax parses OBU framing, the sequence header and the frame header in full (superres, reference signalling incl. set_frame_refs, tile info, quant, segmentation, delta q/lf, loop filter, CDEF, loop restoration, tx mode, skip mode, global motion, film grain) plus tile group offsets, and derives the warp shear validity VAWarpedMotionParamsAV1 asks for. Both are BitReader-based, forbid unsafe, and answer malformed input with a typed error rather than a panic. Verified against every VP9/AV1 fixture stream with ffprobe as the oracle: dimensions, profile, bit depth, chroma, per-frame key flags and shown-frame counts all agree, including 10-bit, 4:4:4, monochrome, multi-tile, superframes and show_existing_frame.