forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 6bdfdfdd2dc3dd2e56d3ececd138af9d9ce38231Filtered to crates/ec-av1-syntax/src/sequence.rsClear filter

2026-08-28

fix(av1): un-swap enable_interintra_compound/enable_jnt_comp at the decode_stream call siteAhmet Kaan Gümüş · 6e4ad30
fix(av1): un-swap enable_interintra_compound/enable_jnt_comp at the decode_stream call site

lane-comppin r10 (session-killed right after the fix compiled; orchestrator
ran the pin and commits). ROOT CAUSE of the 10-round compound-drift hunt:
decode_stream passed enable_interintra_compound and enable_jnt_comp to
decode_inter_frame_tile_with_cdfs in each other's parameter slots -- two
adjacent same-typed bools, so the compiler was silent. Every stream whose
sequence header set the two bits DIFFERENTLY gated the interintra read on
the jnt_comp bit (and compound_idx gating on the interintra bit): an extra
or missing symbol read, then silent bit-drift for the rest of the tile.
Streams with both bits equal decoded exactly -- which is why the gates
only flaked on some aomenc content and every earlier localization pointed
at a different downstream symbol.

VERIFIED: pin sb128-compound-refs-flake.obu now decodes 24/24 frames
byte-exact (was: frame 1+ all-plane drift accumulating to delta 60).
Also in this commit: EC_AV1_SEQDUMP + remaining EC_AV1_TELL range
checkpoints (env-gated instrumentation, inert when unset).

class: adjacent-same-typed-args -- a call site passing N same-typed flags
positionally can swap a pair without any compiler or roundtrip-test signal
(our own encoder does not exercise the decode_stream path's flag plumbing);
range-ladder bisection + the r9 compare-range-not-tell rule found it.

2026-08-14

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.