forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 652ab0d32fc4e9107b0ee9d9cdc8c9463e58f450

2026-09-02

merge(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares)Ahmet Kaan Gümüş · 652ab0d
merge(palette2): main 096f4b8 (rectsplit r4, tx64x16 SB 1:4, gmaffine, hidden-frame compares)

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

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

- nz_map_ctx_offset_tables_match_the_rect_rule fails IDENTICALLY at the merge base 06d856d
  (inherited from main: 44e8768 transposed the tables, the test still reads [col][row] while
  decode.rs:1804 reads [row][col]).
- a_real_aomenc_stream_with_filter_intra_on_a_horz_vert_strip_decodes_pixel_exact PASSES at
  06d856d and FAILS here (seed 46, luma (188,62) ours=116 ffmpeg=115, 2242 samples,
  bbox x135..191 y62..127) -- a regression this lane owns; main's gate is newer than the
  lane's rect-strip work, so the merge is the first time the two met.

2026-09-01

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).
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
fix(av1): a split-transform rect strip must still stamp its palette neighbour stateAhmet Kaan Gümüş · 1b23037
fix(av1): a split-transform rect strip must still stamp its palette neighbour state

decode_block_rect's split-transform arm (depth != 0) returns before the fn's
own tail, so record_palette_y_rect/record_palette_uv_rect never ran for that
block: the above/left palette arrays kept a DEAD block's size+colours, and the
next block's UV colour cache (Neighbours::palette_uv_cache) then hit a cached
entry with the wrong VALUE. Same cache length, so the same bits are read and
the entropy stream stays in sync -- the defect is silent, pixels only.

smptebars 192x192 cq45 (--enable-palette=1 --min/max-partition-size=16/64):
U 512 bytes wrong (x48..55, y0..63 chroma, max |d| 28), Y and V exact, and
--enable-palette=0 exact -> now 0 bytes off. On the lane this cell was hidden
behind the 32x32 partition value=7 refusal main has since lifted (class
refusal-hides-a-defect).

PALETTE_PRED set/take now go through set_palette_pred/take_palette_pred, which
trace every arm and consumption (with the caller's location and a stale flag)
under EC_DEBUG_PAL=1 -- 20 set sites vs 2 take sites were unauditable before.
Sweep: 4486 is the ONLY early return Ok in any decode_block* fn.

palette gate: 40/70 matched (was 17/70), 0 named refusals, palette_rect_hits=142.
screen-content gate: 47/70 matched, 31 through a split-tx palette block.
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.
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.
test(av1): every alt-ref gate now compares hidden frames -- decode-order compare at 13 sites + an --arnr-maxframes=0 second arm; finding: the gates' own recipes emit ~0 hidden frames (5 across 281 attempt-streams), the arm emits 1-3 each and all are pixel-exact; oracle rung 13 (EC_MODE_MV + EC_MODE_VAL stack=) lifted out of the hand-patched build tree into instrument-aom-oracle.shAhmet Kaan Gümüş · 33130e2
test(av1): every alt-ref gate now compares hidden frames -- decode-order compare at 13 sites + an --arnr-maxframes=0 second arm; finding: the gates' own recipes emit ~0 hidden frames (5 across 281 attempt-streams), the arm emits 1-3 each and all are pixel-exact; oracle rung 13 (EC_MODE_MV + EC_MODE_VAL stack=) lifted out of the hand-patched build tree into instrument-aom-oracle.sh
Merge main 06d856d into lane-palette2Ahmet Kaan Gümüş · 2b5b4fa
Merge main 06d856d into lane-palette2

decode.rs reconstruct_rect: keep the lane's PALETTE_PRED override wrapper, with
main's EC_DEBUG_EDGES trace moved inside the else after edges_rect.
refusal_inventory: main's list minus the screen-content palette string (this
lane lifted it), plus the lane's two palette strings; main's 1:4 SB string kept.
docs(inter8): r3 report -- 10-bit desync pinned to the leaf's post-mv mode info, tile-band audit, two ablated candidatesAhmet Kaan Gümüş · 1c02f8f
docs(inter8): r3 report -- 10-bit desync pinned to the leaf's post-mv mode info, tile-band audit, two ablated candidates

Suite on this branch: 270 passed / 0 failed / 25 ignored.
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.
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged treeAhmet Kaan Gümüş · 8c9548c
Merge branch 'lane-hbdgates': 10-bit gates for filter/smooth/paeth intra, intra-edge-filter, rect+ab partitions; ten_bit_tool_gate driver; gate_coverage drops ignored gates (279/0/24 on branch); 10-bit LR gate un-ignored on the merged tree

NEVER_EXERCISED_10BIT keeps the union of both removals: main's three
(restoration, dist-wtd-comp, global-motion, closed by lane-hbdinter and
lane-cwarp) and hbdgates' six (filter/smooth/paeth intra, intra-edge-filter,
rect and ab partitions). gate_bodies()/is_ten_bit() take hbdgates' versions
(ignored gates excluded, helper-built recipes recognised).

a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact was #[ignore]d on
the branch because hbdgates' base lacked main's 10-bit LR fix (SGR box-sum
scaling, Wiener clamp). On the merged tree it passes 16/16 attempts
pixel-exact, lr_hits=28, so the #[ignore] is removed.
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.
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band auditAhmet Kaan Gümüş · aba325a
feat(av1): localize the 10-bit 8x8-leaf desync to the leaf's post-mv mode info; tile-band audit

lane-inter8 r3.

Instrumentation: `EC_MODE_VAL` in `decode_inter_block8`'s compound arm,
byte-format-identical to the oracle's rung-4 line, plus (in the oracle tree,
not in scripts/) `EC_MODE_MV` right after libaom's `assign_mv` and `stack=` on
its `EC_MODE_VAL`. With those, the 10-bit twin's first divergent element is
pinned: on the compound 8x8 leaf mi=(4,14) the entry range (37004) and the
post-mv range (57308) are IDENTICAL to aomdec, as are mode=20, ref0=1, ref1=4,
mv0=(0,-9) and mv-stack size 2. The divergence is strictly in the leaf's
post-mv mode info, where the only symbol aomdec reads for a compound 8x8 leaf
is read_mb_interp_filter -- which decode_inter_block8 never reads (it hardcodes
Regular, decode.rs:11181). Class symbol-consumption-gap. lane-gmaffine r3 owns
that read (0b8cb54); a cherry-pick onto this branch conflicts, so it is left to
merge from there rather than duplicated.

8-bit ladder re-measured: 57/57. 10-bit: 41/57.

Tile audit (lane-sub8 verifier's class warning): every reader of the
mi-granular inter bands guards tile-relative (zero `mi_r > 0`/`mi_c > 0` hits in
decode.rs; the leaf uses tile_row0_mi/tile_col0_mi), start_tile resets the above
mi bands over the tile's own mi column span, start_row resets every left mi
band. The `--tile-columns=1` gate arm added to prove it at runtime is RED for an
unrelated reason (128x64 makes aomenc code an SB-level rect partition on the key
frame: lane-sbpart's arm) and is ignored with that reason spelled out.
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.
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect stripAhmet Kaan Gümüş · 9ad0588
Merge main f31a2c5 into lane-palette2, and predict palette per transform unit on a split-tx rect strip

Merge resolution: decode.rs `reconstruct_rect` keeps this lane's PALETTE_PRED
override and takes main's rect filter-intra call (`bw, bh`); refusal_inventory
loses the two strings both sides lifted ("a HORZ/VERT intra strip in a
screen-content frame", "a HORZ/VERT intra strip with a split transform").

The merge created a combination neither side had: a palette block on a rect
strip whose luma transform SPLITS. `decode_rect_split` (main, lane-rectsplit)
knew nothing about palette, so every transform unit predicted DC while the
coefficients were still read -- the entropy stream stayed in sync and the
block came out flat grey (smptebars 192x192 cq=35: luma x0..63 y0..127 wrong,
max |d| 52, rest of the frame exact). Palette prediction reads no edge pixels,
so a unit's window on the block's colour-mapped map IS its prediction:
RectStripModes now carries the Y map (sliced per unit) and the UV maps (the
chroma transform is never split), and the block bumps PALETTE_SPLIT_TX_HITS.

Both palette gates green: rect-palette 17/70 matched + 21 uncounted-exact,
palette_rect_hits=92; rect-screen-content 19/70 matched (14 through a
split-transform palette block) + 19 uncounted-exact. The r8 chroma-only U
mismatch (rgbtestsrc 128x128 cq=55) is gone -- main's deblocker chroma tx-size
fix (9b1297a) closed it.
feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset tableAhmet Kaan Gümüş · c936fdc
feat(av1): superblock-level HORZ/VERT strips with a split transform -- root cause was a transposed nz_map ctx offset table

r2's WIP (bf53652) built the SB-level per-transform-unit path and found the
real cause of r1's RED gate: av1_nz_map_ctx_offset is packed COLUMN-major, so
base_ctx read the TX_32X64/TX_64X32 offset tables [row][col] and desynced the
first SB-level strip with a coefficient below row 1. r3 ran the gates it never
reached: gate (b) 20/20 pixel-exact, SB-interior-TU delta 7; gates (a)/(c)
green; refusal_inventory + gate_coverage green. Relabelled gate (b)'s summary
line, which named the shared counter while asserting the SB-interior one.
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabledAhmet Kaan Gümüş · 576f72d
test(av1): 10-bit gates for the seven tools only an 8-bit gate ever enabled

His two films are yuv420p10le, so a tool gated only at 8 bits is ungated where
it matters (lane-covbd r1). Six of the seven holes close with real-aomenc
10-bit streams, pixel-exact vs ffmpeg on every shown frame:

- a_real_aomenc_10bit_intra_tools_stream_decodes_pixel_exact -- filter-intra,
  smooth-intra, paeth-intra, intra-edge-filter on one key frame, a separate
  hard-asserted counter each (6/6 attempts exact; filter_intra_hits=2
  smooth_pred_hits=16 paeth_pred_hits=3 intra_edge_filter_hits=22).
- a_real_aomenc_10bit_rect_and_ab_partitions_decode_pixel_exact -- the 8-bit
  free-partition/AB inter recipe at 10 bits (12/16 attempts exact, 4 named
  refusals; rect_partition_hits=32 partab_hits=4).
- a_real_aomenc_10bit_restoration_stream_decodes_pixel_exact -- WRITTEN AND
  FAILING, so #[ignore]d with the pin in the attribute: seed 42, frame 0,
  plane Y index 122, ours 351 vs ffmpeg 350, on a stream where lr_hits=2.
  That is a real 10-bit loop-restoration defect for a follow-on lane; the gate
  is not weakened and enable-restoration stays a listed 10-bit hole.

intra.rs gains per-tool counters (smooth_pred_hits / paeth_pred_hits /
intra_edge_filter_hits) because smooth_uv_hits lumps SMOOTH..=PAETH together
and would have let a paeth-only stream "prove" smooth intra.

ten_bit_tool_gate() samples every counter PER ATTEMPT and sums only over
attempts that decoded AND compared, so a refused stream can never contribute a
firing; a pixel mismatch panics with plane + first-diff index + both values +
the firing deltas, never SKIPs.

gate_coverage: gate_bodies() now drops #[ignore]d gates (an ignored gate
exercises nothing) and recognises gates whose --passes=1 lives in the shared
10-bit helper; 45 -> 49 gates, 4 -> 7 ten-bit, NEVER_EXERCISED_10BIT 19 -> 13.
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.
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.