forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on main

2026-09-02

fix(av1): the inter-SB partition pin and the new motion_mode refusal literalAhmet Kaan Gümüş · 968076f
fix(av1): the inter-SB partition pin and the new motion_mode refusal literal

The hand fixture's superblock value is PARTITION_HORZ, which this branch now
decodes; it stops at the rectangular-inter-residual refusal instead. The new
motion_mode refusal string carried a line continuation, so refusal_inventory's
source grep saw a different literal than the list.
fix(av1): split transform units answered their intra reach as if each were a standalone block -- libaom answers from the unit's row_off/col_off inside its parent, so a D203_PRED 8x8 unit at col_off=2 read bottom-left samples that are not reconstructed yet; seed 46 of the 1:4-strip recipe mismatched ffmpeg on 916 luma samples of frame 0 with a fully exact entropy ladderAhmet Kaan Gümüş · b4b7e7c
fix(av1): split transform units answered their intra reach as if each were a standalone block -- libaom answers from the unit's row_off/col_off inside its parent, so a D203_PRED 8x8 unit at col_off=2 read bottom-left samples that are not reconstructed yet; seed 46 of the 1:4-strip recipe mismatched ffmpeg on 916 luma samples of frame 0 with a fully exact entropy ladder

Class reach-is-per-transform-unit. `Reach::of(logical_tx, tu_px, tu_py, ..)` at three
per-TU call sites asked the standalone-block has_top_right/has_bottom_left tables.
libaom `reconintra.c` never does that inside a block:
  * has_bottom_left: `if (col_off > 0) return 0`
  * has_bottom_left leftmost-SB-column: counts row_off + tx_high_unit from the UNIT
  * has_top_right: `if (row_off > 0) return col_off + tx_wide_unit < plane_bw_unit`
New `Reach::of_tu` ports that ladder and delegates the (0,0) fallback to the existing
square/rect block answers; `decode::tu_reach` wraps it and counts every unit whose answer
differs from the old one (`split_tu_reach_fix_hits`).

Gate `a_real_aomenc_band_stream_seed46_decodes_pixel_exact` (stream.rs): the sibling
rectchroma recipe, seeds 42..=51 on 8 AND 10 bit, plane-exact vs ffmpeg, seed 46 asserted
to decode on both depths, fix-fired counter > 0 overall and > 0 on 10 bit.
10 pixel-exact streams / 10 named 1:4-chroma refusals / 22 fixed transform units (10 10-bit).
`enable-tx-size-search` leaves gate_coverage::NEVER_ON_10BIT -- first 10-bit gate to spell it.

Suite: 323 passed, 0 failed, 30 ignored.
test(av1): assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowingAhmet Kaan Gümüş · bf7bf11
test(av1): assert out_of_scope_mismatch == 0 on the chroma-rect gate, pin its one excluded seed, revert an unneeded min-partition-size narrowing

Verifier FAIL fixes, test code only:

- stream.rs chroma-rect 1:4/sub8 gate: `out_of_scope_mismatch` was printed and
  never asserted, so 2 real ffmpeg mismatches (8- and 10-bit, cq 32, seed 46,
  zero 1:4 strips) passed silently. Now `assert_eq!(.., 0)` like main's two
  sibling 1:4 gates. Seed 46 is excluded by name via `EXCLUDED_SEEDS` and
  pinned instead by an `#[ignore]`d test that decodes it at both depths and
  asserts pixel-exact -- un-ignoring it is the proof lane-band46 closed it.
  Both share the new `rectchroma_stream` recipe helper so they cannot drift.
- stream.rs:2453: revert `--min-partition-size` 16 -> 32 in
  a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact; the gate passes at
  16 on this tree, so the narrowing was coverage loss plus a merge conflict.
- gate_coverage.rs: drop the duplicate `enable-1to4-partitions` comment
  paragraph; main already removed that entry with its own wording.

Gates: chroma-rect 57 matches / 36 named refusals / 120 attempts, 21 out of
scope with 0 mismatches; 10-bit inter ok; gate_coverage + refusal_inventory
14 passed, 0 failed.
fix(av1): sub-8 rect leaves read use_filter_intra from BLOCK_4X4's CDF row and then refused the prediction -- 4x8/8x4 now decode filter intra pixel-exactAhmet Kaan Gümüş · 5a2f5ef
fix(av1): sub-8 rect leaves read use_filter_intra from BLOCK_4X4's CDF row and then refused the prediction -- 4x8/8x4 now decode filter intra pixel-exact

`read_intra_mode_sub8` is shared by the 4x4 split leaves and lane-tx4x8's
4x8/8x4 rect leaves, and hardcoded `cdfs.filter_intra[0]` (BLOCK_4X4's row).
`av1_filter_intra_allowed_bsize` allows BLOCK_4X8/BLOCK_8X4, so aomenc writes
the flag for every DC_PRED one of them and libaom reads it with
`default_filter_intra_cdfs[BLOCK_4X8]/[BLOCK_8X4]` (6743/5893): the same symbol
VALUE out of a different interval, a desync a block or two later
(wrong-alphabet-same-value). `cdf::FILTER_INTRA` gains those two rows (classes
8/9, generated by scripts/extract-filter-intra-cdfs.py and pinned by the domain
test, whose 4x8/8x4 entries lose their now-stale BELOW_8X8 refusal), the class
comes from `filter_intra_size_class_rect`, and the caller passes its leaf's own
shape.

Prediction: the refusal ("filter intra on a HORZ/VERT strip (this decoder
predicts square-only)") was stale prose -- `predict_filter_intra` has taken a
true bw x bh since lane-rectsplit -- so `filter_intra` is threaded into both
whole-leaf `reconstruct_rect` calls and, under `tx_depth=1`, into each 4x4
transform unit's own `reconstruct`/`read_plane` (each predicted from the
previous unit's reconstruction). The refusal leaves refusal_inventory.

Sweep of the same class as 1a89ed9 (tx_type row under filter intra): the coded
16x8/8x16 and 32x16/16x32 strips also passed the block's raw DC_PRED `mode` to
`cdfs.txb`; all three sites now go through the new `fi_tx_row`
(`fimode_to_intradir`), which `read_plane` shares.

GATE: a_real_aomenc_stream_with_filter_intra_on_a_sub8_rect_leaf_decodes_pixel_exact
-- real aomenc, filter-intra ON as the first occurrence of the flag, three arms
(8-bit tx-size-search=1/0, 10-bit =1), per attempt a nonzero
filter_intra_rect_sub8_hits delta AND all three planes compared against ffmpeg;
3 firing pixel-exact runs per arm (5/5/4 filter-intra 4x8/8x4 leaves).
feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition armsAhmet Kaan Gümüş · 323608a
feat(av1): inter-frame superblock-level HORZ/VERT/1:4 and 32x32-level 1:4 partition arms

decode_inter_block's `at` moves from 16-px cells to MI (4 px) units so a
32x32-level 1:4 strip can name its 8-px offset; motion_mode/obmc gain libaom's
BLOCK_32X64/64X32/8X32/32X8/16X64/64X16 rows and are selected by the block's
true footprint; interintra is no longer read on a 1:4 strip
(is_interintra_allowed_bsize is enum-ordered and excludes them); delta_q/lf's
is_whole_sb becomes bSize == sbSize.

Gated: the superblock-level inter PARTITION_HORZ arm, 8-bit, 4 x 64x32 strips
inside 2 pixel-exact attempts vs ffmpeg. NOT gated: the VERT/1:4 arms and the
whole 10-bit side -- every real stream finds those strips non-skip and stops at
"a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular residual
coding". See lanes/inter4-r1.report.md.
Merge branch 'lane-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT emptyAhmet Kaan Gümüş · 15a2683
Merge branch 'lane-defon': every default-on aomenc tool is spelled on in a gate with a hard counter; forward keyframes counted; NEVER_ON_8BIT empty

Auto-merged cleanly. Post-merge coverage print (fresh binary): NEVER_ON_8BIT
0 of 10 over 51 8-bit gates; NEVER_ON_10BIT only enable-diff-wtd-comp over 24
10-bit gates -- multi-tile is no longer a hole, so the list the tx4x8 merge
had already trimmed reconciles with the lane's by the test itself.
Merge branch 'lane-fimv': motion_mode alphabet drops WARPED_CAUSAL under cur_frame_force_integer_mv (libaom motion_mode_allowed); screen-content warp gate 8/10-bitAhmet Kaan Gümüş · 6421619
Merge branch 'lane-fimv': motion_mode alphabet drops WARPED_CAUSAL under cur_frame_force_integer_mv (libaom motion_mode_allowed); screen-content warp gate 8/10-bit

The 16x16+ site merged clean. The 8x8 site was rewritten by lane-gmaffine on
main (real ref_frame, WARPED_CAUSAL implemented rather than refused), so
main's arm is kept and `&& !force_integer_mv` plus the FIMV_ALPHABET_HITS
bump are re-applied there by hand; the lane's "8x8 WARPED is refused" prose
is dropped as stale.
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bitAhmet Kaan Gümüş · aa53dcc
Merge branch 'lane-eobc1': eob_pt class-1 rows checked against libaom for every size by script; inter gate with 1D-class chroma eob at 8/10-bit

cdf.rs/cdf_state.rs resolved to main's single copy of each class-1 const
(values identical to the lane's). scripts/extract-eob-class1.py reported 8
consts MISSING: EOB_PT_128_LUMA_CLASS1* and EOB_PT_32_CHROMA_CLASS1*, the
tables behind the three arms that still carried `eob_pt_class1: None`
(LumaRect16x8, LumaRect16x8Set1, ChromaRect8x4) -- machine-extracted and
wired, so the script now reports 112/112 checked, 0 mismatched, 0 missing
and no `eob_pt_class1: None` remains.
test(av1): 10-bit 1:4 coverage + out-of-scope handling for the chroma-rect gateAhmet Kaan Gümüş · d22dd39
test(av1): 10-bit 1:4 coverage + out-of-scope handling for the chroma-rect gate

- assert a superblock 1:4 strip inside a pixel-exact 10-BIT stream, which
  retires `enable-1to4-partitions` from gate_coverage::NEVER_EXERCISED_10BIT
  (no 10-bit gate carried the tool before).
- attempts whose stream carries no 1:4 strip are out of this gate's territory:
  counted and printed, never selected on correctness (the sibling superblock-1:4
  gate's rule). 8-bit and 10-bit cq 32 seed 46 mismatch there with zero 1:4
  blocks -- another shape's pre-existing defect, named in the report.

Full 20-attempt sweep (120 streams): 60 pixel-exact, 37 named refusals, 527
superblock 1:4 strips compared, chroma shape 32x8 fired once inside a
pixel-exact stream, 37 depth-1 refusals.
Merge branch 'lane-cfl': chroma intra-edge filter reads the neighbour's uv_mode below 16x16 (was a literal false; coarse 16px uv map never written by sub-16 blocks)Ahmet Kaan Gümüş · b49a79b
Merge branch 'lane-cfl': chroma intra-edge filter reads the neighbour's uv_mode below 16x16 (was a literal false; coarse 16px uv map never written by sub-16 blocks)

Resolved decode.rs in favour of main's mi-granular uv_mode map family
(sub8merge: uv_mode_col/uv_mode_row + record_uv_mode_mi + smooth_uv_neighbour);
the lane's 3-tuple widening of sub8_mode_col/row is dropped as redundant.
The lane's call sites (decode_leaf_rect, decode_leaf8, decode_block_rect,
decode_block_rect64, decode_block, decode_inter_block) are wired to
smooth_uv_neighbour, and its UV_MODE_MI_OVERRIDE_HITS counter now lives
inside that function. Gate + CFL/angle-delta counters taken from the lane.
fix(av1): a 1:4 HORZ_4/VERT_4 strip's first transform split is a 2:1 RECT unit, not a squareAhmet Kaan Gümüş · 71f7ca2
fix(av1): a 1:4 HORZ_4/VERT_4 strip's first transform split is a 2:1 RECT unit, not a square

sub_tx_size_map[TX_64X16] is TX_32X16, so `bw.min(bh) >> (depth - 1)` (correct
for a 2:1 strip) named 16x16 square units for a depth-1 64x16/16x64 superblock
strip and decoded it with the wrong tiling -- silently, wrong pixels, no
refusal (measured: 8-bit cq 45 seed 42 of the new gate's fixture mismatched
ffmpeg on frame 0 luma with 2 such strips). depth >= 2 now shifts one step
later; depth == 1 on a coded 1:4 strip is refused by name.

Also wires the split path's missing chroma shapes (32x8/8x32 -> TxbSet::Chroma16
+ SCAN_32X8/8X32, 8x4/4x8 -> ChromaRect8x4 + SCAN_8X4/4X8, all reused from the
unsplit paths that already prove them) and per-shape hit counters. Those arms
are not yet reachable -- every stream that would use them arrives with depth 1
-- so the gate reports their counters instead of asserting on them.

Gate: a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact
(8+10 bit, cq 45/32/60, transposed odd seeds, tx-size-search ON): 15 pixel-exact
matches, 100 superblock 1:4 strips in compared streams, 9 depth-1 refusals.
docs(palette2): r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only redAhmet Kaan Gümüş · 094999a
docs(palette2): r11 full-suite totals -- 306 passed / 1 failed / 26 ignored, the seed-46 gate is the only red

r10's inherited nz_map_ctx_offset_tables_match_the_rect_rule failure is gone (main
deleted the stale test; the merge took the deletion).
fix(av1): a transform unit inside a block is not a block at that positionAhmet Kaan Gümüş · b7ad53c
fix(av1): a transform unit inside a block is not a block at that position

`Reach::of(tx, tu_px, tu_py, ..)` answered the standalone-block
has_top_right/has_bottom_left tables for every transform unit of a
split-transform SQUARE block (decode_block's multi-TU branch and
decode_leaf8's 2x2 4x4 grid), where libaom's reconintra.c takes its
TU branches instead: bottom-left is 0 outright for col_off > 0, and
1 while the unit below-left is still inside the block. The rect path
(decode_rect_split, lane-rectsplit r1) already had the right rule
inline; it now shares it as Reach::of_tu.

Measured on the seed-46 gate stream: the TL 16x16 (D203, VERT_A,
tx depth 1) at px(128,64) has four 8x8 luma TUs; aomdec reports
n_bl=8,0,8,0 for them, ours granted bottom-left to the col_off=8
units and reconstructed a 25-pixel diagonal wedge at rows 68..71
that then propagated over the whole last superblock (2242 samples).

a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact
RED -> GREEN. New enumeration test
encode::tests::of_tu_matches_libaom_has_top_right_and_has_bottom_left_per_unit
checks of_tu against an MI-unit transcription of both libaom functions
over every (block, tx, row_off, col_off, block-level answer).
Merge branch 'lane-fistrip': 8x16/16x8 strips read use_filter_intra (rows were missing, tile desynced silently); sub-16 filter-intra pixel gates re-measured on the merged treeAhmet Kaan Gümüş · e3ed88c
Merge branch 'lane-fistrip': 8x16/16x8 strips read use_filter_intra (rows were missing, tile desynced silently); sub-16 filter-intra pixel gates re-measured on the merged tree

Conflicts: cdf.rs + cdf_state.rs + decode.rs took main's side -- lane-rectx r3
landed the same two FILTER_INTRA rows first, with the OPPOSITE index
convention ([6]=16x8, [7]=8x16), and main's is the one its gates pin.
refusal_inventory.rs: the lane deleted "filter intra on a HORZ/VERT strip
(this decoder predicts square-only)", but lane-tx4x8's sub-8 leaf path still
raises it, so the entry is restored with a note.

Re-measured, not assumed: with the coded-strip refusal gone the two sub16
filter-intra gates still cannot compare a pixel. 41 attempts (8-bit) give 35
pixel-exact decodes and ZERO mismatches; both seeds that fire filter intra on
an 8x16/16x8 strip (49, 213) now stop at the sub16 split-transform refusal or
the HORZ_A/B one, and the 10-bit twin the same way. They stay #[ignore]d with
the measured reason, and the pinned 16x8 fixture test now expects that next
ceiling on the same block.
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach rowAhmet Kaan Gümüş · a07b869
Merge branch 'lane-tx4x8': 4x8/8x4 leaves read tx_depth (TX_MODE_SELECT) and code TX_4X8/8X4 (ReelB head blocker); every rect shape carries its own libaom reach row

Conflicts: cdf_state.rs (union -- main's eob_pt_*_class1 fields plus the
lane's eob_pt_32_luma pair and the two rect TxbSets, all three hunks),
decode.rs (lane's read_coeffs_rect: it implements the TX_CLASS_HORIZ/VERT arm
main refused; duplicate SCAN_4X8/SCAN_8X4 transcriptions collapsed to one,
trace names unified on rect_trace), encode.rs (lane's per-shape
HAS_TR_*/HAS_BL_* consts + rect_reach_tables win over main's
has_tr_rect_table/has_bl_rect_table, kept main's documented
Reach::rect_table_index as the index and its bijection test, kept main's
VERT_A/B tables), gate_coverage.rs (10-bit "multi-tile" hole closed by the
merged recipes -- its own test demanded the entry go), lanes/COMMON-20260901.md
(main's systemd-run suite section).
merge(palette2): main 4a29b4e (sub8merge mi-granular mode maps + rectx coded strips)Ahmet Kaan Gümüş · 851c4fb
merge(palette2): main 4a29b4e (sub8merge mi-granular mode maps + rectx coded strips)

Resolved decode.rs by keeping both sides at all 5 hunks: main's
modes_above_left()/record_mode_mi()/record_uv_mode_mi() (mi-granular maps)
alongside the lane's palette ctx/cache reads, palette refusals and palette
neighbour stamps in decode_block_rect / decode_block_rect64.
refusal_inventory + gate_coverage auto-merged and are green (3 + 9 tests).
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatchesAhmet Kaan Gümüş · 3ac3386
Merge branch 'lane-tx64x16': 32x32-level HORZ_4/VERT_4 (four 32x8/8x32 strips, ReelB mid-film blocker) gated on a band fixture at 8/10-bit; 1:4 gates assert out-of-scope pixel mismatches

Conflicts: decode.rs (kept main's base_ctx domain test read table[col][row],
kept the lane's transposed-scan-pair test), encode.rs (kept main's
has_tr_rect_table/has_bl_rect_table + rect_table_index from lane-rectx r5 and
folded the lane's 32x8/8x32 rows into them; the lane's HAS_*_RECT arrays and
Reach::rect_table are dropped as redundant), gate_coverage.rs (lane's side:
1:4 partitions leave NEVER_EXERCISED_10BIT).
docs(palette2): r11 report -- merge of main 096f4b8, seed 46 localized to one block (entropy exact)Ahmet Kaan Gümüş · c043c60
docs(palette2): r11 report -- merge of main 096f4b8, seed 46 localized to one block (entropy exact)

The seed-46 gate is still RED and is NOT a lane regression in the entropy
sense: the whole frame's symbol ladder is bit-exact vs instrumented aomdec, the
mismatch is pre-loop-filter and confined to the frame's last superblock, and
the first defective block is the TL 16x16 of a 32x32 PARTITION_VERT_A at
px(128,64) (mode 7 / D203). Palette code, filter intra and the loop filter are
ruled out with artifacts. Suite was still running at the tool cap.
Merge branch 'lane-rectx': coded (non-skip) 16x8/8x16 strips with TX_16X8/8X16 luma and 8x4/4x8 chroma coefficient paths (ReelC blocker)Ahmet Kaan Gümüş · e47e7ce
Merge branch 'lane-rectx': coded (non-skip) 16x8/8x16 strips with TX_16X8/8X16 luma and 8x4/4x8 chroma coefficient paths (ReelC blocker)

Conflict resolution: cdf.rs/cdf_state.rs take the union (lane's EOB_PT_128_LUMA*
/EOB_PT_32_CHROMA* tables + main's q-dependent EOB_PT_512_CHROMA row);
decode.rs keeps main's sub8 mi-exact neighbour maps and its Option<prev_leaf>
decode_leaf8 (lane's prev_leaves/write_back_split_modes duplicate of the same
fix dropped), lane's coded rect leaf path, both scan-table families;
encode.rs keeps main's VERT_A/B Reach tables with the table_row naming.
merge(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares)Ahmet Kaan Gümüş · 652ab0d
merge(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares)

decode.rs auto-merged; decode_block_rect64's split arm (main's SB-level 1:4
path) gained the lane's RectStripModes palette fields and the r10 early-return
palette stamp -- same class as decode_block_rect's arm. cdf.rs is main's
byte-for-byte, main's deletion of nz_map_ctx_offset_tables_match_the_rect_rule
taken. refusal_inventory.rs: kept the two lane palette strings + main's
superblock-level partition value string; dropped the three no longer emitted.
docs(palette2): r10 full-suite totals -- 294/2/27, one inherited failure and one lane regressionAhmet Kaan Gümüş · 11df160
docs(palette2): r10 full-suite totals -- 294/2/27, one inherited failure and one lane regression

Full `cargo test -p ec-av1 --lib` on the merged tree (the previous r10 agent was killed
before it finished): 294 passed, 2 failed, 27 ignored.

- nz_map_ctx_offset_tables_match_the_rect_rule fails IDENTICALLY at the merge base 06d856d
  (inherited from main: 44e8768 transposed the tables, the test still reads [col][row] while
  decode.rs:1804 reads [row][col]).
- a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact PASSES at
  06d856d and FAILS here (seed 46, luma (188,62) ours=116 ffmpeg=115, 2242 samples,
  bbox x135..191 y62..127) -- a regression this lane owns; main's gate is newer than the
  lane's rect-strip work, so the merge is the first time the two met.
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seedsAhmet Kaan Gümüş · f28a52c
test(av1): pin every filter-intra CDF row from the oracle, prove predict_filter_intra bit-exact, record both firing seeds

lane-fistrip r2, the verifier's four fix-now items on 57f1fcb (no decode-path
behaviour changes -- tests, a generator script, and a gate seed window):

1. scripts/extract-filter-intra-cdfs.py generates default_filter_intra_cdfs from
   the oracle (enums.h BLOCK_SIZES_ALL order + entropymode.c), and the domain test
   now lists all 14 allowed shapes with their TRUE row -- r1 had guessed 16384 for
   4x16/16x4/8x32/32x8, which are really 12770/10368/20229/18101 -- each refused
   shape carrying the refusal string that blocks it, so the round that lifts one
   cannot land a wrong CDF row. Also asserts row shape {p,32768,0}, class
   uniqueness, and that every cdf::FILTER_INTRA row is claimed.

2. predict_filter_intra had no unit test at all: intra.rs now transcribes
   av1_filter_intra_taps and av1_filter_intra_predictor_c/highbd_ (reconintra.c
   807-955) independently in the test module and compares bit-exact over 5 modes
   x 14 shapes x 3 seeded edge sets x {8,10}-bit = 420 blocks.

3. The second firing seed of the 200-seed measurement is 213 (seeds 50..=241
   re-run: 172 matches, 20 refusals, one sub16 delta); the 8-bit gate's seed
   window now always carries FIRING_SEEDS [49, 213], both named in its doc and
   #[ignore] string, so the un-ignore compares two real hits. 10-bit arm widened
   with 213, marked as unmeasured for its own recipe.

4. lanes/fistrip-r2.report.md carries the MERGE NOTE: the pinned
   a_pinned_aomenc_16x8_strip_reads_its_use_filter_intra_flag expect_err must
   become a pixel compare in the round that lifts the coded-rect-strip refusal.

Suite: 301 passed, 1 failed (pre-existing nz_map_ctx_offset_tables_match_the_rect_rule,
red on main df5d630), 29 ignored.
docs(tx64x16): r5 report -- seed 47 is a genuine 16x16 VERT_A, not a desyncAhmet Kaan Gümüş · 0816967
docs(tx64x16): r5 report -- seed 47 is a genuine 16x16 VERT_A, not a desync

Range ladder ours vs instrumented aomdec: equal range (56592) entering the
16x16 partition symbol, both read value 6 (PARTITION_VERT_A). Main df5d630
refuses the identical stream. --enable-ab-partitions=0 is inert on this
recipe (=0 and =1 byte-identical, md5 ef8c8be0664b). Gate 7/8 and 5/8
pixel-exact, every non-exact attempt a named refusal; siblings green.
test(av1): the 1:4 gates fail an out-of-scope pixel mismatch; restore decode_stream's docsAhmet Kaan Gümüş · a57d66d
test(av1): the 1:4 gates fail an out-of-scope pixel mismatch; restore decode_stream's docs

Class gate-skips-on-its-own-failure: both 1:4 stream gates counted and printed
attempts that decoded but mismatched ffmpeg while carrying none of the gate's
own blocks. A wrong decode is a failure whatever shape caused it -- now
assert_eq!(out_of_scope_mismatch, 0) in each, counters kept so the message
still names the other shape.

rect4_32_counters had been spliced INTO decode_stream's doc comment (between
the # Errors section and the fn), eating half of it; moved above the doc block.
It stays pub: examples/decode_probe.rs calls it from outside the crate.

Seed 47 of the 32-level gate is NOT a desync: our msac range entering the
16x16 partition symbol equals aomdec's (56592) and both read value 6
(PARTITION_VERT_A) -- a shape this decoder does not code, and main df5d630
refuses the same stream identically. --enable-ab-partitions=0 is inert here:
encoding with =0 and =1 gives byte-identical output (md5 ef8c8be0664b).
fix(av1): 8x16/16x8 strips never read their use_filter_intra flag -- av1_filter_intra_allowed_bsize allows both, filter_intra_size_class_rect had no CDF row, so the symbol was silently skipped and the tile desynced on that block; adds default_filter_intra_cdfs rows 4/5 (12551/9394), a domain test over every allowed shape, a pinned real-aomenc fixture proving the read, and the pixel gate (8- and 10-bit) ignored with its measurement (2/200 seeds fire, both on skip=0 strips the coded-rect-strip-below-16x16 refusal still blocks)Ahmet Kaan Gümüş · b2b0caf
fix(av1): 8x16/16x8 strips never read their use_filter_intra flag -- av1_filter_intra_allowed_bsize allows both, filter_intra_size_class_rect had no CDF row, so the symbol was silently skipped and the tile desynced on that block; adds default_filter_intra_cdfs rows 4/5 (12551/9394), a domain test over every allowed shape, a pinned real-aomenc fixture proving the read, and the pixel gate (8- and 10-bit) ignored with its measurement (2/200 seeds fire, both on skip=0 strips the coded-rect-strip-below-16x16 refusal still blocks)
fix(av1): every rect block shape gets its own has_tr/has_bl row -- a `_` arm sent 16x8 strips to libaom's has_tr_32x16Ahmet Kaan Gümüş · 2159b11
fix(av1): every rect block shape gets its own has_tr/has_bl row -- a `_` arm sent 16x8 strips to libaom's has_tr_32x16

`rect_reach_tables` held 4x8/8x4/16x32 and routed everything else, live 16x8
strips included, to the 32x16 row: wrong at 10 of the 21 reachable superblock
positions for above-right and 7 for below-left (the pre-lane
`HAS_TOP_RIGHT_RECT[bw == 16]` selection was wrong at 14 and 14). All 14 rect
shapes this decoder codes or will code now carry their own table, generated
from the oracle's reconintra.c, and the match is exhaustive with an
`unreachable!` naming the shape; the rect index no longer wraps modulo the
table length, which was masking the mis-routing.

Domain test `every_rect_shape_reaches_what_libaom_says_over_the_whole_superblock`
compares Reach::of_rect against a port of has_top_right/has_bottom_left for
every shape at every position in two superblocks, plus a per-shape (len, byte
sum) fingerprint from the oracle's arrays; restoring the old routing for 16x8
fails it. The asymmetric directional-strip STREAM gate is written but
`#[ignore]`d: 38/40 attempts die on the live "coded (non-skip) HORZ/VERT rect
strip below 16x16" refusal (details + the measured recipe table in
lanes/tx4x8-r3.report.md). Suite: 275 passed, 0 failed, 23 ignored.
test(av1): gate the 32x32-level AB partitions (8-bit + 10-bit) -- the arms were already decoded, nothing asserted they fireAhmet Kaan Gümüş · 59e552c
test(av1): gate the 32x32-level AB partitions (8-bit + 10-bit) -- the arms were already decoded, nothing asserted they fire

lane-ab32 r1. The charter premise was stale: at main df5d630 all four INTRA
arms (PARTITION_HORZ_A/HORZ_B/VERT_A/VERT_B at 32x32) and all four INTER twins
are decoded, the 32-level refusal only covers HORZ_4/VERT_4 (values 8/9, lane
tx64x16), and ReelC's head stops at the 64-level 1:4 refusal, not here. What was
missing was the gate: partab_hits is only SOFT-noted by the INTER AB gate and
the four per-arm counters lane-part32 added had no consumer at all (class
refusal-lifted-without-a-gate).

Two new gates, 16 seeds each, every successful decode pixel-compared against
ffmpeg, per-attempt counter deltas summed only over attempts that decoded AND
compared, each arm hard-asserted nonzero, the four value=4..7 refusal strings
explicitly forbidden, Err tolerated only when it says "unsupported":
  8-bit  16/16 pixel-exact, HORZ_A_32=101 HORZ_B_32=118 VERT_A_32=71 VERT_B_32=80
  10-bit 16/16 pixel-exact, HORZ_A_32=55  HORZ_B_32=50  VERT_A_32=46 VERT_B_32=45

The smooth gradients fixture codes as PARTITION_NONE everywhere (first run:
16/16 pixel-exact, zero AB hits), so both recipes add seeded noise; the oracle's
own partition histogram at BLOCK_32X32 shows AB values 4..7 appear only with
noise at cq-level=45. ten_bit_tool_gate's Err arm also stopped tolerating
arbitrary decode errors as "named refusals".
wip(tx64x16): r4 fixture searchAhmet Kaan Gümüş · 1e9be5fBrowse files

2026-09-01

test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradientsAhmet Kaan Gümüş · 3e19c89
test(av1): the 32x32-level 1:4 gate fires and is pixel-exact -- 8-pixel bands, not gradients

r3 lifted the "a 32x32 partition type this decoder does not code (value=8)"
refusal with its gate #[ignore]d because no gradients-derived fixture ever made
aomenc's RD pick a 32-level HORZ_4/VERT_4 (class refusal-lifted-without-a-gate).
The content those shapes win on is 8-pixel BANDS: a 32x8 strip is flat, a 32x16
one straddles two bands, so HORZ_4 beats HORZ and SPLIT; a noise layer with an
explicit seed keeps the flat bands out of screen-content mode. Measured 16
HORZ_4 / 24 VERT_4 strips per frame at both bit depths.

Gate un-ignored unchanged in its asserts: 8-bit 7/8 attempts pixel-exact
(64 HORZ_4 + 72 VERT_4 + 136 coded strips), 10-bit 5/8 (48 + 48 + 96), zero
attempts out of scope, zero mismatches, refusals all named. gate_coverage:
enable-1to4-partitions leaves NEVER_EXERCISED_10BIT.

decode_probe now prints the rect4_32 counters (via stream::rect4_32_counters),
which is how the fixture search was measured rather than reasoned about.
docs(tiles): r12 report -- suite totals, main still needs the palette/filter-intra fixAhmet Kaan Gümüş · d58785a
docs(tiles): r12 report -- suite totals, main still needs the palette/filter-intra fix

Full EC_AV1_REQUIRE_AOMENC=1 suite: 283 passed, 0 failed, 26 ignored (1860.6s);
refusal_inventory + gate_coverage green; all four live multi-tile arms ok.
Re-measured the charter's claim that main already carries the palette use_filter_intra
guard: false at main df5d630 (neither the square nor the rect site has it).
Also fixes a missing line continuation in the two new override assert messages.
fix(av1): the two rect nz_map ctx tables were transposed, and the 512-chroma eob CDF was the flat 1D rowAhmet Kaan Gümüş · 6906e60
fix(av1): the two rect nz_map ctx tables were transposed, and the 512-chroma eob CDF was the flat 1D row

The merged superblock HORZ/VERT gate's seed 43 decoded garbage from the
first 64x32 strip onward; base fad4d5a "passed" it only because the
desynced stream then produced a 16x16 partition symbol the AB refusal
caught (the gate's own recipe spells --enable-ab-partitions=0, so aomenc
never wrote one). Two transcription defects, found by comparing our
EC_TRACE_COEFF against the instrumented aomdec's msac range element by
element:

- NZ_MAP_CTX_OFFSET_32X64 / _64X32 were stored [col][row] and read
  [row][col]. libaom indexes av1_nz_map_ctx_offset by
  coeff_idx = (col << bhl) | row -- column-major, bhl = log2 of the
  transform's HEIGHT -- so a straight transcription is transposed. It is
  invisible on the square table (symmetric) and at row, col < 2 (both
  halves agree), which is every position lane-sbpart r8's gate reached.
- EOB_PT_512_CHROMA carried av1_default_eob_multi512_cdfs' SECOND inner
  index, which is eob_multi_ctx (the flat 1D-class row, flat for both
  planes), not the plane. The chroma 2D rows vary per q-context exactly
  like luma's; all four are spelled out and picked by q_ctx now.

Two unit tests pin both: the offset tables are re-derived from libaom's
own generating rule and cross-checked against base_ctx_rect, which
spells that rule out instead of reading a table (those two disagreed
silently before), and the chroma eob constant is pinned unequal to the
flat row.

Seed 43 now decodes bit-exact vs aomdec (36864/36864 bytes; 20494 luma
bytes differed before). cargo test -p ec-av1 --lib: 274 passed, 0 failed.
fix(av1): Reach::top_right/bottom_left shadowed the block's position row with the table-row index -- the sub8 merge's has_tr_4x4/has_bl_4x4 row lookup rebound `row`, so the bit index (row * table_stride + col) read the wrong bit for EVERY block size; split_transform_horz_vert seed 55 (3080 luma samples) and the sub8 gate both green againAhmet Kaan Gümüş · 5c19acd
fix(av1): Reach::top_right/bottom_left shadowed the block's position row with the table-row index -- the sub8 merge's has_tr_4x4/has_bl_4x4 row lookup rebound `row`, so the bit index (row * table_stride + col) read the wrong bit for EVERY block size; split_transform_horz_vert seed 55 (3080 luma samples) and the sub8 gate both green again
test(av1): extract-eob-class1.py checks the 2D eob_pt rows too -- rectsplit r4's EOB_PT_512_CHROMA suspicion disproved, 88/112 consts bit-exactAhmet Kaan Gümüş · cef1ded
test(av1): extract-eob-class1.py checks the 2D eob_pt rows too -- rectsplit r4's EOB_PT_512_CHROMA suspicion disproved, 88/112 consts bit-exact

lane-eobc1 r1. The checker only ever diffed the class-1 (eob_multi_ctx==1)
rows, so a 2D const accidentally transcribed from its class-1 sibling -- the
shape rectsplit r4 suspected of EOB_PT_512_CHROMA -- was outside its domain.
Emitting both classes covers every [q][plane][class] cell libaom defines:
all 88 consts the crate defines are bit-exact against
~/.cache/aom-oracle/src/av1/common/token_cdfs.h, 0 mismatched. The 24 it
reports missing are two whole absent table families (32-coefficient TX_4X8/8X4
and 128-coefficient luma TX_8X16/16X8) -- both classes missing, no TxbSet
consumes them.

Suite at this HEAD: 301 passed / 1 failed / 27 ignored with
EC_AV1_REQUIRE_AOMENC=1; the one red
(decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule) fails
identically at detached main df5d630, inherited not introduced.
feat(av1): 32x32-level PARTITION_HORZ_4/VERT_4 -- four 32x8/8x32 strips, mi-granularAhmet Kaan Gümüş · 8e9a081
feat(av1): 32x32-level PARTITION_HORZ_4/VERT_4 -- four 32x8/8x32 strips, mi-granular

The arm the 2160p 10-bit AV1 mkv extract stops at ("a 32x32 partition type
this decoder does not code (value=8)"). What landed:

- decode_block_rect4 (decode.rs): decode_block_rect's 4:1 sibling addressed by
  REAL mi coordinates -- strips 1 and 3 start 8 px into a 16-px SUB cell, which
  an at-derived px = c * SUB cannot name (decode_leaf_rect's own reason), with
  decode_leaf_rect's prev-strip mode override for the in-block neighbour.
  Coefficients are read, not refused: luma TX_32X8/TX_8X32 -> TxbSet::LumaRect32x8
  (Luma16's 256-position tables, tx_type None because tx_size_sqr_up is TX_32X32
  = EXT_TX_SET_DCTONLY for intra) with the existing SCAN_32X8/SCAN_8X32; chroma
  TX_16X4/TX_4X16 -> TxbSet::Chroma8 (64 positions) with new SCAN_16X4/SCAN_4X16.
- SCAN_16X4/SCAN_4X16 transcribed from libaom's column-major default_scan_*; the
  conversion rule was validated by REGENERATING SCAN_16X8 from default_scan_16x8
  byte for byte first (class reference-layout-not-spec). Transposed-pair unit
  test over both the new chroma pair and the 32x8/8x32 luma pair.
- Reach: has_tr_32x8/has_tr_8x32/has_bl_32x8/has_bl_8x32 (reconintra.c:122-127,
  305-310) added; the row selector is now an explicit shape match, so no existing
  shape changes row. libaom's index formula (blk_row << (5 - bw_in_mi_log2)) is
  exactly this file's row * (128 / bw) + col, so the stride math generalizes.
- Cherry-picked lane-rectsplit r4 (7b55227): base_ctx states libaom's generating
  rule instead of indexing the transposed 5x5 tables, plus the SB split-tx per-TU
  strips. main's cdf transcriptions are the TRANSPOSE of rectsplit's, so r4's
  domain test is pinned here as [row][col] (documented at the test; the consumer
  reads neither table).

Evidence: the 2160p extract advances past value=8 to the NEXT refusal INSIDE the
new arm ("a 32x32-level 1:4 strip with a split transform"), i.e. the arm executes
on real content. Siblings green: superblock_level_{1to4,horz_vert,ab},
split_transform_horz_vert, refusal_inventory, gate_coverage (13 passed / 0 failed).

NOT PROVEN, and the gate says so: the new pixel gate
a_real_aomenc_stream_with_a_32x32_level_1to4_partition_decodes_pixel_exact is
#[ignore]d because no fixture recipe found this round makes aomenc emit a
32-level 1:4 partition -- 20/20 attempts at min-partition-size=8 carried zero,
as did a vertically-squeezed and a horizontally-blurred variant. Ignoring is
deliberate: a gate that passes without ever seeing its feature is worse than an
absent one (class gate-blind-to-feature).
test(av1): force_integer_mv motion-mode gate asserts non-vacuity per attemptAhmet Kaan Gümüş · 50503af
test(av1): force_integer_mv motion-mode gate asserts non-vacuity per attempt

The r1 gate asserted `force_integer_mv frames > 0` and `forced-2-symbol
blocks > 0` only in aggregate over its 6 cq/step cells, so one lucky cell
would have carried five silently vacuous ones (class gate-blind-to-feature).
Both counters are now snapshotted per attempt and asserted after that
attempt's pixel compare: all 6/6 cells of each bit-depth arm carry
force_integer_mv=1 frames AND blocks forced onto the 2-symbol obmc
alphabet (114 frames / 342 blocks per arm).

Also documents at the `ref_is_scaled` site why libaom `av1_is_scaled`'s
y_scale_fp half is unreachable in this decoder: a reference whose height
differs from the frame's true size is refused before any tile decodes
(decode.rs ~14681), so the x-only test is exact here and the y term belongs
to whoever lifts that refusal.
fix(av1): a sub-8x8 rect leaf reads a tx_depth symbol -- TX_MODE_SELECT writes one for BLOCK_4X8/8X4 tooAhmet Kaan Gümüş · 88fd2ae
fix(av1): a sub-8x8 rect leaf reads a tx_depth symbol -- TX_MODE_SELECT writes one for BLOCK_4X8/8X4 too

`decode_leaf_rect8` never called `read_tx_size`, so with aomenc's default
`--enable-tx-size-search=1` (TX_MODE_SELECT) the decoder consumed one symbol
fewer than the encoder wrote and desynced the tile at the very first rect
leaf -- the whole frame came out near-flat from sample 0 (class
`symbol-consumption-gap`; the same defect the 16x16-level strip path already
carries a comment about).

Range ladder vs instrumented aomdec on the pinned seed-303 stream: ours
entered the first TU's `all_zero` with a range that had never taken the
`tx_depth` narrowing (38104 -> 46600 in the oracle, one unread symbol);
after the fix every element matches (45231 / 54240 / eob=30 / 62552 /
63488 / 59248 ...) and the frame is pixel-exact vs ffmpeg.

* `bsize_to_tx_size_cat(BLOCK_4X8) == 0` (`sub_tx_size_map[TX_4X8] == TX_4X4`
  is one step), so the symbol is the 2-symbol `tx_size_cat0` an 8x8 uses, NOT
  the 3-symbol `tx_size_cat2` the 32x16 strips read; context is
  `tx_size_context_rect(bw, bh)` (`get_tx_size_context`'s max_tx_wide/high).
* depth 1 splits the leaf into two 4x4 transform units along its long axis,
  each predicted from the previous unit's reconstruction -- ported (skipped
  leaves included, whose per-unit prediction also differs from one 4x8) and
  the tx size recorded as 4x4 for the next block's tx_size_context.
* new `rect8_split_tx_hits` counter; the gate now hard-asserts the split path
  fired, not just that rect leaves coded coefficients.
* `read_coeffs_rect` gained `read_coeffs`'s `EC_TRACE_COEFF` range ladder
  (all_zero/tx_type/eob/base/base_eob/br), in the oracle's own tag format.

Gate `a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact`:
RED (mismatch at sample 0) -> GREEN, all three arms.