forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 5a2f5efe3a0771ac7ca43d57bdf63c19a7b75ff6Filtered to crates/ec-av1/src/decode.rsClear filter

2026-09-02

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).
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.
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

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.
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
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.
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).
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.
feat(av1): 1:4 partitions at 64x64 (TX_64X16/TX_16X64 luma, 32x8/8x32 chroma) -- wiring lands, gate still REDAhmet Kaan Gümüş · 1dd6e1e
feat(av1): 1:4 partitions at 64x64 (TX_64X16/TX_16X64 luma, 32x8/8x32 chroma) -- wiring lands, gate still RED

PARTITION_HORZ_4/VERT_4 wired at the superblock level (four 64x16 / 16x64
strips, libaom's quarter_step + frame-edge break), decode_block_rect64
generalised from a hardcoded 32x32 luma corner to bw.min(32) x bh.min(32),
and the two new chroma scans SCAN_32X8/SCAN_8X32 transcribed from libaom's
column-major default_scan_32x8/8x32 (conversion validated by reproducing the
existing SCAN_16X8 first -- libaom's default_scan_16x8 literal equals this
repo's SCAN_8X16, so a naive copy installs the transpose).

No new CDF table is owed: av1_get_adjusted_tx_size maps TX_64X16->TX_32X16,
get_txsize_entropy_ctx and txsize_log2_minus4 agree for both pairs
(TX_64X16 == TX_32X16, TX_32X8 == TX_16X16), av1_scan_orders gives TX_64X16
default_scan_32x16, and av1_nz_map_ctx_offset[TX_64X16] IS
av1_nz_map_ctx_offset_32x16. The transform primitives were already generic
(charter premise was stale): inverse_transform_2d_typed_wh already zeroes
past 32 on a 64 axis, already skips the sqrt2 scale at 4:1, and
row_shift_wh already matched inv_shift_64x16/inv_shift_32x8.

The gate (a_real_aomenc_stream_with_a_superblock_level_1to4_partition_...)
FAILS: seed 73's four real 16x64 VERT_4 strips mismatch ffmpeg (10754 luma
samples, first at (64,56), across the deblock edge above the strips), stream
pinned at crates/ec-av1/fixtures/tx64x16-vert4-mismatch-seed73.obu. The
skip-case VERT_4 decodes pixel-exact. Refusal string narrowed but NOT proven
lifted -- see lanes/tx64x16-r1.report.md for the ruled-out list and the
pre-existing seed-55 defect this recipe also exposes.
fix(av1): SB-level HORZ/VERT split-transform strips -- transposed rect nz_map offset read AND an eob_pt chroma CDF transcribed from libaom's 1D-class rowAhmet Kaan Gümüş · fdfb8e3
fix(av1): SB-level HORZ/VERT split-transform strips -- transposed rect nz_map offset read AND an eob_pt chroma CDF transcribed from libaom's 1D-class row

Two defects, the first hiding the second behind a named refusal.

1. base_ctx read av1_nz_map_ctx_offset's rect tables [row][col]. libaom indexes
   them by coeff_idx = col * 32 + row (get_nz_map_ctx_from_stats decomposes
   col = coeff_idx >> bhl, bhl = log2 of the ADJUSTED height = 5 for TX_64X32
   and TX_32X64), so 32 consecutive flat entries are one COLUMN and the cdf.rs
   5x5 transcriptions are [col][row]. Reading them [row][col] is the transpose
   = the other shape's rule with 11 and 16 swapped. Now states libaom's
   generating rule (txb_common.h:199-209) directly, as base_ctx_rect already
   did, with a unit test over the whole 5x5 domain of both shapes.

2. EOB_PT_512_CHROMA came from av1_default_eob_multi512_cdfs[q][plane][1] --
   the eob_multi_ctx = 1 (V_DCT/H_DCT) row, flat and q-independent -- not the
   2D row, which has the usual four q-context variants. The first real 32x16
   chroma transform read eob_pt group 8 (eob 103) where aomdec read group 3
   (eob 3) at identical msac range. This is what made seed 43 of the merged SB
   HORZ/VERT gate RED in r3 once (1) was fixed; before that the stream exited
   through a refusal 13 elements earlier and the gate scored it as a pass.

Refusal lifted: "a superblock-level HORZ/VERT strip with a split transform
(per-unit rect prediction is not ported)" -- gate (b)
a_real_aomenc_stream_with_a_split_transform_superblock_strip_decodes_pixel_exact
un-ignored and green with its per-attempt SB-interior-TU counter.

Gates: (a)(b)(c) + merged SB HORZ/VERT + filter-intra strip + inventory/coverage
green; full lib suite 272 passed / 0 failed / 23 ignored. Third leg (lane-tx64x16's
--min-partition-size=16 --enable-1to4-partitions=1 sweep, seeds 42..81): 33 exact,
7 named refusals, 0 mismatches -- seed 55's 3944 wrong luma samples are gone. The
ReelB mid-film extract now advances past this refusal to PARTITION_HORZ_4.
fix(av1): eob_pt class-1 CDF row existed only for two luma sizes -- every chroma (and 16x16+) 1D-class transform read the 2D tableAhmet Kaan Gümüş · d1963fa
fix(av1): eob_pt class-1 CDF row existed only for two luma sizes -- every chroma (and 16x16+) 1D-class transform read the 2D table

lane-gmaffine r4. libaom's av1_default_eob_multi*_cdfs are
[q][PLANE_TYPES][2], the second index being eob_multi_ctx = (tx_class ==
TX_CLASS_2D) ? 0 : 1. This crate carried that class-1 row for
eob_pt_16_luma and eob_pt_64_luma only; 14 of the 16 TxbSet arms passed
eob_pt_class1: None and silently read the 2D row.

It bites on every INTER block's chroma, because chroma never codes a
tx_type symbol -- it inherits the colocated luma type verbatim
(av1_get_tx_type, blockd.h:1291). The two 8x8-leaf motion gates code
H_ADST luma, so their 4x4 chroma is class 1: right eob value, wrong
interval, desync one symbol later, surfacing as bogus partition refusals
('an inter partition below 16x16 other than SPLIT', 'a partition below
8x8').

Measured: EC_TRACE_COEFF ladder vs instrumented aomdec on the globalmv
gate's own 8-bit cq32 stream -- first divergent element is the chroma
4x4 eob of leaf mi=(6,4), both entering at rng=37748 and decoding
eob=16, ours leaving at 35080 vs aomdec's 54536. All four gate streams
now decode all 24 frames.

Also: warp is per PLANE and libaom's av1_init_warp_params bails out at
block_width/height < 8, so an 8x8 leaf's 4x4 chroma is predicted
translationally even when its luma warps -- guarded at both warp sites.

Both 8x8 motion gates remain RED on PIXELS now, not refusals: luma
byte-exact on all 24 frames, U/V off by +-1..3 in the three 4x4 chroma
blocks whose luma tx_type is the 1D-class H_ADST (leaves mi (6,4),
(8,4), (10,4), none of them warped or global). Suite 271 passed, 2
failed, 24 ignored.
fix(av1): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row resetAhmet Kaan Gümüş · 91b5f76
fix(av1): the mi-granular mode maps are per TILE -- tile-relative guards + per-tile/row reset

sub8_mode_col/row and uv_mode_col/row were read with a frame-relative
availability guard (mi_r > 0 / mi_c > 0) and never cleared, so the first
block of a second tile column/row read the previous tile's recorded
(row, mode) entry as its own neighbour: wrong intra-mode context and wrong
chroma edge-filter type. Verifier repro (128x64, --tile-columns=1, seeds
207/228) mismatched 221 and 158 bytes, every one at x>=64; both streams now
decode pixel-exact. decode_leaf_rect also records its own span in those maps
(the caller patched only the coarse 16x16 slot, so a neighbour of the top
strip read the bottom strip's mode).

Gate: three arms (single tile, --tile-columns=1, --tile-rows=1), tile_hits
delta >= 2 asserted on the tile arms, the Err arm now panics on any decode
error that is not a named "unsupported: " refusal, and the lavfi noise
fixture carries all_seed so (seed, cq) names one exact stream. Reverting the
guard+reset hunks makes that gate FAIL (U plane, seed=139 cq=12).
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restoredAhmet Kaan Gümüş · 429edc6
fix(av1): revert r2's nz_map transposition -- it regressed the merged SB HORZ/VERT partition gate; SB split-tx refusal restored

r3 ran the gates r2 never reached. r2's claimed root cause (base_ctx reading
the rect av1_nz_map_ctx_offset tables [row][col] instead of [col][row]) turns
the split-transform SB gate green at the cost of turning the MERGED gate
a_real_aomenc_stream_with_a_superblock_level_horz_vert_partition_decodes_pixel_exact
RED at seed 43. All four index/shape combinations measured; two fail both. The
real unknown is the orientation of (row,col) out of the square 32x32-corner
scan vs libaom's column-major coeff_idx, so the SB-level split-transform
refusal is restored and gate (b) is #[ignore]d again with that reason.

Kept from r2: per-attempt gate counters (no vacuous pass from a stream that
later refuses), the SB-interior-TU counter gate (b) asserts, the chroma shape
guard justification, gate (c)'s corrected recipe comment, the nz_map table
packing pin, and the EC_NZOFF_DUMP / decode_probe dump instruments.
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granularAhmet Kaan Gümüş · 7250c10
fix(av1): 8x8 leaf read its single_ref and interp-filter neighbour contexts at SUB(16px) indices after the bands went mi-granular

lane-gmaffine r3, on top of the lane-inter8 merge. `decode_inter_block8`
still indexed `neighbours.above_ref/above_ref1/above_filter` with `c` and
`left_*` with `r` -- `outer_at`, the enclosing 16x16's SUB(16px) coordinates
-- while every other read in the same function had moved to `cmi`/`rmi` (mi,
4px) with lane-inter8 r2's mi-granular bands. Wrong units, so a leaf's
`read_single_ref` p1..p6 contexts and its `switchable_interp` neighbour rows
came from an unrelated 16px column/row.

Measured on the gate's own recipe (--min/--max-partition-size=8, gm and warp
both off, 8-bit cq32): aomdec's EC_MODE_VAL ladder and ours agree on mode, mv,
ref and range for the 16 leaves of the first 32x32 up to (6,4); leaf (6,6) had
identical mode/mv/stack but post-mode-info range 41953 vs aomdec's 38345 --
the divergence sat after the mv, in the filter/ref tail. With mi indices that
leaf and the next 15 now match to the range.

Instrument kept: `EC_MODE_VAL8` under EC_TRACE_MODE, one line per 8x8 leaf
(newmv/globalmv/ref0/mv/stack/rng), diffable against aomdec's EC_MODE_VAL.

Both 8x8 motion gates are still RED: the next divergence is leaf mi=(0,14) of
the same frame, where aomdec reads NEWMV (mv 0,-12) and we read not-new from a
3-entry stack.
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tablesAhmet Kaan Gümüş · 1f9bde4
fix(av1): the 16x16-level PARTITION_VERT_B arm missed the vert availability tables

decode.rs:7008 visits its two 8x8 squares TR then BR, out of raster order, so
like the 32/64-level AB arms r5 fixed it must read libaom's has_tr_vert_8x8 /
has_bl_vert_8x8 (get_has_tr_table / get_has_bl_table take the partition type).
has_bl_8x8 is 0 where has_bl_vert_8x8 is 1 at all 16 even-row/odd-col 8x8 slots
-- exactly the TR square -- so its below_left was wrongly false for the
directional modes that read below-left (angle > 180: D203_PRED, D157_PRED with a
positive delta). Class swept: this was the only remaining unguarded VERT_A/_B
site at any level, intra or inter.

Gated by a table pin (encode.rs) rather than a stream: a bounded 112-encode
aomenc sweep produced no decodable 16-level VERT_B -- every stream that
partitions that small first hits the still-refused HORZ_A/HORZ_B/VERT_A-below-16
or coded-rect-strip-below-16 arms. Counts in lanes/part32-r6.report.md.

EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib: 270 passed, 0 failed.
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduceAhmet Kaan Gümüş · 213865e
test(av1): gate the square intra path with tx-size search ON and real chroma; the chartered square-path chroma defect does not reproduce

lane-rectsplit r1 recorded, in a comment on two live gates, that a plain
SQUARE-partition intra key frame with real chroma and aomenc's tx-size search
left at its default (ON) mismatches on the U plane, and guarded both gates with
`-vf hue=s=0`. Re-measured at HEAD, that is false: seeds 42..61 at cq 45 and at
cq 20, plus testsrc2/mandelbrot/smptebars/rgbtestsrc at cq 12/32, with and
without CFL and filter intra, all decode pixel-exact against ffmpeg on all three
planes (`--enable-rect-partitions=0`, the charter's own recipe). Seed 42 does
fire the pairing the defect was attributed to -- 6 blocks with `tx_depth != 0`
and uv_modes 0/1/2/5/11 -- and still matches.

So this ships the gate that was missing rather than a fix:
`a_real_aomenc_intra_stream_with_tx_size_search_and_chroma_decodes_pixel_exact`
sweeps 10 8-bit square streams (cq 20/40) plus one 10-bit stream of the same
recipe (his films are yuv420p10le; sequence-header bit_depth asserted before any
pixel compare), and hard-asserts a new `sq_chroma_tx_hits()` counter -- square
blocks whose luma transform split under a non-DC `uv_mode` -- summed only over
attempts that decoded AND pixel-compared, so a refusing stream cannot lend it
firings. 11/11 exact, 23 firing blocks 8-bit + 2 10-bit, 0 refusals.

The stale `hue=s=0` guard is dropped from both live rect gates (and the ignored
SB-strip one); both stay green with real chroma, so they now cover chroma too.
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour arrayAhmet Kaan Gümüş · fbf038b
fix(av1): every kf_y_mode reader takes the mi-exact intra mode neighbour, not just the strip path -- a 32x16 strip whose left neighbour was a 16x8 rect leaf read the stale coarse 16x16 slot and picked a different CDF row for the same mode value (whole bottom-right quadrant wrong); mi-exact map now tile-guarded (mi_r > tile_row0_mi) and reset in start_tile/start_row like every other neighbour array
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BITAhmet Kaan Gümüş · b933555
Merge branch 'lane-hbdinter': 10-bit loop restoration (SGR box sums scaled by bd-8, wiener clamp at the bd bound), combine_compound two-step rounding; 10-bit inter+LR gate (verifier PASS, 271/0/23); restoration leaves NEVER_EXERCISED_10BIT

Also drops enable-dist-wtd-comp and enable-global-motion from
NEVER_EXERCISED_10BIT: lane-cwarp's 10-bit compound global-warp gate passes
=1 for both, so never_exercised_10bit_matches_the_gate_recipes was already
failing at 9c35ecc. gate_coverage is green again after this commit.

Conflict resolutions: warp.rs took main's (cwarp warp_inner/warp_affine_compound
is a superset of hbdinter's const BD -> bit_depth()); mc.rs kept hbdinter's
single (bd-8) diffwtd_mask round plus its combine_compound two-step and
inter_pred_hits counter; stream.rs kept main's encode_10bit_gradients helper
and cwarp gates plus hbdinter's a_real_aomenc_10bit_inter_sequence gate.
merge lane-inter8 ae69b25 into lane-gmaffineAhmet Kaan Gümüş · cadfff7
merge lane-inter8 ae69b25 into lane-gmaffine

Conflict resolution (both sides kept, duplicates unified):
- obmc chroma-above skip: lane-inter8's explicit BLOCK_4X4/4X8/8X4 match list
  (correct for 8x32/32x8, where lane-gmaffine's `w>=16 && h>=16` would have
  skipped chroma libaom blends).
- OBMC neighbour filter: read from lane-inter8's now mi-granular
  `Neighbours::above_filter/left_filter`; lane-gmaffine's duplicate
  `MiGrid::filters` per-mi record (plus `grid_or_slot`) deleted as the same
  field recorded twice.
- `decode_inter_block8`: one `global_motion` param (lane-gmaffine's) plus
  lane-inter8's `sign_bias_table`/`tpl_frame`; single `gm_table` build at the
  top; returns `(.., leaf_filter_syms, leaf_refs)`.
- the leaf's temporal-mv `cur_offset_0` keys on the leaf's OWN reference
  (lane-inter8 hardcoded LAST because it refused every other ref).
- per-leaf `record_inter_rect_mi` stamp keeps lane-gmaffine's REAL filter
  symbols instead of the `[3, 3]` intra sentinel; the coarse whole-16x16
  `record_inter` and its last_filter/last_ref bookkeeping are gone.
- the interior 16x16 SPLIT branch is lane-inter8's restructure (part16 read
  once, one shared leaf loop); refusal strings follow it.
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdfAhmet Kaan Gümüş · cd8ea46
fix(av1): a warp-capable frame under a scaled reference read the 3-symbol motion_mode_cdf where libaom reads the 2-symbol obmc_cdf

libaom motion_mode_allowed (blockd.h:1484) drops WARPED_CAUSAL eligibility when
av1_is_scaled(block_ref_scale_factors[0]), so a superres block reads obmc_cdf.
We read motion_mode_cdf: the decoded value stayed SIMPLE_TRANSLATION, so nothing
errored -- the stream decoded "OK: 24 frames" with quietly wrong pixels from the
diverged coder state (frame 1: 1342 luma pixels off, growing to |d|=18 by frame
23). The existing warp refusal could not see it (warp_params is None there).

Gate: the superres gate now runs --enable-warped-motion=1 by DEFAULT and
hard-asserts scaled_warp_suppressed_hits() > 0 -- 12/12 pixel-exact, 25 blocks
took the obmc_cdf arm only because of this fix. decode_probe gains EC_PROBE_OUT
(raw yuv420p dump), the instrument that located it. Sibling site in
decode_inter_block8 is unreachable (refused earlier) and carries a note.
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)Ahmet Kaan Gümüş · cbf9f54
fix(av1): mi-granular inter neighbour bands + three 8x8-leaf context defects (8-bit 8x8-split gate GREEN)

lane-inter8 r2. `Neighbours`' inter side bands (skip, skip_mode, is_inter,
ref0/ref1, comp_group_idx, compound_idx, interp filter) were SUB(16px)-granular,
so all four 8x8 leaves of a split 16x16 shared one slot. They are now mi(4px)
granular (`record_inter_rect_mi` / `record_compound_ctx_rect_mi`, readers index
by mi), which makes the r1 `prev_leaves` sibling-override hack unnecessary --
each leaf stamps its own 2x2-mi span right after it decodes.

Two further defects that the granularity change exposed, both class
context-read-from-one-cell:

1. `decode_inter_block8`'s COMPOUND arm `return`ed before the end-of-function
   `record_mi`/`fill_lf_grid` the single-ref arm falls through to. Every leaf in
   the gate's stream is compound, so a split 16x16 left `above_side_mi` at 16:
   the 16x16 below it computed partition ctx 0 instead of 1 and read
   PARTITION_NONE where aomdec read PARTITION_SPLIT.
2. `get_comp_group_idx_context`/`get_comp_index_context` took the leaf's
   ENCLOSING 16x16 corner (`outer_at`); they now take mi coordinates and the
   leaf passes its own.

Also threaded the frame's temporal mv field (`tpl_frame`) into the leaf's two mv
stacks, which passed `None` while `decode_inter_block` one level up always
passed it (class parsed-then-discarded). Alignment only: it did not move this
stream's ladder (no `use_ref_frame_mvs` here).

Gate a_real_aomenc_inter_sequence_with_an_8x8_leaf_split_decodes_pixel_exact is
GREEN and un-ignored (4 frames pixel-exact vs ffmpeg, interior-split counter
asserted). aomdec EC_MODE ladder 42/57 -> 57/57. The 10-bit twin stays ignored:
it dies on "an INTER 32x32 partition type ... (value=9)", and `EC_TRACE=1
aomdec` proves that stream contains no value=9 anywhere -- our own desync
(class refusal-from-own-desync), disproving the r1 ledger line that blamed
aomenc for emitting PARTITION_VERT_4.
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)Ahmet Kaan Gümüş · 9235c22
Merge branch 'lane-part32': SB-level HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at 64x64 gated pixel-exact (has_tr_vert/has_bl_vert tables for VERT_A/B visit order); refusal narrowed to HORZ_4/VERT_4 (verifier PASS, 269/0/24)

Merge fixup: lane-part32's new decode_block_rect/decode_block_rect64 call sites
(4 AB arms + the strip64! macro) needed HEAD's added `reduced_tx_set` argument.
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406)Ahmet Kaan Gümüş · ae5d89d
fix(av1): rect leaves read has_tr/has_bl from the wrong block-size table; mi-exact intra mode neighbours (cherry-pick lane-sub8 1841406)

Two defects, both on the sub-16x16 rect strip path:

1. `Reach::of_rect` looked up `HAS_TOP_RIGHT_RECT`/`HAS_BOTTOM_LEFT_RECT`
   indexed by `bw == 16` -- tables transcribed for the 32x16/16x32 strips
   only. A 16x8 block therefore read has_tr_16x32/has_bl_16x32 (4 bytes)
   where libaom reads has_tr_16x8/has_bl_16x8 (16 bytes), and an 8x16 read
   the 32x16 rows. `top_right_rect`/`bottom_left_rect` are now libaom
   `has_top_right`/`has_bottom_left` verbatim at block granularity, with the
   16x8/8x16 tables added. Symptom: a D203 16x8 strip's prediction was exact
   until the ray first reads BELOW its own height, then diverged (first diff
   at (44,18) of a 64x64 key frame, growing to the whole lower-right frame).

2. Cherry-picked lane-sub8 1841406's mi-granular intra-mode neighbour map
   (`sub8_mode_col/row`, `record_mode_mi`, `mode_above_mi`/`mode_left_mi`,
   plus `has_tr_4x4`/`has_bl_4x4` in encode.rs); the split-4x4 hunks are
   dropped, this branch has no `decode_leaf_split4`. `decode_leaf_rect` now
   reads through that map and records its own bw x bh span, which fixes the
   wrong `kf_y_mode` CDF row r3 located at leaf mi=(4,12).

Gate `a_real_aomenc_stream_with_a_coded_rect_strip_below_16x16_decodes_pixel_exact`
is green: pixel-exact vs ffmpeg, rect_leaf_coeff_hits=8 (6 non-skip 16x8 +
1 non-skip 8x16 luma transforms). Its recipe moved to mandelbrot start_x=-0.6
cq16 with --enable-filter-intra=0 (filter intra on a strip is a separate,
still-refused predictor).
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`Ahmet Kaan Gümüş · f034839
fix(av1): chroma intra edge-filter type reads the chroma neighbour's uv_mode, not `false`

`get_intra_edge_filter_type` (reconintra.c:974) picks the directional
edge-filter strength/upsample table from the CHROMA neighbours' `uv_mode`
for planes 1/2; `decode_leaf8` and `decode_leaf_split4` passed a hardcoded
`false` for every chroma reconstruct/read_plane, so a directional chroma
block next to a smooth-uv_mode one filtered its above edge with kernel
{0,4,8,4,0} (strength 1) where libaom uses {0,5,6,5,0} (strength 2).

The coarse SUB-grid `above_uv_mode`/`left_uv_mode` slots cannot name that
neighbour once a 16x16 is split into 8x8 leaves (the leaf above writes the
same row slot the block to the left owns), so this adds the `uv_mode` twin
of `sub8_mode_col`/`sub8_mode_row` -- `uv_mode_col`/`uv_mode_row`, written
by `record_rect`, `record_split_luma`, `decode_leaf8` and
`decode_leaf_split4`, read mi-exact by `smooth_uv_neighbour` with the
coarse slot as fallback.

lane-sub8's gate `a_real_aomenc_stream_with_a_sub8_split_decodes_pixel_exact`
goes RED (4 chroma pixels, U/V row 20 cols 18-19, |delta| <= 3) -> GREEN
(4 firing + pixel-exact runs). Also drops the stale
"a partition below 16x16 other than a clean split" capability claim, which
r4's fixes removed from the decode path (refusal_inventory RED -> green).
fix(av1): one-sided chroma OBMC below 16px + mi-granular OBMC neighbour filtersAhmet Kaan Gümüş · 12bec51
fix(av1): one-sided chroma OBMC below 16px + mi-granular OBMC neighbour filters

libaom av1_skip_u4x4_pred_in_obmc (reconinter.c:820, DISABLE_CHROMA_U8X8_OBMC 0):
when a block's chroma plane size is 4x4/4x8/8x4 -- any luma dimension below 16
under 4:2:0 -- OBMC is ONE-SIDED on chroma: the ABOVE pass skips U/V entirely,
the LEFT pass still blends them. We blended chroma on both passes, which is
exactly the residual that left a_real_aomenc_stream_with_obmc_8x8's V plane off
by ~2 on seed 53 (luma and U happened to match). That gate is now GREEN
pixel-exact over 24 frames with 4 real 8x8 OBMC leaves, and no longer degrades
"never fired" into a SKIP -- it panics (gate-skips-on-its-own-failure).

Second defect, a hard PANIC: obmc_blend took the neighbour's interp filter from
the 16px-granular `Neighbours` slot, which is only written after a whole 16x16
finishes. An 8x8 leaf OBMC-blending its own SIBLING leaf therefore read the
`[3, 3]` "intra/unset" sentinel and `from_switchable_symbol` panicked (this was
the warp gate's crash -- NOT an entropy desync). MiGrid now carries mi-granular
filter symbols (libaom uses the neighbour mbmi's own interp_filters), with the
coarse slot kept as fallback. decode_inter_block8 also hands its real filter
symbols and reference back to the caller, which recorded `[3, 3]` and a
hardcoded LAST_FRAME for every 8x8-split 16x16 until now (also fixes the leaf's
loop-filter ref id).

Gates a_real_globalmv_8x8_leaf / a_real_warped_causal_8x8_leaf stay RED: both
now die on partition/angle-delta refusals for tools explicitly DISABLED on the
aomenc command line, i.e. an entropy desync in the 8x8-leaf path itself
(lane-inter8's cluster), not in the motion code. Recipe knobs
EC_8X8_MINPART/EC_8X8_MAXPART added for the next round's search.
fix(av1): 10-bit loop restoration, diffwtd mask and warp all ran with 8-bit constantsAhmet Kaan Gümüş · 42752a0
fix(av1): 10-bit loop restoration, diffwtd mask and warp all ran with 8-bit constants

lane-hbdinter r1. The charter's premise (a 10-bit inter frame 2 mismatch)
did NOT reproduce with the tool-restricted inter recipe; widening the
recipe to real loop restoration did, and the defect turned out to be
bit-depth-wide, not inter-specific -- it fires on the KEY frame too, and
lane-hbd's 10-bit gate simply had `--enable-restoration=0`.

Four sites carried hardcoded 8-bit constants, all checked against the
oracle source (~/.cache/aom-oracle/src):

- restoration.rs `compute_ab`: libaom `restoration.c:660-662` scales the
  box sums back to the 8-bit range before forming `p`
  (`a = Round2(A, 2*(bd-8))`, `b = Round2(B, bd-8)`; `B[k]` keeps the raw
  sum). We never did -> wrong `z`, wrong blend factor at 10-bit. This is
  the site the gate attributes the mismatch to (ablation below).
- restoration.rs `apply_wiener_stripe`: the horizontal intermediate was
  clamped to a fixed `[0, 8191]`, i.e. `WIENER_CLAMP_LIMIT(3, bd=8) - 1`
  (`convolve.h:43`), in this crate's *unbiased* domain. Correct bounds are
  the libaom limit shifted down by its `1 << (bd + 3)` bias. At 8-bit
  neither end is reachable (which is why every 8-bit gate passed); at
  10-bit the top of the range is 16368, so most Wiener intermediates were
  truncated.
- mc.rs `diffwtd_mask`: libaom `reconinter.c:307` rounds the CONV_BUF
  difference by `INTER_POST_ROUND + (bd - 8)`; we used the constant 4.
- warp.rs `warp_affine`: `const BD: i32 = 8` fed both offset terms and the
  final `sum - (1<<(bd-1)) - (1<<bd)` (tip from lane-gmaffine, confirmed
  against `av1_warp_affine_c`).

Non-compound sub-pel MC needs no change: libaom only shifts round_0/round_1
when `bd + FILTER_BITS - round_0 + 2 > 16` (`convolve.h:83`), which is
12-bit only -- 10-bit keeps 3/11 and 3/7.

Gate: `a_real_aomenc_10bit_inter_sequence_decodes_pixel_exact` (stream.rs)
-- real aomenc yuv420p10le, 128x64, 16 frames, forward P frames, deblock +
loop restoration on, hard-asserting the new `mc::inter_pred_hits` counter,
`deblock_hits`, and a non-RESTORE_NONE LR filter, comparing all 16 frames
against ffmpeg's own 10-bit decode. Green with the fix; reverting only the
`compute_ab` scaling turns it red at frame 0 (V plane, sample 52: ours 289,
ffmpeg 288).

cargo test -p ec-av1 --lib: 268 passed, 0 failed, 23 ignored (664s).