forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 1b78ec613d86ab89c499836fcfa7258bf91d845c

2026-09-02

fix(av1): a 1:4 strip read its neighbour MODE from a 16px-coarse band -- four 8px strips alias onto one cell, and the tile-edge cell holds a siblingAhmet Kaan Gümüş · 8029745
fix(av1): a 1:4 strip read its neighbour MODE from a 16px-coarse band -- four 8px strips alias onto one cell, and the tile-edge cell holds a sibling

lane-rectsplitx r2. The r1 "the depth-1 rect transform unit mismatches
ffmpeg" premise is DISPROVED: the rect unit itself is right. The band
fixture's desync starts at the `mode` symbol of mi(4,8) (8-bit, cq 12,
seed 42), where the entry range matches aomdec (38331) but the value
differs (ours 11 / rng 52576, libaom 12 / rng 34624) -- a different
`kf_y_mode` CDF row, i.e. a wrong neighbour mode, not a wrong transform.

Two causes, both in the neighbour bands:
  * `decode_block_rect4` never recorded the mi-exact mode/uv_mode maps in
    its UNSPLIT arm (only the split arm did, through
    `record_mi_luma_rect`), so `mode_left_mi` answered None and the coarse
    16x16 cell -- holding the LAST of the four 32x8 strips -- stood in for
    the strip at the reader's own mi row.
  * the coarse band is also read where libaom has NO neighbour at all: at
    tile column 0 the four strips of one HORZ_4 share one `left_mode`
    cell, so strip 2 read strip 1's mode as its "left". New
    `Neighbours::modes_above_left_mi` is mi-exact AND availability-correct
    (`mi_r > tile_row0_mi` / `mi_c > tile_col0_mi` -> DC_PRED), and the
    class is swept into `decode_leaf_rect` and `decode_leaf8` too.
  * `decode_block_rect4` asked `smooth_uv_neighbour` at the SUB cell's
    top-left mi, not the strip's real mi -- a chroma-only defect (chroma
    edge-filter strength) that seed 43's VERT_4 exposed with luma
    bit-exact.

With all three, the depth-1 rect unit decodes BIT-EXACT vs aomdec on both
orientations of the fixture (seed 42 HORZ_4 and seed 43 VERT_4, 8-bit
cq 12/17, tx-size-search on, luma+U+V). The refusals are lifted and the
gate now HARD-asserts both split depths.

MEASURED RESIDUE, reported not hidden: seed 46 (8-bit, cq 12,
tx-size-search on) still mismatches CHROMA ONLY (luma bit-exact, U 32 /
V 173 samples off by +-1..2, first at chroma (16,8) = the 32x8 strip at
luma (32,16)), so this gate is RED as committed. See
lanes/rectsplitx-r2.report.md for the reproducer and the one-command
fallback to green.
feat(av1): per-transform-unit intra prediction inside a rect strip, at mi granularityAhmet Kaan Gümüş · c8cc7ef
feat(av1): per-transform-unit intra prediction inside a rect strip, at mi granularity

decode_rect_split now takes an mi position and a (tx_w, tx_h) transform unit, so
it can name strips a coarse 16-px cell cannot (a 32x8 HORZ_4 strip, an 8-px-tall
leaf) and walk rectangular units. New depth_to_tx_wh replaces the
`bw.min(bh) >> (depth - 1)` unit formula at every 2:1 call site: libaom's
sub_tx_size_map halves the LONGER side of a rect, so a 1:4 strip's first split is
still a 2:1 RECT unit (TX_32X8 -> TX_16X8, TX_64X16 -> TX_32X16) -- the same root
cause lane-rectchroma measured mis-tiling a depth-1 64x16 strip, fixed once.

Two real defects found by the sweep:
- decode_leaf_rect read cdfs.tx_size_cat2 for a 16x8/8x16 strip;
  bsize_to_tx_size_cat is 1 for BLOCK_16X8/8X16 (same symbol count, different CDF
  row) -- a wrong-table read of a real symbol.
- its luma tx_type CDF row was the block's raw (always DC_PRED) mode under filter
  intra instead of fimode_to_intradir[filter_intra_mode]; main 1a89ed9 fixed that
  inside read_plane, this is its rect sibling. Extracted as tx_type_mode_row and
  used by both.

Lifts the sub-16 split-transform refusal. GATE: the pinned 16x8 filter-intra
fixture is now a whole-frame pixel compare against ffmpeg (was expect_err) and
asserts sub16_split_hits > 0. ReelB mid-film extract moves from "a
32x32-level 1:4 strip with a split transform (depth=2)" to the unrelated
HORZ_A/B-below-16x16 refusal.

The per-unit RECT walk is implemented but REFUSED by name: it mismatched ffmpeg
on the 1:4 band fixture (8-bit cq 12 seed 42), and since depth 1 fires before
depth 2 in every splitting attempt, the depth-2 half cannot be gated either --
both stay refused. The 1:4 gate gained a --enable-tx-size-search=1 half of its
window that asserts those refusals are reached, never mismatched.

Suite: 321 passed, 0 failed, 30 ignored ($HOME/.cache/rectsplitx-suite.log).
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.
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.
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 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).
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.
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.
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): 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.
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compoundAhmet Kaan Gümüş · 0ef28ca
test(av1): the last two NEVER_ON default-on tools -- forward keyframes and 10-bit interintra-wedge/one-sided compound

--enable-fwd-kf=1 --fwd-kf-dist=8 on the altref hidden-frames gate (the only
gate that decodes show_frame==0 frames at all, and it runs both bit depths),
with a new decode::fwd_kf_hits() counter incremented in decode_stream for a KEY
frame coded with show_frame == 0 -- hard-asserted per depth: 42 frames decoded,
2 hidden, 3 forward keyframes, all pixel-exact vs the oracle in decode order at
both 8 and 10 bits.

Two new 10-bit gates through ten_bit_tool_gate:
- a_real_aomenc_10bit_stream_with_interintra_wedge_decodes_pixel_exact
  (--enable-interintra-wedge=1, 8/8 pixel-exact, wii_hits=3)
- a_real_aomenc_10bit_stream_with_onesided_compound_decodes_pixel_exact
  (--enable-onesided-comp=1, 8/8 pixel-exact, uni_comp_hits=5)

NEVER_ON_8BIT is now empty (0 of 10 over 45 gates); NEVER_ON_10BIT is down to
enable-diff-wtd-comp (the 10-bit gradients fixture decodes 8/8 pixel-exact with
diffwtd_hits == 0 -- encoder choice, it needs mandelbrot content in
ten_bit_tool_gate) and multi-tile (covbd2's, not this lane's).
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strengthAhmet Kaan Gümüş · 6c2db9e
fix(av1): chroma intra-edge filter type read a constant false (and a 16px-coarse uv_mode) below 16x16 -- sub-16 leaves filtered every chroma edge at the wrong strength

libaom's get_filt_type (reconintra.c) picks the chroma intra-edge filter
strength from chroma_above_mbmi/chroma_left_mbmi's `uv_mode`. Two defects
stacked on the sub-16x16 path:

1. decode_leaf_rect / decode_leaf_8x8 passed a literal `false` for
   smooth_neighbor_uv into every chroma reconstruct_rect call -- chroma edges
   were never smooth-filtered below 16x16, whatever the neighbour was.
2. The coarse SUB (16px) above_uv_mode/left_uv_mode cells are written by
   `for cell in 0..w / SUB`, which runs ZERO times for a block narrower than
   16 -- so even the 16x16-and-up readers saw whatever a larger block had
   left in the slot, not the real neighbour (class: context read from one
   cell / neighbour map coarser than the block).

Fix: Neighbours::sub8_mode_{col,row} carry the uv_mode alongside the luma
mode, and uv_modes_above_left{,_mi} resolve the mi-exact chroma neighbour
with the coarse slot only as fallback (tile-edge guards inherited from the
luma twin). Every chroma reconstruct site now passes the derived
smooth_neighbor_uv; zero `None, false,` sites remain in decode.rs.

Gate: a_real_aomenc_stream_whose_chroma_edge_filter_reads_a_sub16_neighbours_uv_mode_decodes_pixel_exact
(mandelbrot start_x=-0.6 64x64, cq16, filter-intra on, reduced-tx-type-set=1,
min/max-partition-size 8/32) -- 8-bit arm pixel-exact vs ffmpeg with
cfl_blocks=15, angle_delta_uv_blocks=19, uv_mi_overrides=52 hard-asserted;
the 10-bit twin still refuses on another lane's sub-16 AB-partition gap and
is skipped from comparison, with a `compared > 0` assert keeping the gate
from passing vacuously.
chore(av1): cherry-pick lane-rectsplit r4 (7b55227) -- base_ctx generating rule + SB split-tx per-TU strips; r2's nz_map test dropped for r4's whole-domain oneAhmet Kaan Gümüş · 30e5597
chore(av1): cherry-pick lane-rectsplit r4 (7b55227) -- base_ctx generating rule + SB split-tx per-TU strips; r2's nz_map test dropped for r4's whole-domain one
fix(av1): eob_pt class-1 CDF row missing from 9 of 16 TxbSet arms -- every inter chroma block under a 1D luma tx_type read the 2D rowAhmet Kaan Gümüş · abd0a08
fix(av1): eob_pt class-1 CDF row missing from 9 of 16 TxbSet arms -- every inter chroma block under a 1D luma tx_type read the 2D row

lane-eobc1 r1. libaom's av1_default_eob_multi{16,32,64,128,256,512,1024}_cdfs
are [q][PLANE_TYPES][2]; index 1 is eob_multi_ctx = (tx_class == TX_CLASS_2D)
? 0 : 1 (entropymode.h:81-82, decodetxb.c). Main carried the class-1 row for
6 of the 11 eob_pt tables and left `eob_pt_class1: None` in 9 TxbSet arms --
including Luma4Inter, Luma8Inter and ChromaRect16x8, all of which can code a
1D type. Chroma codes no tx_type symbol of its own: it inherits the colocated
luma type verbatim (av1_get_tx_type, blockd.h:1291), so an 8x8 inter leaf with
H_/V_ luma puts its 4x4 chroma on the class-1 row -- right eob value, wrong
interval, desync one symbol later, surfacing as bogus partition refusals.

Ported the remaining 5 tables (128_chroma, 512_luma/chroma, 1024_luma/chroma)
from lane-gmaffine's f5e1851, machine-extracted afresh:
scripts/extract-eob-class1.py parses token_cdfs.h, emits the [q][plane][1]
rows and `--check`s them against cdf.rs -- all 44 class-1 consts now in the
crate diff bit-exact, 0 mismatched. All 16 arms are Some; 0 `None` left.

The 512/1024 rows are libaom's untouched uniform initialiser, because
av1_get_ext_tx_set_type returns DCT_IDTX/DCTONLY once tx_size_sqr_up >=
TX_32X32 and both members are TX_CLASS_2D -- wired anyway for domain
completeness (class table-domain-narrowed), and cdf.rs's new
eob_pt_class1_rows_cover_every_size test pins exactly that split: the 8
trained rows differ from their 2D sibling, the four 32-point ones are uniform.

GATE (new, 8-bit + 10-bit): a_real_aomenc_{,10bit_}inter_sequence_with_a_
class1_chroma_eob_decodes_pixel_exact -- real aomenc, full tx set
(--reduced-tx-type-set=0 --enable-flip-idtx=1), --min/max-partition-size=8/16,
global/warp/obmc off, 4 frames of a sinusoidal-stripe luma + moving chroma
ramp; hard-asserts decode::chroma_eob_class1_hits() moved on the counted
attempt and compares every shown frame against ffmpeg. Both green.
Ablation (chroma 4x4/8x8 arms set back to None): all 12 attempts fail in both
bit depths -- 10 with bogus partition refusals, 1 with no firing.
fix(av1): motion_mode alphabet ignored force_integer_mv (and scaled refs)Ahmet Kaan Gümüş · a9eda25
fix(av1): motion_mode alphabet ignored force_integer_mv (and scaled refs)

libaom motion_mode_allowed (blockd.h ~1484) only returns WARPED_CAUSAL when
!xd->cur_frame_force_integer_mv && !av1_is_scaled(block_ref_scale_factors[0]);
our warp_eligible had neither clause, so a screen-content frame whose header
set force_integer_mv read the 3-symbol motion_mode_cdf where libaom wrote the
2-symbol obmc_cdf -- a silent tile desync with no refusal naming it (class
wrong-alphabet-same-value). Same clause swept into decode_inter_block8's own
8x8-leaf read.

Gate: a_real_force_integer_mv_warp_{,10bit_}stream_decodes_pixel_exact --
--tune-content=screen, --enable-warped-motion=1 --enable-obmc=1
--enable-global-motion=0 over static screen-content tiles with whole-pixel
motion (what aomenc's av1_is_integer_mv needs). Hard-asserts a decoded frame
header with force_integer_mv=1 and >=1 block forced onto the 2-symbol
alphabet. 6/6 pixel-exact both bit depths; the same gate is 0/6 with 6 named
refusals when the !force_integer_mv clause is removed.
fix(av1): a prediction block 4 or fewer samples wide reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too -- spec 7.11.3.4 filterIdx sends EIGHTTAP and EIGHTTAP_SHARP to filter index 4, and libaom's av1_interp_4tap[MULTITAP_SHARP] is av1_sub_pel_filters_4 (filter.h:239-244, comment "For w<=4, MULTITAP_SHARP is the same as EIGHTTAP_REGULAR"); we used the 8-tap sharp table there, invisible above 4 samples so it only bit 4-wide chroma. Cherry-picked from lane-gmaffine 3bb10f1; unit test pins all four narrow mappings (regular->4, smooth->4smooth, sharp->4, bilinear->bilinear).Ahmet Kaan Gümüş · 53b4e56
fix(av1): a prediction block 4 or fewer samples wide reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too -- spec 7.11.3.4 filterIdx sends EIGHTTAP and EIGHTTAP_SHARP to filter index 4, and libaom's av1_interp_4tap[MULTITAP_SHARP] is av1_sub_pel_filters_4 (filter.h:239-244, comment "For w<=4, MULTITAP_SHARP is the same as EIGHTTAP_REGULAR"); we used the 8-tap sharp table there, invisible above 4 samples so it only bit 4-wide chroma. Cherry-picked from lane-gmaffine 3bb10f1; unit test pins all four narrow mappings (regular->4, smooth->4smooth, sharp->4, bilinear->bilinear).
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for mainAhmet Kaan Gümüş · 6795386
wip(merge): lane-sub8 merged into main 61c6a5b -- conflicts resolved, gates RED, NOT for main

Conflict resolutions kept here so a successor need not redo them:
- decode.rs Neighbours::new -- main's mi-granular inter bands + sub8's four
  mi mode maps (sub8_mode_col/row, uv_mode_col/row).
- decode.rs record_split_luma_rect -- main's rect (w_mi,h_mi) span with
  sub8's record_mode_mi/record_uv_mode_mi calls.
- encode.rs Reach::top_right/bottom_left -- main's VERT_A/B tables kept,
  sub8's has_tr_4x4/has_bl_4x4 row kept, side-4 falls back to the ordinary
  table inside a VERT_A/B (no vert 4x4 row exists) with a corner-cut note.
- examples/decode_probe.rs -- main's EC_PROBE_OUT + dimensions print.
- refusal_inventory.rs -- sub8's sub-8x8 reader still refuses intrabc while
  main's 8x8-and-up reader reconstructs one; refusal string narrowed to
  "a sub-8x8 leaf that uses intrabc" and listed.
- gate_coverage.rs -- enable-1to4-partitions retired from the 8-bit list
  (sub8's gate passes =1), 10-bit entry reworded.

RED on the merged tree (both fail; each side is green alone):
- a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact (seed=100 cq=6)
- a_real_aomenc_stream_with_a_split_transform_horz_vert_strip_decodes_pixel_exact
  (seed 55, luma (191,76) ours=127 ffmpeg=128, 3080 samples, bbox x94..191
  y76..127) -- green at main 61c6a5b, absent from the sub8 lane's tree.
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5Ahmet Kaan Gümüş · df86cfc
test(av1): default-on tools spelled on in the gates that exercise them -- loopfilter-control=1 (2 8-bit + 1 10-bit deblock gate), enable-tx-size-search=1 (shared tx-select inter helper, both depths), enable-directional-intra=1 (directional chroma), enable-diff-wtd-comp=1 + new diffwtd_hits assert (masked compound), enable-onesided-comp=1 + new uni_comp_hits assert (interintra); gate_coverage counts a bit_depth-parameterised helper at both depths; NEVER_ON 6/7 -> 1/5
fix(av1): a 4-sample-wide prediction block reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too (spec 7.11.3.4 filterIdx, av1_interp_4tap[MULTITAP_SHARP] == av1_sub_pel_filters_4) -- we used the 8-tap sharp kernel there, which only ever bit the 4x4 chroma of an 8x8 leaf; both 8x8-leaf motion gates go pixel-exact 24/24 frames at 8- and 10-bit, suite 271/2 -> 273/0Ahmet Kaan Gümüş · 06a5eac
fix(av1): a 4-sample-wide prediction block reads the REGULAR narrow subpel kernel under EIGHTTAP_SHARP too (spec 7.11.3.4 filterIdx, av1_interp_4tap[MULTITAP_SHARP] == av1_sub_pel_filters_4) -- we used the 8-tap sharp kernel there, which only ever bit the 4x4 chroma of an 8x8 leaf; both 8x8-leaf motion gates go pixel-exact 24/24 frames at 8- and 10-bit, suite 271/2 -> 273/0