forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 30e31106188cccefcfe2a80a4cd5e0f02af4516f

2026-09-02

test(av1): give the interintra gate an arm that can actually produce a rect interintra blockAhmet Kaan Gümüş · 30e3110
test(av1): give the interintra gate an arm that can actually produce a rect interintra block

The interintra gate's recipe spells `--enable-rect-partitions=0
--min-partition-size=32`, so it cannot emit a rectangular block at all and
lane-midcut r1's `interintra_rect_hits` delta assert was unsatisfiable on it
(40 pixel-exact matches, counter 0 -- the gate disabled the very shape the
assert claims to prove). Added a RECT ARM that re-encodes the same source with
`--enable-rect-partitions=1 --min-partition-size=8 --max-partition-size=64`
appended (aomenc keeps the LAST occurrence of a repeated flag) and compares
every decode-order frame of that stream against aomdec, running per seed until
the counter fires.

Result: seed 46's rect arm decodes 24/24 decode-order frames pixel-exact with
interintra_rect_hits=4, and the gate is green again (1 passed, 11.7 s).
fix(av1): a rect block's chroma warp was gated on the square prediction buffer's side, not the plane's block dimsAhmet Kaan Gümüş · 00a6ca0
fix(av1): a rect block's chroma warp was gated on the square prediction buffer's side, not the plane's block dims

libaom `av1_init_warp_params` (reconinter.c) bails out per PLANE at
`block_width < 8 || block_height < 8`, so the 8x4 / 4x8 chroma of a 16x8 /
8x16 luma block keeps the translational prediction even when the luma warps.
`decode_inter_block` allocates a SQUARE prediction buffer and tested
`chroma_side >= 8` -- the buffer's side -- so every rect block with a warp
(local or global) warped its chroma where libaom does not, and a 4-wide or
4-tall luma block warped its luma. Guard on `write_chroma_w/h` and
`write_w/h` instead (class rectchroma2 / narrow-block-sharp-kernel: dims read
off the enclosing square buffer).

Measured on the 2-frame cut of the 10-bit 3840x1608 stream (decode-order
PREFILT16 compare vs instrumented aomdec, frame 0 already exact): frame 1 goes
from 1317 wrong samples (Y 115, U 342, V 860) to 126 (Y 115, U 11, V 0).
refactor(av1): drop the duplicate in-inter tx-depth ctx override, keep the counter on the band readAhmet Kaan Gümüş · eec9297
refactor(av1): drop the duplicate in-inter tx-depth ctx override, keep the counter on the band read

lane-t900 r2 fixed the same defect at every rect intra reader's call site
(`tx_size_context_txfm_rect` under `INTRA_IN_INTER_MODE`), so this lane's
override inside `tx_size_context_rect` is now unreachable: every remaining
`tx_size_context_rect` call is in the `else` arm of exactly that condition.
Removed it and moved `intra_rect_in_inter_txctx_override_hits` into
`tx_size_context_txfm_rect`, where it still counts only the blocks whose CDF
row the deblock-grid approximation would have read wrong.

Verified on the 2-frame cut of the 10-bit 3840x1608 stream: with t900's
call-site switch alone, decode-order frame 0 is EXACT and frame 1 has the same
1317 wrong samples (Y 115, U 342, V 860) this lane measured with its own
override, i.e. the two fixes are equivalent and no site needs both.
feat(av1): counter for rect intra-in-inter blocks whose tx_depth CDF row moved under the inter-neighbour overrideAhmet Kaan Gümüş · a0c6951
feat(av1): counter for rect intra-in-inter blocks whose tx_depth CDF row moved under the inter-neighbour override

`intra_rect_in_inter_txctx_override_hits()` counts only the blocks where
libaom's "an INTER neighbour contributes its BLOCK size" override changes the
`tx_size_cat*` row versus the key frame's deblock-grid approximation -- i.e.
exactly the blocks the previous commit fixes. A plain "rect intra in an inter
frame" tally is green on the buggy code too, so a gate has to assert this one.
Not yet wired into a gate (turn cap); lanes/midcut-r2.handoff.md names the two
gate call sites and the fallback aomenc arm.
fix(av1): rect intra blocks inside an inter frame read tx_depth off the key frame's deblock-grid ctxAhmet Kaan Gümüş · 1ca3e1b
fix(av1): rect intra blocks inside an inter frame read tx_depth off the key frame's deblock-grid ctx

`tx_size_context_rect` is the KEY FRAME approximation of libaom
`get_tx_size_context` (pred_common.h:342): it reads the deblock tx grid and
never applies the "an INTER neighbour contributes its BLOCK size, not its
transform size" override, which only matters once a neighbour's var-tx tree
splits. The 1:4 16x4 strip already branched to `tx_size_context_txfm_rect` at
its own call site; every other rect intra reader reached from an inter frame
(the 2:1 strips, the 32-level and 64-level 1:4 bodies) did not. Fixed once in
`tx_size_context_rect` itself, so all six call sites inherit it.

Measured on a 2-frame cut of the 10-bit 3840x1608 stream: the 32x8 intra strip
at mi(118,280) of frame 1 read tx_size_cat2 row 1 where aomdec reads row 2
(both val=0, ranges 55568 vs 63652) and desynced the tile from there. After the
fix every one of the 6871 inter blocks aomdec reports in that frame matches
ours on entry range, and the decode-order PREFILT16 compare goes from 4386319
wrong luma samples to 115 (chroma 342/860, all |delta|=1).
docs(av1): lane-t900 r3 handoff -- chroma coefficient contexts wiped by the non-chroma-reference inter block; the 2-frame cut is entropy-exact, the residue is reconstructionAhmet Kaan Gümüş · 3e2b507
docs(av1): lane-t900 r3 handoff -- chroma coefficient contexts wiped by the non-chroma-reference inter block; the 2-frame cut is entropy-exact, the residue is reconstruction
fix(av1): a non-chroma-reference inter block wiped its neighbours' chroma coefficient contextsAhmet Kaan Gümüş · 8b5425d
fix(av1): a non-chroma-reference inter block wiped its neighbours' chroma coefficient contexts

libaom codes no chroma transform at all for a block that is not the chroma
reference of its 4:2:0 pair (`av1_reset_entropy_context`:
`nplanes = 1 + (num_planes - 1) * xd->is_chroma_ref`), so such a block leaves
the above/left CHROMA entropy contexts exactly as it found them. Our inter
block reader recorded all three planes unconditionally, and for those strips
the chroma grids are all-zero -- so the even 4x16 strip of a VERT_4 pair
cleared the real left-neighbour chroma state, and the PAIR's own `all_zero`
symbol then read `txb_skip_ctx` one row low (base 1 where libaom gathers 2,
i.e. ctx 1 vs 9 with the chroma offset).

Measured on the 2-frame cut of the 10-bit 1920x792 128-superblock stream,
decode-order frame 1, mi(40,220): the chroma `all_zero` entry range 37582 now
leaves 51992, aomdec's value. The whole cut's coefficient ladder is exact:
15865 `all_zero` symbols in both decoders, identical value and range in
order, both frames. The frame-1 reconstruction gap drops from 1924240 to
114374 differing bytes and is now pre-loop-filter (an MC/prediction defect,
no longer entropy).

Also: `EC_DCDUMP` now dumps all three planes, not plane 0 only -- without the
chroma cells the wipe is invisible.
docs(av1): lane-midcut r1 handoff -- mid-film cuts are a reconstruction desync (not alignment, not grain); rect interintra fixed, NEARMV mv-stack defect namedAhmet Kaan Gümüş · 3667e83
docs(av1): lane-midcut r1 handoff -- mid-film cuts are a reconstruction desync (not alignment, not grain); rect interintra fixed, NEARMV mv-stack defect named

Adds the rect-interintra assert to the interintra gate (delta-counted, not yet
run) and the r1 handoff: reproducer, the three measurements that ruled out frame
alignment and film grain, the fixed defect, the next block-level witness
(mi 112,288 NEARMV: ours (-40,-340) vs aomdec (-32,-350)) and the re-measured
24-offset table.
fix(av1): interintra built a square intra predictor for rectangular blocksAhmet Kaan Gümüş · f48ab1b
fix(av1): interintra built a square intra predictor for rectangular blocks

`interintra_blend` took one `side` and used it for the edge fetch, the intra
predictor's `(bw, bh)`, `ii_size_scales` and the blend bounds. On a
rectangular block (`write_w != write_h`) `side` is the LONGER dimension, so a
32x16 block got a 32x32 SMOOTH/DC predictor built off 32 rows of left edge
(16 of which are not yet decoded) instead of libaom's 32x16 one. The mask
scale happened to come out right (`128 / max(bw,bh)` == `ii_size_scales`),
the predictor did not: the blend error is zero on the block's first row and
grows downward, exactly the `sm_weights_h` divergence between a height-32 and
a height-16 SMOOTH_PRED.

Blend now takes `(bw, bh, stride)`: `edges_rect`/`predict` at the true
footprint, mask scale off `max(bw, bh)`, loop over `bh x bw`, `pred` indexed
at the buffer's own stride. New `interintra_rect_hits()` counts the shape
(every existing interintra gate passed with the bug, so the rect arm was
vacuous) and `decode_probe` reports it.

Also `EC_AV1_NO_GRAIN=1` in `decode_stream`, which splits a mismatch into
reconstruction vs film-grain synthesis in one run (it is what ruled grain out
here).

Measured on a 2-frame cut of the 10-bit 3840x1608 stream (key frame + first
hidden alt-ref, 59 rect interintra blocks): the alt-ref's pre-filter dump vs
the instrumented aomdec goes from a first mismatch at luma (17,1088) to that
superblock exact; first remaining mismatch moves to (448,1152), a separate
NEARMV mv-stack defect (ours (-40,-340), aomdec (-32,-350)).
fix(av1): rect intra leaves inside an inter frame read the deblock-grid tx-depth context (sibling sweep)Ahmet Kaan Gümüş · a0c409b
fix(av1): rect intra leaves inside an inter frame read the deblock-grid tx-depth context (sibling sweep)

Class sweep of the measured `decode_block_rect4` defect: `decode_leaf_rect`
and `decode_leaf_rect8` still built their tx-depth CDF row from
[`tx_size_context_rect`] (the key frame's deblock-grid approximation) where
libaom's `get_tx_size_context` reads the `TXFM_CONTEXT` bands for every block
of an inter frame. No-op unless `INTRA_IN_INTER_MODE` is set, i.e. key frames
are byte-identical.

Unmeasured on their own (the measured instance is the 32x8 strip at
mi(48,176) of the 10-bit 1920x792 128-superblock stream) -- kept in a separate
commit so it can be reverted without losing that fix. lanes/t900-r2.handoff.md
carries the ladder state, the next divergence (a chroma txb_skip context row)
and the gate that was red mid-suite when the round ended.
fix(av1): a 1:4 intra strip in an inter frame took its tx-depth CDF row from the key frame's deblock grid, not the TXFM_CONTEXT bandsAhmet Kaan Gümüş · 27250ff
fix(av1): a 1:4 intra strip in an inter frame took its tx-depth CDF row from the key frame's deblock grid, not the TXFM_CONTEXT bands

`get_tx_size_context` reads `above_txfm_context`/`left_txfm_context` on an
inter frame; the 2:1 and 16x4 intra-in-inter arms already switch to
[`tx_size_context_txfm_rect`] for that, `decode_block_rect4` (32x8/8x32),
`decode_block_rect64` (64x16/16x64) and `decode_block_rect`'s own cat-2 read
did not. Measured on the 10-bit 1920x792 128-superblock stream, decode-order
frame 1: the 32x8 HORZ_4 strip at mi(48,176) read `tx_size_cat2` row 1 where
libaom reads row 2 (ours rng after the symbol did not occur anywhere in the
oracle's frame trace), and every symbol after it was off. With the bands the
cross-decoder ladder now runs from mi(0,320) to mi(40,221) inclusive.

Also adds the missing `EC_TRACE_MODE_STEP` tx_depth rung to those three
readers plus the 16x4 strip -- without it a range ladder cannot see the
symbol at all, which is what made the earlier bisection stop one block short.
merge: main (5d81a67) into lane-t900 -- rect4/rect64 txfm-band tails meet the in-inter band publicationAhmet Kaan Gümüş · c11cb86
merge: main (5d81a67) into lane-t900 -- rect4/rect64 txfm-band tails meet the in-inter band publication

Both writes carry the same (tx_w,tx_h) for the same footprint, so the split
arms now publish twice with identical values; the in-inter publication stays
because it also covers the non-split and refusing exits.
docs(lanes): COMMON first step is merge main, never rebase; charters must not contradict itAhmet Kaan Gümüş · 1395e7b
docs(lanes): COMMON first step is merge main, never rebase; charters must not contradict it
fix(av1): re-add the intra 16x4/4x16-in-inter-1:4 refusal -- its witness counters were phantoms of a desyncAhmet Kaan Gümüş · 543ce26
fix(av1): re-add the intra 16x4/4x16-in-inter-1:4 refusal -- its witness counters were phantoms of a desync

The gate pinned last round asserted intra16x4_in_inter 16x4=31 4x16=17
chroma_ref=23 and rect64_corner_tu 64x32=90 32x64=5 on a 10-bit 3840x1608
prefix; all five numbers were counted while decode-order frame 33 of that same
prefix was desynced (class counter-from-refused-stream). Re-measured on the
merged tip: the fixture decodes all 33 frames pixel-exact and reads
rect64_corner_tu 148/123 with intra16x4_in_inter 0/0/0.

No stream on this tree decodes pixel-exact while the intra 16x4/4x16 arm fires:
a 2 s 10-bit 3840x1608 head cut is exact with 0 hits; the 300 s cut's hits sit
behind frames that mismatch by 14105680 / 12470780 bytes; four 1920x792 128-SB
cuts carry their hits only in frames that refuse or are never shown; and the
aomenc gate for the shape, run --include-ignored, fails with per-arm attempts
[0, 0, 0]. So the decode path goes back behind a named refusal (opt-in via
EC_INTRA16X4_DECODE) rather than standing as an unbacked capability claim.

- decode.rs: strip16 chroma-pair record gated by EC_INTRA16X4_DECODE; measured
  notes on both the refusal and the rect64 corner-TU comment
- refusal_inventory.rs: string re-widened to the whole shape (note only)
- stream.rs: gate renamed a_10bit_film_frames_with_rect64_corner_tus_decode_pixel_exact,
  hard assert kept on rect64_corner_tu (148/123) and the intra-16x4 assert
  inverted to assert_eq!(0,0,0); the aomenc 1:4 gate's #[ignore] reason
  replaced by this round's failure output
- stream.rs: a_10bit_film_inter_frame_with_intra_1to4_strips #[ignore]d -- every
  strip it counts is in its fixture's NO-SHOW second frame (truncated to one
  frame OBU the counters read 0/0/0/0), so it was green on a counter no pixel
  compare backed (class gate-blind-to-hidden-frames)

Suite: 425 passed, 0 failed, 38 ignored.
fix(av1): a 1:4 intra strip in an inter frame publishes its TXFM_CONTEXT bandsAhmet Kaan Gümüş · d52f632
fix(av1): a 1:4 intra strip in an inter frame publishes its TXFM_CONTEXT bands

libaom runs set_txfm_ctxs + txfm_partition_update for every block of an inter
frame, intra ones included. The 2:1 and 16x4 intra-in-inter arms do that at
their call sites; the 1:4 arms (decode_block_rect4 for 32x8/8x32,
decode_block_rect64 for 64x16/16x64) keep their transform size inside and
published nothing, so both neighbour bands stayed stale across the strip's
footprint for the rest of the frame.

Measured on a 2-frame cut of the 10-bit 1920x792 128-superblock stream: the
HORZ_4 32x8 strip at mi(0,312) left left_txfm[0] at a stale 32 where libaom
has 8, so the intra 8x16 block at mi(0,320) read tx_size_cat1 row 1 instead of
row 0 -- same depth value, different CDF, range 39156 where aomdec has 54736.
After the fix that superblock matches aomdec element for element and the cut
walks to the known 128x64 intra-in-inter wall; with EC_INTRA128_IN_INTER=1 it
decodes both frames (128x64=15) where it previously hit a Golomb-tail wall.

Also adds y_mode/uv_mode/tx_depth EC_TRACE_MODE_STEP rungs to the rect
intra-in-inter arm, which had none.

Classes: tx-grid-published-block-side, early-return-skips-tail.
feat(av1): decode the 128-root HORZ/VERT half coded INTRA in an inter frame (opt-in, ungated)Ahmet Kaan Gümüş · 37c9fd7
feat(av1): decode the 128-root HORZ/VERT half coded INTRA in an inter frame (opt-in, ungated)

The shape routes through the key frame's own proven body
(decode_block_128rect: square TX_64X64 luma units, one TX_32X32 chroma unit
per 64x64 mu chunk on the offset-10 txb_skip rows, per-TU prediction,
Reach::of_tu mu-chunk rule, frame-edge write clip) with the three inter-frame
differences: the mode-info read (INTRA_IN_INTER_MODE -> y_mode[3] --
size_group_lookup puts BLOCK_128X64/64X128/128X128 in group 3 -- plus the skip
the inter caller already read), the tx_depth context (the real TXFM_CONTEXT
bands via tx_size_context_txfm_rect against max_txsize_rect_lookup's TX_64X64,
hence min(64)), and the set_txfm_ctxs publication an intra block of an inter
frame makes. CfL (>32), filter intra (>32) and palette (>64) do not exist at
this size and stay refused by name inside that body.

OPT-IN ONLY (EC_INTRA128_IN_INTER=1): the named refusal is NOT lifted, because
nothing proves the arm yet. The three 2 s cuts of the 10-bit 1920x792
128-superblock stream that reach this shape reach it AFTER a pre-existing
entropy desync -- their frame 2 diverges from instrumented aomdec inside the
superblock at mi(0,320), hundreds of blocks before mi(128,416) -- and three
aomenc recipes (256x256 noise / static-band-plus-noise-strips, cq 20/32/45/55,
--sb-size=128 --min-partition-size=64 --enable-rect-partitions=1
--kf-max-dist=100) produced zero 128-root HORZ/VERT halves in an inter frame at
all. Default decode behaviour is byte-for-byte unchanged.
test(av1): pin the hidden-ARF witness and gate it; sweep the same missing TXFM_CONTEXT publication in the 32-level 1:4 strip readerAhmet Kaan Gümüş · 620173e
test(av1): pin the hidden-ARF witness and gate it; sweep the same missing TXFM_CONTEXT publication in the 32-level 1:4 strip reader

`crates/ec-av1/fixtures/reelb_arf_witness.obu` (32126 bytes, sha256
7f3b060da5aa9c537633e760c4af71316237db7692f6ae0d459bd2c2dd867d37) is the
58-frame-OBU prefix of a 2 s head cut of the 10-bit 3840x1608 stream: 40
decode-order frames, 37 shown, decode-order frame 33 a hidden alt-ref with
cdef_bits=1 and loop restoration [Switchable, Sgrproj, Switchable].
`a_10bit_film_hidden_arf_with_split_superblock_strips_decodes_pixel_exact`
compares every plane of all 37 shown frames against ffmpeg and hard-asserts
the new `rect64_split_txfm_publish_hits` counter (4 on this stream), so the
gate cannot pass vacuously if a stream stops carrying the shape.

Class sweep: `decode_block_rect4` (the 32-level 1:4 strip reader, and the
inter frame's reader for an intra 32x8/8x32) published the TXFM_CONTEXT
bands on none of its three exits. Fixed the same way. Not exercised by this
stream (its 32x8/8x32 counters are 0 once frame 33 decodes correctly -- the
48 they showed before were phantoms of the desync), so it is a latent
sibling fixed by inspection, with the 48-frame decode re-measured
byte-exact after it.
test(av1): gate B split-tx-8x4 arm keeps its unproven note, with a re-measured reasonAhmet Kaan Gümüş · 950504e
test(av1): gate B split-tx-8x4 arm keeps its unproven note, with a re-measured reason

The 384x256 cq-10 stream it named now decodes pixel-exact with zero
rectangular var-tx leaves, and 12 fresh streams of the gate own source family
carry no TX_16X4/TX_4X16 split symbol at any quantiser. r2 report added.
test(av1): the 1:4 rect var-tx gate asserted leaves its recipe never codedAhmet Kaan Gümüş · 3032341
test(av1): the 1:4 rect var-tx gate asserted leaves its recipe never coded

The firing arm ran a cq-10 384x256 recipe whose stream, per an aomdec
EC_VARTX histogram, splits no rectangular transform at all; the leaves it
used to count came out of an already-desynced decode. Re-measured: the same
texture at cq 44/46 carries TX_32X8/TX_8X32 splits (16x8 + 8x16 leaves) and
decodes pixel-exact on all six frames, so the arm now hard-asserts the
PIXEL-COMPARED tally. Gate B split-tx-8x4 arm keeps its unproven note with
the re-measured reason.
fix(av1): a split-transform superblock-level strip published no TXFM_CONTEXT bandAhmet Kaan Gümüş · 79abd1e
fix(av1): a split-transform superblock-level strip published no TXFM_CONTEXT band

`decode_block_rect64`'s `depth != 0` arm returns early, past the tail
`txfm_partition_update_rect` lane-frame36 r1 added, so a SPLIT 64x16/16x64/
64x32/32x64 strip left the above/left TXFM_CONTEXT bands holding the row's
init value 64. libaom runs `set_txfm_ctxs(mbmi->tx_size, ...)` for EVERY
block, with the SPLIT unit's size.

Measured on the 10-bit 3840x1608 stream (58-OBU prefix), decode-order frame
33 (the hidden ARF): after the split 16x64 strip at mi(192,140)
(`tx_depth=1` -> TX_16X32) the 32x64 intra block at mi(192,144) read
`left_txfm=64` and took `tx_size_cat3` row 2 where aomdec takes row 1 --
same value, different range, desync from there to the end of the frame.

With the fix every superblock entry range of every traced frame equals
aomdec's, and all 37 output frames of the prefix are byte-exact against
ffmpeg (frame 36 was 765464 differing bytes at r1's tip, 1992768 before it).

Also adds the oracle's own `EC_ISTEP ... name=tx_depth ... cat=` line to the
2:1 intra-in-inter arm, which is what named this defect.
fix(av1): the intra-in-inter shape refusal named a correlate, not the shapeAhmet Kaan Gümüş · 7d049f4
fix(av1): the intra-in-inter shape refusal named a correlate, not the shape

EC_OBMCREC=1 on the three 2 s cuts of the 10-bit 1920x792 128-superblock
stream shows every arrival at this site is a 128x64 block (a PARTITION_HORZ
half of a 128 superblock coded INTRA inside an inter frame) at mi (128,416)
/ (192,0) / (192,0) -- never the 16x4/4x16 strip the message named (class
refusal-names-a-correlate). The message now carries the measured shape;
refusal_inventory follows it.
fix(av1): the 1:4 intra strip readers never published the TXFM_CONTEXT bandsAhmet Kaan Gümüş · a43f3c7
fix(av1): the 1:4 intra strip readers never published the TXFM_CONTEXT bands

decode_block_rect64/decode_block_rect4 are also the INTER frame's readers for a
64x16/16x64 (and 32x8/8x32) intra strip, but unlike every other intra-in-inter
path they skipped libaom's set_txfm_ctxs write, so the block after a strip read
the row's init value 64 as its left transform height and took the tx_size_cat3
CDF row 1 where libaom takes row 0 -- a same-value/wrong-row desync.

Measured on a 58-OBU prefix of the 10-bit 3840x1608 stream (40 decoded frames):
the first silent wall is decode-order frame 33, first wrong pixel Y(1920,64),
first diverging element tx_depth at mi(16,480) (ours ctx=1 rng=56472, aomdec
ctx=0 cat=3 rng=34964). Output frame 36 differing bytes 1992768 -> 765464;
the wall is narrowed, not closed (see lanes/frame36-r1.handoff.md).

Also adds two triage rungs: EC_PROBE_HDR=1 prints one line per frame header from
decode_probe, and EC_TXCTX now also dumps tx_size_context_txfm's inputs.
fix(av1): OBMC read a 1:4-strip neighbour's interp filter from the wrong miAhmet Kaan Gümüş · 7285f03
fix(av1): OBMC read a 1:4-strip neighbour's interp filter from the wrong mi

libaom's foreach_overlappable_nb_above/left (reconinter.c 780/840) snaps a
4-wide/4-tall neighbour back to its chroma pair's even mi and takes the
neighbour's whole mbmi -- mv, reference AND interp_filters -- from the pair's
SECOND mi. Ours took the MiInfo from that second mi but read the switchable
filter symbols from the FIRST one, a different block: whenever that half is
intra its filter record is the [3, 3] "no filter" sentinel, and the decode
refused with "an OBMC neighbour whose switchable interp filter was never
recorded". Measured with a new EC_OBMCREC rung on three 2 s cuts of the
10-bit 1920x792 128-SB stream: cur (24,348) 16x16 left-neighbour 16x4,
(150,340) 8x8 above-neighbour 4x8, (56,32) 16x32 above-neighbour 4x16 --
every one a pair whose first half is intra (cell_inter=false, ref=-1).

overlappable_above/left now return the mi the MiInfo actually came from and
obmc_blend reads that cell's filter. All three cuts pass the site; they now
stop at the next frontier (the intra 16x4/4x16 strip on the inter block path,
and a Golomb tail on one).

Gate: a_real_aomenc_10bit_obmc_over_1to4_strip_neighbours_decodes_pixel_exact
-- real aomenc, 10-bit 128x128x24, --enable-obmc=1 --enable-1to4-partitions=1
--min-partition-size=4, five seeds, every frame all planes exact vs ffmpeg,
hard assert on the new obmc_pair_filter_hits counter (the pair-sourced
neighbour shape). The refusal string stays as an upstream-desync guard.
Merge branch 'main' into lane-vartxsplitAhmet Kaan Gümüş · 4730c95
Merge branch 'main' into lane-vartxsplit

# Conflicts:
#	crates/ec-av1/src/decode.rs
fix(av1): a compound 8x8 leaf whose transform split erased its four 4x4 TUs' coefficient contextAhmet Kaan Gümüş · 8fd6019
fix(av1): a compound 8x8 leaf whose transform split erased its four 4x4 TUs' coefficient context

The split arm of read_inter_luma8 returns an all-zero placeholder luma grid because
each 4x4 transform unit has already written its own plane-0 neighbour state through
record_mi_luma. The compound leaf then recorded that placeholder over all three planes
(record_mi), wiping the four cul_level/DC-sign cells; the single-ref twin decode_leaf8
has carried the saved_luma_ctx save/restore around the same call since lane-txselect.

Measured on a pinned 8-bit 384x256 cq-10 1:4-partition stream (md5
842355ef494455ead0352f62f84f2c56): decode-order frame 2, block mi(8,16), first DC-sign
symbol -- aomdec dcctx=0 rng=41828, ours dcctx=1 rng=41148, from an empty left band at
mi rows 8-9 owned by the split compound leaf at mi(8,14). All 6 frames now byte-identical
to ffmpeg (was 91201 luma samples wrong on frame 2, whole frames 3-5 desynced).
feat(av1): intra 16x4/4x16 strips in an inter 1:4 partition and the un-split 64x32/32x64 corner transform unit, both refusals narrowed behind one film gateAhmet Kaan Gümüş · ddc5714
feat(av1): intra 16x4/4x16 strips in an inter 1:4 partition and the un-split 64x32/32x64 corner transform unit, both refusals narrowed behind one film gate

Both arms were already written and both sat behind env switches (EC_INTRA16X4_DECODE,
EC_RECT64_SPLIT) because three earlier rounds across two lanes reported that no witness
stream exists: every frame of the 10-bit 3840x1608 stream that fires either arm ALSO
carries a sub-8x8 intra leaf, which refused, so no firing frame ever finished and no
pixel comparison was possible. That dead-end expired with this lane's r2 (the sub-8x8
intra leaves decode); re-measuring is all it took.

The first 50 frame-carrying OBUs of that stream's head now decode all 33 frames with no
refusal and match ffmpeg on every plane of every frame, while intra16x4_in_inter reads
16x4=31 4x16=17 chroma_ref=23 and rect64_corner_tu reads 64x32=90 32x64=5. Pinned as
crates/ec-av1/fixtures/reelb_rect64_intra16x4_witness.obu (23472 bytes, sha256
c9e721088766163b9dbeb9fa8dd8b257ff0ec7f9157fc350de4d3c33cd9ec4e4, cut twice from
independent ffmpeg runs that hashed identically) and gated by
a_10bit_film_frames_with_intra_16x4_strips_and_rect64_corner_tus_decode_pixel_exact,
which hard-asserts all five counters. The full 48-frame segment diverges at decode-order
frame 36; the fixture is the exact prefix, not a truncation chosen to hide that.

Neither refusal STRING leaves refusal_inventory: both are narrowed, not deleted. "a split
intra strip whose transform unit is {tx_w}x{tx_h}" still stands for every shape other
than 64x32/32x64, and the 16x4/4x16 one still stands for a strip with no chroma-pair
record.

Sibling sweep: a_10bit_film_inter_frame_with_intra_1to4_strips_decodes_pixel_exact was
#[ignore]d with the note "un-ignore when the 64x32/32x64 luma coefficient tables land",
so it is un-ignored here. Running it for the first time showed its untested
frames.len() == 2 assert was wrong -- a raw ffmpeg decode of that fixture writes exactly
one 3840x1608 10-bit frame, so the second frame OBU is a no-show. Corrected to 1 with an
added ffmpeg-frame-count equality so the compare cannot go vacuous; the gate is green
with 480 intra 1:4 strips and the shown frame pixel-exact.
test(av1): restore the --tile-columns=1 arm in the sub-8x8 intra gate -- r2's multi-tile desync was main's motion-field tile clamp, fixed by 1d2259cAhmet Kaan Gümüş · 90b0b04
test(av1): restore the --tile-columns=1 arm in the sub-8x8 intra gate -- r2's multi-tile desync was main's motion-field tile clamp, fixed by 1d2259c

The arm was excluded in r2 with a measured reason: the 192x128 cq-63 recipe with
--tile-columns=1 desynced at decode-order frame 4, and identically with
--min-partition-size=16 --max-partition-size=16 (no sub-8x8 block of any kind),
so the defect was pre-existing and not this lane's bands. Merging main brings
1d2259c (av1_copy_frame_mvs read the mi grid through the per-tile reach clamp,
so the saved motion field kept only the last tile's columns) -- exactly the
frame-3/4 temporal-MV shape. With that fix the arm is pixel-exact, so the gate
now carries the neighbour-map tile arm COMMON asks every lane for: 13 arms.
fix(av1): two 1:4 gates asserted a shape their recipes never producedAhmet Kaan Gümüş · a7dc272
fix(av1): two 1:4 gates asserted a shape their recipes never produced

Both were red on their FIRING assert with 0 mismatches and 0 refusals once the
refusals their streams used to stop at were lifted. Measured with aomdec
EC_TRACE/EC_TRACE_COEFF histograms: the old 64-axis 1:4 recipe writes zero 1:4
partitions and zero rectangular sub-transforms, so the leaves the assert counted
came out of a refused stream (class counter-from-refused-stream). Re-swept ~40
recipes: a 384x256 high-frequency product texture at cq 10 with
--min-partition-size=8 --enable-tx-size-search=1 is what splits a rectangular
transform; the rect var-tx gate now uses it (8-bit, 21+15 leaves before a named
refusal). The 16x16-level split-tx-8x4 arm has no decodable recipe at all -- the
one that fires it mismatches the reference at frame 2 -- so it is reported
unproven with the measurement, not asserted. Also feeds aomenc stdin from a
thread: the old shape deadlocked (one encode hung 40 minutes).
feat(av1): intra 8x4/4x8 and 4x4 leaves inside an inter frame's sub-8x8 partitions, refusals lifted behind a real-aomenc gateAhmet Kaan Gümüş · d94fd8e
feat(av1): intra 8x4/4x8 and 4x4 leaves inside an inter frame's sub-8x8 partitions, refusals lifted behind a real-aomenc gate

Both sub-8x8 intra refusals and their `EC_SUB8INTRA_DECODE` bypass are gone:

  "an intra 4x4 block inside an inter frame's sub-8x8 split ..."
  "an intra 8x4/4x8 block inside an inter frame's sub-8x8 HORZ/VERT partition ..."

New gate `a_real_aomenc_inter_sequence_with_intra_sub8x8_leaves_decodes_pixel_exact`
(stream.rs) re-encodes 12 real aomenc streams -- 8/10-bit x cq 48/55/63 x 128x128/192x128,
`--min-partition-size=4 --max-partition-size=8 --enable-1to4-partitions=0` -- and compares
all 6 decode-order frames, all three planes, against ffmpeg. Continue-and-sweep: a named
refusal is recorded, any other decode error or any pixel mismatch fails. The fixture recipe
is encoded twice on the first arm and the two streams compared byte for byte. End-of-sweep
assert reads all five `sub8_intra_rect_hits` cells, so neither lifted refusal rests on a
stream that never carried its shape.

Result: 12/12 arms pixel-exact, counters [8x4=362, 4x8=80, chroma_ref=156, mixed=153,
split4x4=98]. `sub8_intra_rect_hits` grows a fifth cell for the PARTITION_SPLIT 4x4 arm
(the second refusal's own witness); decode_probe prints it.

NOT included, measured not assumed: the `--tile-columns=1` arm. That recipe desyncs at
decode-order frame 4 -- and desyncs identically with `--min-partition-size=16
--max-partition-size=16`, i.e. with no sub-8x8 block in the stream at all, so it is a
pre-existing multi-tile defect, not this lane's bands. Repro pinned in the gate comment.

Sibling gates re-run: sub8/obmc/mv_stack/1to4/refusal_inventory/gate_coverage = 33 passed,
2 failed, 5 ignored -- both failures are the zero-counter RECIPE defects this branch already
carried (16x16-level 1:4 VERT_4 arms, rect var-tx leaf arm), neither a pixel mismatch.
fix(av1): compound 8x8 leaf published transform width 8 to the deblock grid even when its var-tx split it into 4x4 unitsAhmet Kaan Gümüş · 315f5f2
fix(av1): compound 8x8 leaf published transform width 8 to the deblock grid even when its var-tx split it into 4x4 units

`decode_inter_block8`'s COMPOUND early return called `fill_lf_grid(leaf_mi, 2, 8, ..)`
with a literal 8 where the fall-through single-ref tail writes `if split8 { 4 } else { 8 }`.
libaom `get_transform_size` (av1_loopfilter.c:207) reads the per-TU `inter_tx_size` for a
non-skip inter luma block, so the leaf's interior vertical/horizontal edges at x % 8 == 4
are real filter edges. Ours skipped them and widened the neighbouring edge's filter from
4-tap to 8-tap. Class early-return-skips-tail, third instance in this same arm.

Witness (8-bit 128x128 6-frame inter stream, cq 63): entropy and the pre-filter picture were
already exact on every frame; the POSTDEBLOCK dump vs the instrumented aomdec's diverged on
decode frame 2 at luma (78..80, 58..63), 12 px, max delta 3, around the unfiltered x=60 edge
of the 8x8 at mi(20,14) -- our `EC_AV1_DEBLOCK_TRACE_V` printed no VEDGE at x0=60 there while
the block's four TX_4X4 units demand one. A 12-stream sub-8x8-intra probe sweep
(8/10-bit x cq 48/55/63 x 128x128/192x128) goes 10/12 -> 12/12 pixel-EXACT vs ffmpeg.