forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on b4cddf36048d2f3adcc6bc2d9359c155502479e1

2026-09-02

Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect stripsAhmet Kaan Gümüş · b4cddf3
Merge branch 'lane-kf900' (cbfe32d): skipped-leaf tx grid, chroma-reference neighbour snap, palette and intrabc on rect strips

- skipped 8x8 intra leaves publish their BLOCK side (not the resolved TX_4X4) to
  the next block's tx-size context; new 10-bit key-frame fixture reelb_kf900.obu gates it
  luma-exact with a >=15 hit assert.
- smooth_uv_neighbour now snaps to the chroma REFERENCE mi (mi & !1) like libaom's
  set_mi_row_col, which subsumes main's per-call pair_mi fix at the 16x4/4x16 arm.
  Merge resolution: the RECT4_16_UV_PAIR_FILT_HITS witness would have gone
  tautologically 0 (both sides snap to the same mi), so it now compares the snapped
  answer against a new smooth_uv_neighbour_unsnapped -- it measures what the snap
  buys, and the 16-level 1:4 gate keeps its hard assert.
- 10-bit palette literals, palette + use_intrabc on 1:4 / sub-16 rect strips.

Gates: skipped_8x8_intra_leaves (1), palette (7), intrabc (1), 1to4 (6), smooth (3),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-sqdrift' (7d498c0): square-only inter sequence with a 64x64 intra superblock gateAhmet Kaan Gümüş · 566a617
Merge branch 'lane-sqdrift' (7d498c0): square-only inter sequence with a 64x64 intra superblock gate

Root cause (the no-CfL uv_mode alphabet on 64-axis blocks) landed on main via
lane-sbrect10 (9f1f108); this lane confirmed it by ablation and contributes the
square-only gate plus two trace rungs (EC_IIS intra-in-inter symbol trace,
pre_rng on the partition_w64 TRACE line).

Gates: a_real_aomenc_square_only_inter_sequence_with_a_64x64_intra_superblock_decodes_pixel_exact,
a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet -- both pass.
Merge branch 'lane-sbrect10' (9f1f108): uv_mode reads the no-CfL alphabet when the block size excludes CfLAhmet Kaan Gümüş · b6adf58
Merge branch 'lane-sbrect10' (9f1f108): uv_mode reads the no-CfL alphabet when the block size excludes CfL

A 64x64 intra block inside an inter frame read uv_mode off the 14-symbol
CfL-allowed alphabet; libaom's is_cfl_allowed caps CfL at 32x32, so the value
matched (DC_PRED) while the interval narrowing did not and the tile desynced
from that block on (class wrong-alphabet-same-value). Gated at every uv_mode
read site (read_intra_mode, read_intra_mode_rect, intra-in-inter) with the
NOCFL_UV_MODE_HITS counter proving the shape fired, plus the compound MV
stack's global-motion tail slots. The superblock rect-strip gate's 10-bit arm
runs again.

Gate: a_real_aomenc_inter_frame_with_a_64x64_intra_block_reads_the_no_cfl_uv_alphabet
Suite: 384 passed / 0 failed / 33 ignored.
Merge branch 'lane-inter16ab' (af7de9f): 16x16-level inter AB partitionsAhmet Kaan Gümüş · 5e512e0
Merge branch 'lane-inter16ab' (af7de9f): 16x16-level inter AB partitions

The inter path codes HORZ_A/HORZ_B/VERT_A/VERT_B at the 16x16 level through
the inter_leaf8! macro (two 8x8 inter leaves plus one 16x8/8x16 strip), so the
old refusal narrows to the 1:4 pair (HORZ_4/VERT_4), which still needs the
sub-8 inter chroma-pair path. Merged alongside lane-r14's rectangular var-tx
leaves; the only conflict was the decode_probe counter block, kept both.

Gate: a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact
Suite: 383 passed / 0 failed / 33 ignored.
fix(av1): rect intra strips never read use_intrabc -- every screen-content key frame desynced at its first symbolAhmet Kaan Gümüş · 0bdf223
fix(av1): rect intra strips never read use_intrabc -- every screen-content key frame desynced at its first symbol

av1_allow_intrabc is a FRAME-level test (libaom decodemv.c:892,
read_intra_frame_mode_info): on an intra frame whose header sets
allow_intrabc, every intra block reads a use_intrabc symbol right after
skip/cdef/delta_q and before mbmi->mode. There is no block-shape term, but
read_intra_mode_rect -- the reader for every HORZ/VERT/1:4 rect strip --
never read it, so the arithmetic decoder desynced at the FIRST mode symbol
of the first rect block of any --tune-content=screen key frame.

Measured on an 8-bit 256x192 aomenc key frame (cq59, cpu-used 0, rect +
1:4 partitions, tune-content=screen): the decode reported OK and all 49152
luma samples differed from ffmpeg's. Cross-decoder range ladder: entry rng
32874 identical, our y-mode read gave 62696, the oracle 58628 -- exactly
the value obtained by consuming one default intrabc symbol (rng 30694,
normalised 61388) before the kf_y_mode read.

The flag is now consumed in read_intra_mode_rect, taking allow_intrabc from
the per-frame INTRABC_MI_GRID (Some only when the header set it), so no new
plumbing. Reconstruction of an intrabc block at a rect shape is not ported,
so a firing symbol refuses by name (inventory 45 -> 46).

Gate: a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips
(3 real-aomenc 8-bit arms) -- 147 rect-strip use_intrabc symbols read,
1 named refusal, 1 frame compared pixel-exact.
feat(av1): palette reconstruction on 1:4 and sub-16 rect intra stripsAhmet Kaan Gümüş · 242e934
feat(av1): palette reconstruction on 1:4 and sub-16 rect intra strips

Lifts two refusals: "a 1:4 rect strip that actually uses a palette
(reconstruction is not ported at this shape)" and "a palette block on a
HORZ/VERT intra strip below 16x16 (reconstruction not ported)".

decode_block_rect4 (32x8/8x32) and decode_rect4_16 (16x4/4x16) passed
palette: None into read_intra_mode_rect, so they read palette_y_mode off
CDF row 0 and every colour off an EMPTY cache, then refused on use. They
now pass the block's real palette mode ctx and merged above/left colour
cache and reconstruct through set_palette_pred (whole block, per split
transform unit, and the pair's chroma), as decode_block_rect already did
one aspect ratio up; decode_leaf_rect (16x8/8x16) gets the same.

Three further defects found on the way:

* the chroma colour-index map is av1_get_plane_block_size (ss_size_lookup)
  -- BLOCK_16X4 -> BLOCK_8X4, BLOCK_4X16 -> BLOCK_4X8 -- not bw/2 x bh/2,
  so a 1:4 strip's chroma palette read half its symbols;
* av1_get_palette_cache's superblock-top-row exclusion (pred_common.c:76)
  is keyed on the block's own pixel row, not the 16-px cell, so a strip
  8 px into the cell dropped its real above neighbour
  (palette_ctx_and_cache_mi / palette_uv_cache_mi);
* the coarse cell arrays alias all four strips of a HORZ_4 onto one entry,
  so record_strip_palette writes the split axis only until the closing
  strip -- stamping both handed strip i+1 strip i's colours as its left
  (above) neighbour, same bit count, wrong pixels.

Gate: stream.rs::a_real_aomenc_rect_strip_palette_decodes_pixel_exact, 3
arms x {8,10} bit. Arm 0 reproduces the r3 pinned 10-bit testsrc2 256x192
cq59 cpu0 stream byte for byte (md5 e5f033d8fe34e4418d8cca3ac9d2b595),
which stopped on the first refusal at r3 and now decodes whole-frame
pixel-exact against ffmpeg on every plane of every decode-order frame.
Hard asserts a rect-strip palette counter delta and
out_of_scope_mismatch == 0; a named "unsupported" refusal is counted and
printed, never a pass.
Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf codingAhmet Kaan Gümüş · fcf808d
Merge branch 'lane-r14' (b86eb38): general sub_tx_size_map and (row,col,tw,th) var-tx leaves, plus rectangular inter leaf coding

Var-tx split now recurses with a general sub_tx_size_map and codes leaves by
(row, col, tx_w, tx_h) instead of a square-only shape, so a split transform on
a 1:4 inter strip with a 64-px axis decodes instead of refusing. Refusal
dropped from refusal_inventory.rs; gate_coverage drops enable-tx64 from the
never-exercised set.

Gate: real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal
Suite: 382 passed / 0 failed / 33 ignored.
test(av1): pin the square-only 64x64 intra superblock inside an inter frameAhmet Kaan Gümüş · f0eee74
test(av1): pin the square-only 64x64 intra superblock inside an inter frame

With rect partitions off the encoder can hand a whole 64x64 superblock of an
inter frame to an intra block. That block's uv_mode must come off the 13-symbol
no-CFL alphabet (is_cfl_allowed caps CFL at 32x32); reading the 14-symbol CFL
one gave the same DC_PRED value with the wrong interval and desynced the tile
from that block on -- silently, since the decoder then read a phantom refusal
out of the diverged stream. Gate: real aomenc, 192x128 mandelbrot, two detail
levels x two quantisers x two bit depths, 8 decode-order frames each compared
Y/U/V against ffmpeg, hard-asserting a nonzero no-CFL uv_mode counter.
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove itAhmet Kaan Gümüş · a8d25d4
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove it

Root cause found on a 3840x1608 10-bit key frame that decoded with no refusal
and 12 wrong U samples (Y and V exact, and already wrong before the loop
filter, so reconstruction rather than deblock/CDEF/LR/grain):

libaom builds chroma_above_mbmi / chroma_left_mbmi from
mi[-((mi_row & ss_y) * stride + (mi_col & ss_x))] (set_mi_offsets,
av1/common/blockd.h), i.e. from the PAIR's top-left luma mi, never the odd
row/column of the closing strip. Reading the strip's own mi named a
non-chroma-reference 4-row block whose uv_mode is UV_DC_PRED and so lost a
SMOOTH neighbour: filt_type 0 instead of 1 turned av1_use_intra_edge_upsample
on (blk_wh 12 <= 16) for a directional chroma strip and moved 4 samples by 1.

Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact
now alternates a CHROMA-CARRYING source (smooth cb/cr gradients) into the odd
attempts -- the old gray source left both chroma planes constant, so every
uv_mode was DC and the shape was unreachable -- and hard-asserts a new
RECT4_16_UV_PAIR_FILT_HITS counter (pairs where the pair-base answer differs
from the strip-mi answer). Measured on this merge: 13 flips at 8-bit, 8 at
10-bit; the lane reports the gate FAILS with the fix reverted.

Also merged: a second tracked fixture crates/ec-av1/fixtures/reelb_ss300_key_frame.obu
(3840x2160 10-bit key frame, one temporal unit) with gate
the_reelb_ss300_key_frame_skipped_cfl_decodes_pixel_exact.

MERGE NOTE -- the two sub-8x8 skip arms (decode_leaf_split4, decode_leaf_rect8)
are the SAME arms lane-reelckf fixed on main, not additional ones: both lanes
wrote the identical "a skipped chroma block still gets its CfL alpha" fix
independently. The resolution keeps ONE fix and bumps BOTH lanes' counters
(CHROMA_SKIP_CFL_HITS and SKIP_CFL_HITS) so neither lane's gate becomes
vacuous. Likewise the pair-mi read exists once, with lane-kf1200's counter.

Lane suite: 378 passed, 0 failed, 33 ignored.
debug(av1): localise the square-only silent pixel drift to one 64x64 PARTITION_NONE intra-in-inter blockAhmet Kaan Gümüş · f359f69
debug(av1): localise the square-only silent pixel drift to one 64x64 PARTITION_NONE intra-in-inter block

A 192x128 8-bit real-aomenc stream encoded with rect/AB/1:4 partitions, cdef,
restoration, obmc, warp, order-hint and every compound tool disabled decodes
frames 0-3 byte-exact (pre-filter AND post-filter) and then puts 3540 wrong luma
samples (max |d| 6, chroma exact) into decode-order frame 4 -- confined to the
single superblock the frame codes as PARTITION_NONE at 64x64, an intra block
inside an inter frame. Frames 5-7 then drift via the adapted CDFs.

Measurements: aomdec's own partition histogram shows the stream contains no rect,
AB or 1:4 partition at all, so the "intra-coded 1:4 rect strip" refusal this
stream stops at on main is read out of an already-diverged stream; the msac range
before that block's partition symbol matches aomdec's exactly (33730), so the
divergence is inside the block; and the block's five non-zero levels pushed
through real libaom av1_inv_txfm2d_add_64x64_c reproduce our residual with 0
mismatches, exonerating the TX_64X64 dequant and inverse transform.

Two env-gated rungs added, no decode behaviour changed: partition_w64's trace now
carries the pre-read msac range (directly comparable to aomdec's EC_PART rng), and
EC_IIS prints the square intra-in-inter y_mode read.
fix(av1): palette colours were read at 8 bits on every stream -- the raw literal widths, the delta range and the clamp are all sized by the sequence bit_depthAhmet Kaan Gümüş · 769ba67
fix(av1): palette colours were read at 8 bits on every stream -- the raw literal widths, the delta range and the clamp are all sized by the sequence bit_depth

read_palette_colors_y/_uv (decodemv.c:478/:509) size every raw literal by
bit_depth: the first colour is bit_depth bits, min_bits is bit_depth-3 (Y/U)
and bit_depth-4 (V), range starts at 1<<bit_depth and the clamp/wrap bound is
(1<<bit_depth)-1. Ours hardcoded 8, so a 10-bit palette block read two bits
too few per transmitted colour and decoded the whole rest of the tile from
the wrong bit position -- with no refusal.

It was silent because raw literals are EQUIPROBABLE and at the ranges this
content reaches an equiprobable read maps the msac range onto itself
(62728 -> 31364 -> renormalised 62728), so a cross-decoder RANGE ladder stays
bit-identical straight through the miscount and only the VALUE moves
(compare-range-not-tell's blind spot). Pinned on a 256x192 10-bit cq59
stream whose first block is a 32x16 palette: aomdec's EC_PAL ladder and ours
agreed on every range and disagreed on the first colour index, 0 vs 1. After
the fix all 1024 EC_PAL lines of that block match aomdec line for line and
the block grid matches aomdec's for the rest of the frame.

Gate: a_real_aomenc_palette_stream_decodes_pixel_exact_at_8_and_10_bit --
the existing 8-bit palette recipe with the depth as the only variable, both
arms hard-asserting palette_hits() moved and comparing all three planes
against ffmpeg. Reverting the fix to a literal 8 makes the 10-bit arm fail
on luma; the 8-bit arm is unaffected.
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirelyAhmet Kaan Gümüş · f4f89df
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirely

Both sub-8x8 leaf paths (decode.rs:10554 4-leaf, :10916 2-leaf) passed
`None` for the CfL argument in their `skip_txfm` arm, so a chroma block
with `uv_mode == UV_CFL_PRED` and no residual reconstructed as flat DC.
libaom's `av1_predict_intra_block_facade` (av1/common/reconintra.c:1719)
calls `cfl_predict_block` whenever `mbmi->uv_mode == UV_CFL_PRED`;
`skip_txfm` only drops the residual, never the alpha.

Sweep of the class: every `reconstruct`/`reconstruct_rect` chroma call
site was checked for a literal `None` in the cfl slot -- the rect skip
arms (6015/6519/8078) already pass it, and the one remaining `None`
(20284) sits behind a refusal that forces `uv_mode == DC_PRED`.

Gate: a new pinned 1-frame 3840x1608 10-bit AV1 key frame fixture plus a
test that hard-asserts `skip_cfl_hits > 0` (the shape fires exactly once
in that frame; lane-reelckf r1 already burned 20 aomenc recipes hunting a
skipped sub-8x8 CfL block and never produced one, so a synthetic gate is
out of reach). Before the fix 463 bytes of that frame's chroma were
wrong; after it the frame is pixel-exact against ffmpeg.
Merge main 8e9ba81 (lane-reelckf 55532c7) into lane-kf900Ahmet Kaan Gümüş · 87836ae
Merge main 8e9ba81 (lane-reelckf 55532c7) into lane-kf900

Both chroma-reference-mi fixes kept: reelckf passes pair_mi at the sub-8 call
site, kf900 snaps mi_r/mi_c inside smooth_uv_neighbour -- idempotent together.
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference miAhmet Kaan Gümüş · cfef385
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference mi

Two chroma defects found on real 1920x792 10-bit AV1 key frames, whose luma
was already bit-exact at every seek point:

1. A SKIPPED intra block whose uv_mode is UV_CFL_PRED must still PREDICT with
   the chroma-from-luma term. libaom predict_and_reconstruct_intra_block calls
   av1_predict_intra_block_facade unconditionally and guards only the residual
   on mbmi->skip_txfm. Three skip arms dropped the CfL term entirely
   (decode_rect4_16's 16x16-level 1:4 chroma pair, decode_leaf_split4 and
   decode_leaf_rect8's 4x4 groups); one key frame had 499 wrong chroma samples
   from this alone.

2. The chroma intra-edge FILTER TYPE of a 1:4 pair comes from the CHROMA
   REFERENCE position (libaom get_intra_edge_filter_type -> chroma_above_mbmi /
   chroma_left_mbmi), not from the closing strip: at the closing strip the cell
   above is the pair's own first strip, so the mi-exact UV map missed and the
   coarse fallback answered, flipping av1_use_intra_edge_upsample and moving
   directional chroma by +-1..3.

Gates:
* a_real_aomenc_sb128_stream_whose_skipped_cfl_and_1to4_chroma_pairs_decode_pixel_exact
  -- real aomenc --sb-size=128 --cpu-used=0 --enable-cfl-intra=1
  --enable-1to4-partitions=1, both bit depths, hard-asserts the directional
  1:4 chroma pair counter per compared attempt.
* a_real_film_key_frame_with_a_skipped_cfl_block_decodes_pixel_exact -- new
  tracked fixture crates/ec-av1/fixtures/reelc_kf2700.obu, a 1920x792 10-bit
  key frame truncated to one temporal unit; the only stream we have with a
  skipped UV_CFL_PRED block (48 aomenc recipes never produced one). The
  skipped-CfL counter is hard-asserted BEFORE the ffmpeg compare so an absent
  ffmpeg cannot make the gate vacuous.

gate_coverage: covers_both_depths also recognises `for depth in [8usize, 10]`,
which had classified such a gate as 10-bit only and hid --enable-cfl-intra=1
from the 8-bit never-exercised list; enable-cfl-intra leaves BOTH lists.
decode_probe prints the two new counters.

Lane suite: 379 passed, 0 failed, 33 ignored.
docs(lanes): worktree setup rules left uncommitted in main's tree by another laneAhmet Kaan Gümüş · 95b6784
docs(lanes): worktree setup rules left uncommitted in main's tree by another lane

Byte-identical to the same addition on lane-reelckf 55532c7; committed
separately so the merge does not overwrite an uncommitted working-tree edit.
docs(sbrect10): r3 report -- three reds, two causes, suite 378/0Ahmet Kaan Gümüş · 0ecdfcb
docs(sbrect10): r3 report -- three reds, two causes, suite 378/0

film_grain was the worktree's missing top-level `fixtures` symlink (gitignored,
per-worktree), not a temp-path race: that gate writes no temp file, and the two
helpers that do already key their scratch dir on test-name + pid.

The other two reds were one cause: r2's half-random lavfi source was written
into the superblock-rect gate instead of the no-CFL uv_mode gate it was measured
for. The CFL gate kept the flat source that codes the right half skip (8-bit
arm: 0 intra blocks above 32x32) and the rect gate lost its 10-bit 64-axis
residual TU. Sources swapped back; no assert weakened. Both gates now fire at
both depths (15/43 no-CFL uv_mode reads, 2/2 64-axis residual TUs, zero
out-of-scope mismatches), which also clears r2's comp_list global-motion tail
fill of any regression suspicion.
docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32Ahmet Kaan Gümüş · 5677085
docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200Ahmet Kaan Gümüş · 28188f3
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200

Clean auto-merge; cdf.rs byte-identical to main's. The r1 pair-mi
chroma edge-filter fix at decode.rs:7736 and its counter survive.
test(av1): pin a 1920x792 10-bit AV1 key frame as a fixture -- the only stream we have with a skipped CfL blockAhmet Kaan Gümüş · 293bc74
test(av1): pin a 1920x792 10-bit AV1 key frame as a fixture -- the only stream we have with a skipped CfL block

30 aomenc recipes (r1's 20 plus 18 more in r2, sweeping chroma-correlated geq
sources at cq 40..63, cpu-used 0..2, min/max-partition 4..64, 8 and 10 bit)
never made the encoder pick a CfL block with skip=1: the two conditions pull
against each other, since skip needs a zero luma residual and CfL needs luma AC
worth scaling. The instrumented oracle (EC_TRACE_MODE=1 aomdec) counts 5
'uv_mode=13 skip=1' blocks in this real 1920x792 10-bit key frame, so it is
pinned as crates/ec-av1/fixtures/reelc_kf2700.obu (36 kB, first temporal unit
only) and gated: decode + skip_cfl>0 assert run unconditionally, the three-plane
compare against ffmpeg's yuv420p10le decode runs when ffmpeg is present.

This closes r1's open item -- the skipped-intra-still-predicts-CfL fix (29cd53f)
now fails a test if reverted.
fix(av1): chroma edge-filter type read the neighbours of the wrong mi -- a sub-8 pair codes its chroma at the ODD mi, libaom reads them off the chroma REFERENCE blockAhmet Kaan Gümüş · 589ba1a
fix(av1): chroma edge-filter type read the neighbours of the wrong mi -- a sub-8 pair codes its chroma at the ODD mi, libaom reads them off the chroma REFERENCE block

`Neighbours::smooth_uv_neighbour` took the caller's mi as-is. libaom's
`set_mi_row_col` (blockd.h) first snaps to the chroma reference block,
`base_mi = &xd->mi[-(mi_row & ss_y) * stride - (mi_col & ss_x)]`, and only
then reads `chroma_above_mbmi = base_mi[-stride]` / `chroma_left_mbmi =
base_mi[-1]`. For a sub-8 pair, whose chroma syntax lives at the odd mi, we
looked one mi row/column too far and the mi-exact slot never matched, so the
coarse SUB-grid fallback answered instead.

Consequence: `get_intra_edge_filter_type` came out 0 where libaom has 1,
which flips `av1_use_intra_edge_upsample(8, 4, -6, type)` (`blk_wh == 12`:
false at type 1, TRUE at type 0). We upsampled an edge libaom leaves alone.

Measured on the 2160p 10-bit key frame at -ss 900 (now
crates/ec-av1/fixtures/reelb_kf900.obu): chroma 8x4 at (688, 100) = mi (51, 344),
V_PRED p_angle=84, aomdec EC_PREDOUT sum 15924 vs ours 15930 (+1 on rows 2/3
at cols 1, 2, 4 -- reproduced exactly by the upsampled z1 walk in a
hand-simulation). First chroma difference on that frame moves from (102, 688)
to (195, 640), a residual-side defect whose prediction is bit-exact.

Gate: crates/ec-av1/fixtures/reelb_kf900.obu (484640 bytes, sha256
a273ae99328388be14a1ff8fa1c5a6d391a9948159eaef120e1b50e02015eb83, two
independent extracts hashed identically) decoded LUMA-exact vs ffmpeg with a
hard `skip_split_tx_hits() >= 15` assert -- the r1 tx-size-context defect. That
counter is unreachable from aomenc: 108 measured recipes (72 8-bit, 36 10-bit;
geq half-flat/half-noise, mandelbrot, testsrc2, noise seed 49, cq 55/59/63,
cpu-used 0..2, tx-size-search + min-partition-size=8 + rect partitions) all
report 0, because libaom's encoder forces tx_size to the block maximum once it
picks skip_txfm. The two multi-tile arms that carried the impossible assert
keep their pixel-exact comparison and name the fixture gate instead.
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckfAhmet Kaan Gümüş · 2bbef8b
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckf

Auto-merge, no conflicts: mvstack.rs + stream.rs gates only, cdf.rs untouched,
no deletions.
fix(sbrect10): the r2 fixture swap landed in the sibling gateAhmet Kaan Gümüş · b94f6a0
fix(sbrect10): the r2 fixture swap landed in the sibling gate

r2's half-random lavfi source was meant for the no-CFL uv_mode gate (whose
8-bit arm decodes zero intra blocks above 32x32 on the flat "200" source);
it was written into the superblock-rect gate instead, where it cost the
10-bit residual arm the coded 64-axis transform unit lane-r14 r2 measured on
the flat source. Sources swapped back to the gate each was measured on.
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaomAhmet Kaan Gümüş · 9ae16b3
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaom

A 20-phase table of find_mv_stack_with_sign_bias / find_mv_stack_compound vs
mvref_common.c setup_ref_mv_list; 17 phases exact, three defects:

1. compound combine (mvref_common.c:718-719): slots past both ref lists take
   that side's global MV, not (0, 0).
2. insertion cap (:100/128/388/425): the 9th distinct candidate is DROPPED AT
   INSERTION -- we pushed unbounded and sorted+truncated, keeping a different
   set. The dedup weight bump still applies on a full stack.
3. reach/availability is TILE-relative (:512-533), not frame-relative; new
   MiGrid::tile_origin.

has_top_right deliberately unchanged: porting libaom's mask without the three
shape refinements (which need the partition type) would regress the 64x128
VERT-rect case; the corner-cut at mvstack.rs:588 keeps its upgrade path.

New gate a_real_aomenc_compound_mv_stack_* (3 arms, comp_gm_fill_hits=7,
stack_full_drops=2, tile_reach_clips=1, pixel-exact) plus one #[ignore]d
multi-tile reproducer.

Gates by name 48 passed / 0 failed; full lib suite 377 passed / 0 failed / 33 ignored.
Merge main 4eff3a1 (lane-sb128b e8e64a6) into lane-sbrect10Ahmet Kaan Gümüş · 9f7b5d2
Merge main 4eff3a1 (lane-sb128b e8e64a6) into lane-sbrect10

cdf.rs / cdf_state.rs / refusal_inventory.rs byte-identical to main after the
merge; the only lines dropped vs main are this lane's own r1/r2 hunks
(uv_mode_cfl narrowing, combine_compound_candidates signature, indexed
dump_stage16 prefix, the gate's half-random fixture).
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B)Ahmet Kaan Gümüş · b7d13e4
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B)

Two 8x8 inter leaves plus one true 16x8/8x16 inter strip per libaom
decode_partition's own visit order; VERT_A/VERT_B take the has_tr_vert
availability swap. The old "an inter 16x16-level AB or 1:4 partition"
refusal is narrowed to the 1:4 pair, which still needs the sub-8 inter
chroma-pair path.

Gate a_real_aomenc_inter_sequence_with_16x16_level_ab_partitions_decodes_pixel_exact:
real aomenc, 8- and 10-bit, 32 attempts each, every decode-order frame
compared to ffmpeg, all four arms asserted separately, out-of-scope
mismatches fail.
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit)Ahmet Kaan Gümüş · adb8dd9
test(av1): the 64-axis 1:4 var-tx gate now HARD-ASSERTS its arm fires -- rect var-tx leaves decoded out of two real aomenc streams (32x16=4, 16x32=1 at 8-bit)

r3 parked the firing assert because no aomenc recipe found then produced a
64-axis 1:4 strip whose transform splits. An r4 recipe hunt on the merged tree
(~70 aomenc runs: testsrc2 / life / mandelbrot / banded motion, 64x64..384x256,
cq 20..58, min-partition-size 16 and 32) found one: 384x256, per-16-column band
motion, cq 38 -> four 32x16 leaves out of four 64x16 strips, cq 32 -> one 16x32
leaf out of four 16x64 strips. Both streams stop LATER on another lane's live
refusal, so the leaves are proved DECODED, not pixel-exact; the 16 banded
attempts that run to the end are still compared frame by frame vs ffmpeg (0
mismatch, 8- and 10-bit) and min-partition-size moved 32 -> 16 so they exercise
the 16-level path too. 10-bit fires nothing on this sweep (measured), so the
firing assert is 8-bit only. Gate renamed to state what it asserts.
fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motionAhmet Kaan Gümüş · e2010ef
fix(av1): compound MV stack zero-filled the comp_list tail libaom fills with global motion

The compound extension pass (`combine_compound_candidates`, mvstack.rs) filled the
`comp_list` slots left over after `ref_id`/`ref_diff` with `(0, 0)`. libaom fills them
with that side's GLOBAL MOTION vector (`setup_ref_mv_list`, av1/common/mvref_common.c:729:
`for (; comp_idx < MAX_MV_REF_CANDIDATES; ++comp_idx)
   comp_list[comp_idx][idx] = gm_mv_candidates[idx];`).

The zero fill was only right under IDENTITY global motion, the module's original
reduction; aomenc has --enable-global-motion on by default. A compound block with no
usable neighbour pair (frame top row, an intra block to its left, an empty temporal
field) then took a (0, 0) predictor where libaom took the frame's translation --
mv0 (-1,2) vs (128,-16) on the first such block, 32890/39907 wrong luma samples on
decode-order frame 2 of a 10-bit cq58/cq61 stream, with the entropy stream still in
sync (180/180 TU all_zero ranges identical to aomdec).

Also this round:
- the no-CFL uv_mode gate's source becomes the half-random fixture, so BOTH the 8-bit
  and the 10-bit arm carry >=1 intra-above-32x32 block per compared attempt (the flat
  half made aomenc code the right-hand superblocks skip at 8 bit: 0 hits).
- EC_AV1_PREFILT_DUMP16 is indexed by decode-order picture (it overwrote .f0 every
  frame, so a mid-sequence divergence could not be read out).
- setup_motion_field prints an EC_TPL_FIELD occupancy map under the existing
  EC_TRACE_TPL rung.

Probe grid after the fix (192x128, 6 frames, half-random geq), pixel diffs vs ffmpeg:
8-bit cq52/58/61 = 0/0/0 (5/2/3 hits), 10-bit cq52/58/61 = 0/0/0 (6/7/7 hits);
was 0/0/0 and 0/32890/39907.
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base miAhmet Kaan Gümüş · 6a9c6eb
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base mi

libaom builds chroma_above_mbmi/chroma_left_mbmi from
mi[-((mi_row & ss_y) * mi_stride + (mi_col & ss_x))] (set_mi_offsets,
av1/common/blockd.h) and get_intra_edge_filter_type (reconintra.c:974)
reads THAT block's uv_mode. decode_leaf_rect4_16's chroma half asked
smooth_uv_neighbour at the odd strip mi instead, so the neighbour it saw
was the non-chroma-reference 4-row block directly above (uv_mode
UV_DC_PRED) rather than the chroma block above the pair. On the ReelB -ss 1200 key frame that lost a SMOOTH neighbour: filt_type 0
instead of 1 turned av1_use_intra_edge_upsample on (blk_wh 12 <= 16) for
an 8x4 H_PRED chroma strip at angle_delta -2 and moved 4 samples by 1.

Gate: a_real_aomenc_stream_with_a_16_level_1to4_partition_decodes_pixel_exact
now alternates in a chroma-carrying lavfi source (the gray one left both
chroma planes constant, so every uv_mode was DC and this shape could not
occur) and hard-asserts a new rect4_16_uv_pair_filt_hits counter -- pairs
whose filt type differs between the two mi. 8-bit: 13 flips, 10-bit: 8,
all pixel-exact; reverting the one-line fix reddens it at seed 43.

HG 1-frame key-frame census: -ss 1200 14 -> 0 bytes, -ss 1800 248 -> 0,
-ss 3600 1 -> 0, -ss 3300 44500 -> 39971; other segments unchanged.
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage listsAhmet Kaan Gümüş · 52a7f38
test(av1): the sb128 CfL gate retires enable-cfl-intra from both coverage lists

The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both
NEVER_EXERCISED lists drop it. covers_both_depths also learns the
'for depth in [8usize, 10]' spelling: such a gate builds both streams from one
recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only.
fix(av1): a skipped 8x8 intra leaf whose tx_depth split published its 8-px block side, not TX_4X4, to the next block's tx-size contextAhmet Kaan Gümüş · 8a47132
fix(av1): a skipped 8x8 intra leaf whose tx_depth split published its 8-px block side, not TX_4X4, to the next block's tx-size context

decode_leaf8's tail called fill_lf_grid(leaf_mi, 2, 8, 0) with the literal
block side. libaom calls set_txfm_ctxs(mbmi->tx_size, bw, bh,
skip_txfm && is_inter_block(mbmi), xd) (decodemv.c) -- for an INTRA block that
skip term is always 0, so a skipped 8x8 leaf whose tx_depth resolved to TX_4X4
still publishes 4 to get_tx_size_context (pred_common.h:342). Writing 8 made
the 8x16 strip below such a leaf read tx_size_cat1 row 2 where libaom reads
row 1 -- same alphabet, wrong CDF row (class wrong-alphabet-same-value), so
the msac range diverged mid-frame with NO refusal.

Witness: a 4K 10-bit AV1 mkv's key frame at -ss 900 (3840x1608 yuv420p10le),
first bad luma sample row 186 col 1803, entropy divergence at mi (60,122)
right after filter_intra_mode (both decoders rng=33750; ours then read
tx_depth at ctx 2 where aomdec reads ctx 1).

All 24 key frames of that file (0..6900 step 300) are now LUMA-EXACT vs ffmpeg
(previously 6 of them differed by 7.5M-16.6M bytes). A chroma-only residual
remains, first at chroma (102,688) pre-filter -- a separate open defect.

Also: EC_IMODE/EC_ISTEP/EC_TXCTX/EC_LFGRID cross-decoder trace rungs mirroring
the instrumented aomdec, a skip_split_tx counter print in decode_probe, and two
aomenc gate arms (8/10-bit) that currently FAIL on their counter assert -- the
gradients source never makes aomenc pick a skipped 8x8 leaf with a split
transform (recipe sweep unfinished, see lanes/kf900-r1.handoff.md).