forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 7c85bedec61b100a4af104d16169eda44f2aabea

2026-09-02

feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocksAhmet Kaan Gümüş · b2eabdd
feat(av1): 16x16-level rectangular INTER leaves -- PARTITION_HORZ/VERT into two 16x8/8x16 inter blocks

Mode info, rectangular residual and prediction for the 16-level rect inter
leaf, the shape lane-inter4 r2 measured as the real reach blocker (real
motion content codes one before any 32-level 2:1 strip).

- decode.rs: the 16x16-level PARTITION_HORZ/VERT arms (side=SUB keeps every
  CDF/prediction-buffer decision square, write_w/write_h carry the true
  footprint), `rect_inter_residual_supported` extended to 16x8/8x16,
  `rect_inter_luma_set`/`rect_inter_chroma_set` picking the TxbSet from the
  block's true shape, motion_mode/obmc CDF rows for BLOCK_8X16/BLOCK_16X8,
  and `size_group_wh` -- `y_mode` and `interintra` now read the block's own
  `size_group_lookup` row instead of its square `side`'s.
- cdf_state.rs/cdf.rs: `TxbSet::LumaRect16x8Inter` (+`Set1`) -- LumaRect16x8's
  coefficient tables with the inter tx_type alphabet (EXT_TX_SET_DCT_IDTX
  reduced / EXT_TX_SET_ALL16 otherwise, both at the TX_8X8 CDF row); the
  missing `eob_pt_128_luma_class1` and `eob_pt_32_chroma_class1` tables, wired
  into the rect 16x8/8x16 luma and 8x4/4x8 chroma sets (a 1D V_DCT/H_DCT unit
  was reading the 2D eob alphabet) and into the per-frame counter reset.
- decode.rs `obmc_blend`: libaom's real `max_neighbor_obmc` table (1 mi -> 0,
  2 -> 1) instead of a row that was right only at 16 px and above.
- REFUSALS: "an inter partition below 16x16 other than SPLIT" is gone; two
  named refusals take its place -- the 16-level AB/1:4 partitions, and OBMC on
  a 16x8/8x16 leaf (which mismatches the reference; see the report).

Gate: a_real_aomenc_inter_sequence_with_a_16_level_rect_leaf_decodes_pixel_exact
(8-bit: 3 attempts carrying a 16x8 leaf, 2 an 8x16, 2 coded rect inter TUs;
10-bit: 2/3 leaves, residual proven by the 8-bit arm), every frame Y/U/V vs
ffmpeg, refusals counted and never SKIPped.
fix(av1): the saved motion field stored a compound block's FIRST reference, not its secondAhmet Kaan Gümüş · 72cffab
fix(av1): the saved motion field stored a compound block's FIRST reference, not its second

libaom `av1_copy_frame_mvs` walks BOTH of an inter block's reference slots and
the LAST qualifying one wins, skipping a slot whose reference is on the other
side (`av1_calculate_ref_frame_side`: OrderHint ahead of, or equal to, this
frame's) or whose mv exceeds `REFMVS_LIMIT`. `build_motion_field` kept slot 0
unconditionally, so every compound block's 8x8 motion-field cell carried the
wrong (mv, reference) pair; the next frame's `add_tpl_ref_mv` then projected it
with the wrong reference distance and a NEARESTMV block took a wrong temporal
candidate -- entropy exact, pixels wrong.

Pinned instance (lane-inter4 r2's open "decodes fully, still mismatches"):
192x128 rect-partition inter stream, cq 34, decode-order frame 5, the 32x32
block at mi(24,40) -- ours mv0=(0,72) from mfmv0=(0,24) rfo=1, aomdec
mv0=(0,-230) from mfmv0=(0,-230) rfo=3. 646 luma pixels, max delta 39.

Gate: a_real_aomenc_inter_sequence_with_temporal_mv_candidates_decodes_pixel_exact
(8-bit + 10-bit, every fully decoded attempt compared to ffmpeg, temporal-MV
counter asserted >0: 66/67 blocks). Reverting the fix reddens it at frame 5.

Class saved-field-keeps-slot-0: a per-frame summary of a multi-slot field must
replay the reference's slot walk (order + skips), not keep slot 0.

Instruments: EC_MODE_VAL/EC_STACK on our single-ref path, EC_TPL per
add_tpl_ref_mv probe (oracle side patched to match).
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape)Ahmet Kaan Gümüş · b594919
feat(av1): rectangular inter residual coding for 32x16/16x32 strips (gate red, refusal kept for every other shape)

The r1 ceiling was that no rectangular inter block could carry a residual:
decode_inter_block refused every non-skip HORZ/VERT/HORZ_B strip. This ports
the path for the 2:1 shapes whose coefficient tables already exist:

- read_block_tx_size_rect: spec 5.11.17 from the block's own rect
  max_txsize_rect_lookup entry. TX_MODE_LARGEST -> one rect TU, no symbol;
  TX_MODE_SELECT -> one depth-0 txfm_partition symbol (new
  txfm_partition_ctx_rect: above vs tx_size_wide, left vs tx_size_high,
  category from txsize_sqr_up_map), and a split resolves to sub_tx_size_map's
  SQUARE sub-transforms, from which the existing square read_var_tx_size
  continues at depth 1.
- txfm_partition_update_rect, and the skipped-inter case now records the
  block's own width above / height left (set_txfm_ctxs(.., skip && is_inter)).
- read_inter_plane_rect: read_coeffs_rect + dequant_and_inverse_typed_wh onto
  the top-left w x h of the square-strided MC predictor; luma txb_skip_ctx 0
  (plane_bsize == txsize_to_bsize[tx_size]); chroma at av1_get_max_uv_txsize
  (16x8/8x16) inheriting the luma tx_type.
- TxbSet::LumaRect32x16Inter: LumaRect32x16's coefficient tables plus
  default_inter_ext_tx_cdf[3][TX_16X16] (EXT_TX_SET_DCT_IDTX, what
  av1_get_ext_tx_set_type returns for an inter TU with sqr_up == TX_32X32).
- two r1 out-of-bounds fixes surfaced by the new content: a rect strip's
  around_mi read `side` cells left and indexed past the tile's last mi row;
  the rect mode/side stamps ran past the frame's last 16-px column.

The refusal string is unchanged and still fires for every shape but 32x16 and
16x32, so refusal_inventory is untouched. The new gate is RED and #[ignore]d
with its exact reason: on real motion content the decode stops at the
16x8/8x16 inter leaf or intra-rect-strip refusal before any 32-level 2:1
strip, so this capability is implemented but NOT proven -- see
lanes/inter4-r2.report.md.
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.
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-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.
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
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).
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.
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): 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.
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
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)Ahmet Kaan Gümüş · d471e3e
feat(av1): TX_4X8/TX_8X4 leaves below 8x8 -- rect scan, 32-position eob_pt, TX_8X8 coeff tables with a TX_4X4 tx_type row (gate still RED)

Lifts the "a HORZ/VERT partition below 8x8 (square-only transform)" refusal and
the two rect tx_type/tx-class capability claims: decode_leaf_rect8 codes the two
BLOCK_4X8/BLOCK_8X4 sub-blocks of an 8x8 (mode reads, chroma once at the group's
4x4 unit, dequant_and_inverse_typed_wh, Reach::of_rect off libaom's has_tr_4x8/
has_bl_8x4 rows, fill_lf_grid_rect, partition_context_lookup{31,30}/{30,31}), and
read_coeffs_rect now reads a real tx_type symbol including V_DCT/H_DCT (rect
mrow/mcol scans + 1D-class contexts + eob_pt_class1).

Table derivations: get_txsize_entropy_ctx(TX_4X8) = TX_8X8 (coefficient tables),
txsize_sqr_map[TX_4X8] = TX_4X4 (tx_type CDF row), txsize_log2_minus4 = 1
(32-position eob_pt, new from av1_default_eob_multi32_cdfs, both class rows).
Scan conversion (p%h)*w + p/h re-proved by regenerating SCAN_16X8/SCAN_8X16 first.

Gate a_real_aomenc_stream_with_a_sub8_rect_leaf_decodes_pixel_exact (16x16 8-bit,
128x16 --tile-columns=1, 16x16 10-bit; both orientations hard-asserted per attempt)
is RED: seed 303 mismatches luma from sample 0 with no decode error. See
lanes/tx4x8-r1.report.md for the ranked suspect list and the recipe findings
(--max-partition-size=8 does not stop 16x16-level rect strips).
test(av1): every real-aomenc gate pixel-compares each successful decode, counter or notAhmet Kaan Gümüş · 64df83b
test(av1): every real-aomenc gate pixel-compares each successful decode, counter or not

Class [[gate-skips-on-its-own-failure]] / counter-from-refused-stream: 13 gates
in stream.rs, after a SUCCESSFUL decode_stream, `continue`d to the next attempt
when their feature hit counter had not moved -- BEFORE any pixel compare -- so a
wrong-pixel decode in that bucket was silently swallowed. The counter now only
decides whether an attempt counts toward the firing total (`counted`); every
successful decode is compared against ffmpeg on all planes and all frames, and a
mismatch panics as before.

Gates fixed (counter): intra tx_select (tx_depth_hits), tx_select_inter_gate
(txfm_split), smooth-luma (smooth_luma_hits), smooth/paeth chroma
(smooth_uv_hits), directional chroma (directional_uv/angle_delta), golden
(non_last_ref_hits), single-ref gate x5 (ref_hits), reference_select
(comp_mode_hits), compound refs (skip_mode_hits), obmc (obmc_hits), obmc 8x8
(obmc_hits_8), temporal MV gate (tmv_hits), min8 tx_class1 (tx_class1_hits).

New `gate_buckets()` helper prints counted-exact / uncounted-exact /
named-refusals at every exit, summing to the attempts made. No recipe, seed,
counter or assertion was changed.

Measured (EC_AV1_REQUIRE_AOMENC=1, 26 tests + refusal_inventory + gate_coverage,
all pass): 43 previously-uncompared successful decodes now pixel-compared --
bwdref 17, obmc8x8 11, altref2 6, last3 2, altref 2, reference_select 2,
tx_class1 2, last2 1 -- all pixel-exact, no new defect exposed, no gate ignored.
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)Ahmet Kaan Gümüş · 7820978
fix(av1): SB-level 1:4 gate is GREEN on current main -- plus two main-red pins (nz_map test read the abandoned transposition, 1:4 coverage hole closed)

r1's red 16x64 gate was a STALE BASE, not a defect: rebasing lane-tx64x16 from
dc5553f onto main (5811ec5 -> 6d86d3a) turns
`a_real_aomenc_stream_with_a_superblock_level_1to4_partition_decodes_pixel_exact`
green with no change to the 1:4 wiring, and the r1 suite's "17 failures" drop to
2, neither of them this lane's:

- `decode::tests::nz_map_ctx_offset_tables_match_the_rect_rule` (RED on main,
  not on this branch's diff): the test read `NZ_MAP_CTX_OFFSET_32X64/_64X32` as
  `[col][row]` (lane-rectsplit r2's column-major premise, later disproved and
  reverted) while the tables and their only real consumer -- `base_ctx`'s
  `TxClass::TwoD` arm, decode.rs:1829 -- are display-major `[row][col]`. Read in
  the consumer's order; table content untouched, so every merged rect gate keeps
  the reading it is green under.
- `gate_coverage::tests::never_exercised_8bit_matches_the_gate_recipes`: this
  lane's gate passes `--enable-1to4-partitions=1` at 8 bit, so the 8-bit hole is
  retired; the 10-bit entry stays and now says so.

Rebase conflicts resolved keeping BOTH SB partition arms (main's AB arms from
part32 r4 and this lane's HORZ_4/VERT_4), with `reduced_tx_set` threaded into
the 1:4 `decode_block_rect64` calls; the unreachable `_` arm now refuses an
out-of-range partition value instead of the (now coded) 1:4 pair.
test(av1): gate coverage sees default-on tools and non---enable-* spellingsAhmet Kaan Gümüş · 32a6763
test(av1): gate coverage sees default-on tools and non---enable-* spellings

Third instance of tool-disabled-in-every-gate: the derivation read "--enable-
only, so tools aomenc has on by default and the gates pin off through another
spelling were invisible -- --enable-tx-size-search=0 (34/41 8-bit gates, the pin
behind lane-ab16's real-stream PANIC), --loopfilter-control=0, single-tile
--tile-columns/--tile-rows, --cpu-used.

DEFAULT_ON_TOOLS (10 entries: tool, aomenc spellings, default, on-rule) plus
NEVER_ON_8BIT (6) / NEVER_ON_10BIT (7) pinned per bit depth under the unchanged
'defaulted means unknown' rule, with the off/defaulted split in each reason.
ALIASES maps --superres-mode onto enable-superres, which retires the two
enable-superres entries covbd deferred. Print helper extended.

gate_coverage 9/9, refusal_inventory 3/3.