forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 6e36a7de49dbcf82a7f03480f9a39abe6f1dcc21Filtered to crates/ec-vp9-syntax/src/header.rsClear filter

2026-09-16

vp9kf: fix the stale tile-bounds pin in ec-vp9-syntax; record the merge follow-upsAhmet Kaan Gümüş · 0f31b1d
vp9kf: fix the stale tile-bounds pin in ec-vp9-syntax; record the merge follow-ups

The lane's gates were crate-scoped (cargo test -p ec-vp9), so the merge into
main is what surfaced a stale in-lib test: tile_bounds_match_the_spec_formulas
still pinned the pre-lane model - (0,3)/(0,4)/(0,1) for 30/60/1 superblocks.
libvpx's get_max_log2_tile_cols returns max_log2 - 1 (vp9_tile_common.c:45-49),
so the values are (0,2)/(0,3)/(0,0), and a single-superblock frame reads NO
increment bit (setup_tile_info's `while (max_ones-- && vpx_rb_read_bit(rb))`
with max_ones == 0). The code was right; the test was old.

Gates on main: ec-vp9 14 binaries green; ec-vp9-syntax 13/13 + 3/3;
cargo check --workspace --all-targets clean; ec-hw lib 12/12.

Also records in lanes/vp9kf.report.md: the merged/branch/removed-worktree state,
the fixtures/vp9 copy main needed (fixtures/ is gitignored), the next-lane
candidates, and the trace-hook/scratch-harness cleanup still open.

2026-09-14

vp9kf: entropy round 2 — trees, kf partition probs, 8x8 partition symbol, tile-info boundsAhmet Kaan Gümüş · c445467
vp9kf: entropy round 2 — trees, kf partition probs, 8x8 partition symbol, tile-info bounds

- INTRA_MODE_TREE leaf order fixed to libvpx vp9_intra_mode_tree; the invented
  spec-doc chain UV_MODE_TREE deleted (v1.15 decodes uv with the same tree,
  decodemv.c:232). SEGMENT_TREE corrected to vp9_seg_common.c:58 balanced form.
- Keyframes now code partitions with vp9_kf_partition_probs (added; spec 7.2),
  not the inter defaults. FrameContext::new(key_frame).
- The 8x8-level partition symbol is read (decodeframe.c:1188 runs before the
  !hbs branch); sub-8x8 shapes occupy the full 8x8 mi area (luma 2x2 4x4 TUs,
  chroma 4x4 once per 8x8). bsize_of_n4 mapping fixed (2->16x16, 1->8x8).
  Duplicate kf_uv_probs removed from modes.rs (kept in tables).
- ec-vp9-syntax DEVIATION (flagged for merge review): tile_cols_log2_bounds
  returned max-1, skipping the terminating tile-cols increment bit; bounds are
  now inclusive and rows mirrors vp9_get_tile_n_bits. Test re-pinned to
  libvpx/spec values (1920 -> (0,3), 3840 -> (0,4), 1 -> (0,1)).
- keyframes_match_ffmpeg still FAILING (ours 120 vs 72 at pixel (0,0); was 133).
  inter_is_named_unsupported PASSES as a named Error. Debug traces (TILE/B/C/RC,
  EC_VP9_FORCE_TAIL) and scratch_* harnesses kept for the next round; see
  lanes/vp9kf.report.md HANDOFF #2.

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.