forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to lanes/av1rect8x16.report.mdClear filter

2026-09-29

lane-av1rect8x16: run the footprint walk before the exact-table pinAhmet Kaan Gümüş · 4bb956e
lane-av1rect8x16: run the footprint walk before the exact-table pin

The exact-table pin masked the walk: deleting decode.rs:14791's `(16, 8) =>`
arm failed with the vague "decode_block_rect's chroma table changed" instead
of naming the strip that lost its row. The walk now runs first, so a deleted
row fails naming the strip and its subsampling.

Red-before, each reverted with decode.rs byte-identical, and each run after
touching decode.rs (this crate's census tests read compile-time sources, so a
stale binary would otherwise report the previous state):
- delete `(16, 8) =>`  (14791) -> RED: a 32x16 strip at subsampling (1,1)
  has a 16x8 chroma transform with no coefficient table -- LIVE
- delete `(16, 16) =>` (14801) -> RED: a 32x16 strip at subsampling (1,0)
  has a 16x16 chroma transform with no coefficient table -- LIVE
- the PARTITION_VERT call site's `16,` -> `8,` (34536) -> RED: the caller
  shape set changed -- an 8x16/16x8 caller makes this refusal LIVE
- a call site's `32,` -> `at32.0 * 2,` (34490) -> RED: non-literal strip size
- restored -> GREEN; all 16 refusal_inventory tests pass

Also states in the report that the 840-encode sweep is corroboration, not the
proof: it shows the refusal does not fire where the shape is coded, but cannot
show the shape is unreachable in a stream nobody encoded. The proof is the
static caller-shape-set derivation, and these assertions are what make the tree
enforce it.

Test code only. decode.rs untouched.
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachableAhmet Kaan Gümüş · 406d673
lane-av1rect8x16: prove decode_block_rect's (4,8) chroma arm is unreachable

The refusal "a rectangular chroma transform whose size has no coefficient
table" (decode.rs:14804) had no PROVEN row -- it was the audit round's
single unproven refusal. The sibling sweep that surfaced the gap
(every_rect_strip_shape_the_split_path_codes_has_a_luma_and_chroma_table)
audits decode_rect_split's tables, not this function's, and so only ever
asserted the superblock-level 64x32/32x64 footprints. The 8x16 luma strip's
4x8 chroma was left unasked.

Answered: UNREACHABLE, and structurally so. All 8 call sites of
decode_block_rect are 32-level match part32 arms of read_sb128_root and pass
bw/bh as the integer literals 32, 16 or 16, 32, so the function's chroma
footprint set over every subsampling an AV1 color_config can carry is
{(16,8), (8,16), (16,16), (8,32), (32,16), (16,32)} -- all six have a row. A
16-level 2:1 luma strip is read by decode_leaf_rect, which carries the (4,8) /
(8,4) rows itself (decode.rs:15409-15420).

Measured, not assumed: 840 real aomenc 4:2:0 key-frame encodes, 826 of whose
parsed leaf lists provably code a 16-level 2:1 luma strip (via
horz_vert_intra_hits(), which fires only at the three decode_leaf_rect strip
sites), all 840 decoded to completion with the refusal firing 0 times.

every_chroma_unit_decode_block_rect_can_present_has_a_coefficient_table reads
the caller shape set out of decode.rs's own argument lists, pins the table's
six rows, walks the domain, and asserts the (4,8)/(8,4) residual as code.
Red under three mutations (an 8x16 caller, a new (4,8) row, a non-literal
strip size). Inventory: 32 -> 33 proven.

decode.rs, decode_rect_split and read_block_tx_size untouched; no existing
test weakened.