forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 552edc4cede0dfd9bebbc4e344242802802d15ccFiltered to crates/ec-av1/examples/decode_probe.rsClear filter

2026-09-04

feat(av1): all three scaled-reference (superres) refusals lifted -- 8x8 leaf, sub-8x8, warpAhmet Kaan Gümüş · 421ae92
feat(av1): all three scaled-reference (superres) refusals lifted -- 8x8 leaf, sub-8x8, warp

The 8x8-leaf guard's own comment blamed a below-8x8 desync ("a 4th symbol
out of a 3-symbol alphabet"). That premise was stale: deleting the guard
decodes the pinned --superres-denominator=12 stream straight through to the
NEXT refusal. One wrong alphabet was behind all three.

Root cause (class wrong-alphabet-same-value / branch-dropped-as-unreachable):
decode_inter_block8 read the 3-symbol motion_mode row under a SCALED
reference, where libaom motion_mode_allowed makes WARPED_CAUSAL eligible
only if (num_proj_ref >= 1 && (allow_warped_motion && !av1_is_scaled(sf))) --
so the alphabet shrinks to the 2-symbol obmc one (with OBMC off, no symbol
at all). The 16x16+ path already had `&& !ref_is_scaled`; the leaf's own
comment asked whoever lifted the refusal to add it, and nobody could reach
the code to notice. First-bad without it: 96x96 denom-12 warped stream,
decode-order frame 3, luma (15,54), 7652 samples wrong, max 155.

Lifted, each byte-exact vs ffmpeg with its own hit counter:
* "an 8x8 partition leaf under a scaled reference"
* "a sub-8x8 inter block under a scaled reference" (both sub8 readers)
* "warp prediction with a scaled reference" -- its translational fallback
  was already implemented and the refusal sat in FRONT of it (class
  refusal-short-circuits-its-own-code); the r1 mismatch that kept it alive
  was the strip chroma piece below, not the fallback.

Same-shape sweep of "every caller that computes a scaled start position":
* mc::predict_maybe_scaled -- the one dispatch the sub-8x8 luma/chroma
  callers now share instead of hardcoding the unscaled walk.
* the 16x4/4x16 strip's sub-8x8 chroma piece was SKIPPED entirely under a
  scaled reference (silent wrong pixels, no refusal); it now rebuilds from
  the PREVIOUS strip's own reference and that reference's own scale factor.
* allow_warp's scale bail-out was missing at the 8x8-leaf single-ref warp
  and at both compound warp sites (PER SLOT: one tap can be scaled while
  its sibling still warps).

Gate: real_superres_streams_with_sub8_leaf8_and_warp_decode_pixel_exact --
two 96x96 denom-12 streams, every unrelated tool off, pixel-exact vs ffmpeg;
arm A hard-asserts scaled leaf8 + sub8 hits, arm B asserts a WARPED_CAUSAL
eligibility was suppressed by scale. The r27 census now asserts none of the
three strings can come back. Inventory rows removed.
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter resetAhmet Kaan Gümüş · 6a16223
feat(av1): reconstruct palette blocks inside inter frames, and fix the palette colour-index CDF counter reset

An intra block in an inter frame refused by name the moment it actually used
a palette ("reconstruction is out of scope"), at both the square
(`decode_inter_block`) and the rect (`decode_intra_rect_in_inter`) path. Both
now read the real syntax -- mode/size/colours off this block's own
`av1_get_palette_mode_ctx` context and `av1_get_palette_cache` colour cache,
the two colour-index maps deferred past `filter_intra` exactly as
`av1_visit_palette` runs them -- and predict from the map (per transform unit
where the luma transform splits), the same machinery the key-frame paths use.
Every block of an inter frame now also stamps its palette state (all-zero for
an inter block) into the mi-granular neighbour bands, which is what libaom's
mode-info grid holds and what the next block's cache and mode context read.

The witness then desynced at the FIRST inter-frame palette block's colour
index map, third symbol: the two palette colour-index tables are this
decoder's only variable-alphabet CDFs (the reader takes `[..=n]` of a
`[u16; 9]` row, so `update_cdf`'s symbol counter lives at index `n`), and
`Cdfs::reset_counts` zeroed the array's last slot instead. Every colour-index
row therefore crossed a frame boundary with a saturated count and adapted at
rate 6 where libaom, counting from zero, adapts at 4 (class
cdf-counter-not-reset). Swept: those two are the only `[..=n]` readers here.

Also lifted, as a stale premise: the 16x4/4x16 arm of "a HORZ/VERT intra strip
in a screen-content frame (palette syntax is consumed for square blocks
only)" -- that arm routes through `decode_rect4_16_strip`, which takes
`allow_screen_content_tools` and reads the whole palette syntax already. The
128-root arm keeps the refusal (its body reads none, and no --sb-size=128
screen witness exists).

Gates (aomenc --tune-content=screen --enable-palette=1 --enable-intrabc=0
--sb-size=64, 15 frames, key + inter, 8-bit and 10-bit twins):
a_real_aomenc_screen_stream_with_palette_blocks_decodes_pixel_exact and
a_screen_stream_with_16x4_intra_strips_in_inter_frames_decodes_pixel_exact --
all 15 frames byte-exact vs ffmpeg on every plane, with inter-frame palette
counters y/uv > 0 so neither gate is vacuous.

2026-09-03

feat(av1): streaming decode entry point -- decode_stream_with emits each picture and drops itAhmet Kaan Gümüş · d994115
feat(av1): streaming decode entry point -- decode_stream_with emits each picture and drops it

decode_stream returned every shown Picture in one Vec and decode_probe's
EC_PROBE_OUT16 built a second full copy of the raw dump before one write, so
peak RSS was 2x the whole decoded segment: an 8 s 4K 10-bit window exceeded
20 GiB and a whole-film decode was impossible.

stream.rs: the decode loop is now decode_stream_with(data, sink), which hands
each completed picture to the sink and drops it; only the 8 reference slots
plus the current frame stay alive. decode_stream is a thin collecting wrapper,
so every existing test and gate is unchanged. Hidden frames are reported with
shown == false.

decode_probe: writes each shown frame straight to EC_PROBE_OUT16/EC_PROBE_OUT
(either may be a FIFO) as it completes; the OK/REFUSED/counter lines are
unchanged.

2026-09-02

test(av1): witness the mi-granular uv_mode grid on the small-side GLOBALMV gateAhmet Kaan Gümüş · 86dc1a6
test(av1): witness the mi-granular uv_mode grid on the small-side GLOBALMV gate

The r12 chroma edge-filter fix (uv_mode read off the mi grid instead of a
one-slot-per-column map) shipped without a gate asserting it fired. The
existing 10-bit 1920x792 warp-reach fixture fires it 138 times, so the gate
now hard-asserts uv_mode_grid_override > 0 and reports the count; decode_probe
prints the counter too. No new fixture needed.
fix(av1): the mv-stack frame-edge clamp window is signed -- a block overhanging the bottom/right edge was never clampedAhmet Kaan Gümüş · 3bd2894
fix(av1): the mv-stack frame-edge clamp window is signed -- a block overhanging the bottom/right edge was never clamped

libaom's `mb_to_right_edge` / `mb_to_bottom_edge` (`set_mi_row_col`,
av1_common_int.h) are signed: a block that overhangs the frame's right or
bottom edge keeps its full `bw4`/`bh4`, so `mi_cols - bw4 - mi_col` and
`mi_rows - bh4 - mi_row` go NEGATIVE and `clamp_mv_ref` (mvref_common.h)
narrows the predictor window by exactly that much. Our port computed both
terms with `usize::saturating_sub`, which clipped them to 0 and left the
window up to two block sizes too wide, so an edge block's stack entry was
never clamped.

On a 10-bit 3840x1608 stream (`mi_rows == 402`) every bottom-row 64x64 block
overhangs by 14 mi units: the 64x64 NEWMV block at mi(400,368) of decode
frame 88 took `mv0=(224,568)` where libaom takes `(32,568)` -- the entropy
stream is identical (same range at EC_MODE and EC_MODE_MV), only the
reconstructed value differed -- and its MC then read the reference's
replicated last row instead of real rows 1604..1606. That frame was the only
non-exact one in the 100-frame 4K head prefix (221 bytes); it is now exact.

New counter `mvstack::mv_clamp_edge_overhang_hits` (also printed by
decode_probe) counts stack entries the negative-edge window actually moves.

crates/ec-av1/fixtures/reelb_head_mvclamp_witness.obu (72158 bytes, sha256
451a9b138995e636f22308847a123b5c8621d4908cd93772cf5bbf2b37df39d7, truncated
twice to identical hashes) is the smallest prefix of that head firing it
(N=79 -> 0, N=80 -> 5); new gate
`a_10bit_film_frames_with_frame_edge_mv_clamping_decode_pixel_exact` decodes
its 52 shown frames pixel-exact against ffmpeg on every plane and hard-asserts
the counter. `clamp_mv_ref_window_is_signed_at_the_frame_bottom_edge` pins the
ladder's exact numbers.
fix(av1): the warp-sample top-right probe uses the block's LONGER side, plus EC_MM/EC_MM2/EC_PROJ/EC_PROBE_HDR rungsAhmet Kaan Gümüş · 864b5c6
fix(av1): the warp-sample top-right probe uses the block's LONGER side, plus EC_MM/EC_MM2/EC_PROJ/EC_PROBE_HDR rungs

libaom `av1_findSamples` (mvref_common.c:1235) probes the top-right neighbour
with `has_top_right(cm, xd, mi_row, mi_col, AOMMAX(xd->width, xd->height))`;
we passed the block's WIDTH. A 64x128 block therefore collected a top-right
warp sample libaom never sees, so `num_proj_ref >= 1` made
`motion_mode_allowed` resolve to WARPED_CAUSAL and read the 3-symbol
`motion_mode_cdf` where libaom reads the 2-symbol `obmc_cdf` -- same value,
different narrowing (class wrong-alphabet-same-value).

Localised on the 10-bit 1920x792 264-frame cut, decode frame 49, block
mi(64,144) 64x128 NEWMV ref0=1: after the mv both decoders sit at rng 47868;
aomdec's motion_mode lands at 45539 (47868 * 0.951, the BLOCK_64X128 obmc row
31014/32768) and ours at 41629 (47868 * 0.870, the motion_mode row
28898/32768). The offending sample was the top-right cell, a 64x16 neighbour
that `has_top_right(.., bw4=16)` reaches and `has_top_right(.., 32)` does not.

Counter `tr_reach_longer_side_hits()` counts only blocks where the two probes
disagree (1942 on that cut). NOT yet gate-asserted and the named gates were
NOT re-run after this hunk -- see lanes/t900-r9.handoff.md.

New rungs, all env-gated: EC_PROBE_HDR (one EC_HDR line per decode-order
frame: type/show/base_q/primary_ref/ref_idx/refresh/order_hint/tiles/txmode/
interp/allow_warp/cdef/lr), EC_MM + EC_MM2 under EC_TRACE_MODE_STEP (the
motion_mode eligibility terms and which ALPHABET was read -- a suppressed
symbol prints nothing otherwise), and EC_PROJ_MI=<row>,<col> listing a block's
warp-sample candidates in libaom's order.
fix(av1): a GLOBALMV block with a 4-px side must still read its interp filterAhmet Kaan Gümüş · defe73a
fix(av1): a GLOBALMV block with a 4-px side must still read its interp filter

libaom `is_nontrans_global_motion` (mvref_common.h) returns 0 at
`AOMMIN(mi_size_wide[bsize], mi_size_high[bsize]) < 2` BEFORE it looks at any
global-motion model, so no block with a 4-px side is ever "non-translational
global" and `av1_is_interp_needed` never suppresses its interp-filter symbol.
Our two sub-8x8 readers (quad-4x4 and the 4x8/8x4 rect pair) and the compound
arm of decode_inter_block computed `gm_nontrans` from the model alone and
skipped that symbol -- a one-symbol entropy desync at the block, before any
coefficient. The single-ref arm of decode_inter_block already carried the
guard; the 8x8-leaf reader cannot hit it (min side 2).

Counter `gm_nontrans_small_side_hits()` counts only the blocks where the guard
flips our answer (printed by decode_probe).

Measured on the 10-bit 3840x1608 head cut (170 decode frames), coefficient
ladder vs aomdec (tags all_zero/eob/after_bases + rng): decode frame 99 was
DIFF at element 11933 (we read txfm_split where aomdec read interp: our
rng 60039 vs 46640 at block mi(40,637), the second 4x8 of a vertical sub-8x8
group, GLOBALMV ref0=5); it is now element-exact over all 69065 elements.
Counter fires 109 times on that cut.
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block'sAhmet Kaan Gümüş · 3898141
fix(av1): a sub-8x8 inter group's chroma inherits the CHROMA-REFERENCE sub-block's tx_type, not the first sub-block's

`av1_get_tx_type` (libaom `av1/common/blockd.h:1291-1305`) scales the chroma
transform's `blk_row`/`blk_col` back by the subsampling and indexes
`xd->tx_type_map` -- which `set_mi_offsets` (`av1_common_int.h:1679`) re-points
to the CURRENT sub-block's mi. For a sub-8x8 group the current block at the
chroma read is the chroma-reference (last) sub-block, so the group's one 4x4
chroma unit per plane inherits THAT sub-block's first transform unit's
tx_type. Both sub-8x8 inter paths took the group's FIRST sub-block instead.

No chroma tx_type symbol is coded, so the entropy stream stayed perfectly in
sync and the defect only inverted a chroma unit on the wrong basis: on the
10-bit 1920x792 128-superblock stream, decode-order frame 14 differed in
exactly 14 U pixels inside one aligned 4x4 chroma TU (V exact -- its unit was
all_zero), where instrumented aomdec reads tx_type=7 (ADST_FLIPADST, the
bottom 8x4 sub-block's own) and we read DCT_DCT (the top 8x4 sub-block was
skip).

New counter `sub8_chroma_tx_from_ref_hits` counts the groups that tell the two
rules apart: chroma-reference tx_type != first sub-block's AND the chroma unit
codes coefficients. The 128-SB witness fixture is extended from 19 to 23
frame-carrying OBUs (14 -> 16 decode-order frames, 12 -> 15 shown, 177773
bytes, sha256 09d995946d27695ef4b7b1a24a4d7ad85f8e2c8176d58ee54e825efc061f9cbc,
two independent cuts hash identically) so the gate covers frame 14, and it
hard-asserts the new counter (2 hits) alongside the eight it already had.
fix(av1): interintra built a square intra predictor for rectangular blocksAhmet Kaan Gümüş · 9a73c30
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)).
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.
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.
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.
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.
feat(av1): intra 8x4/4x8 and 4x4 leaves of an inter frame's sub-8x8 partition decode behind EC_SUB8INTRA_DECODE (gate RED, refusals kept)Ahmet Kaan Gümüş · 2b05cf7
feat(av1): intra 8x4/4x8 and 4x4 leaves of an inter frame's sub-8x8 partition decode behind EC_SUB8INTRA_DECODE (gate RED, refusals kept)

decode_intra_sub8_leaf reads read_intra_block_mode_info's syntax (y_mode[0], no
angle delta below 8x8, uv_mode + CfL only on the chroma reference, filter_intra
off the shape's own class row) and then decode_leaf_rect8's luma/chroma body,
with the INTER frame's tx-depth context and set_txfm_ctxs publication. Both
sub-8x8 callers guard their chroma tail when the chroma reference is intra, and
predict the group's 4x4 chroma WHOLE from the chroma-reference block's mv when a
sibling is intra (is_sub8x8_inter false).

Measured: 5/6 film probes stop first on sub-block 0 of a HORZ/VERT pair, non-skip;
under the switch all six move to the next wall. The path is NOT proven: on an
8-bit 128x128 aomenc witness the intra leaf itself is bit-exact (mode + tx_depth
rng match the oracle) but the stream desyncs inside the next 8x8 group, so the
refusals stay the default behaviour and no gate is added.
feat(av1): intra 16x4/4x16 strip of an inter 16x16-level 1:4 partition decodes behind EC_INTRA16X4_DECODE (gate RED, refusal kept)Ahmet Kaan Gümüş · dfaeea5
feat(av1): intra 16x4/4x16 strip of an inter 16x16-level 1:4 partition decodes behind EC_INTRA16X4_DECODE (gate RED, refusal kept)

The key frame's per-strip body is lifted out of decode_rect4_16 into
decode_rect4_16_strip and run from the INTER block path with
INTRA_IN_INTER_MODE = (size_group 0, the skip decode_inter_block already read),
so a single intra strip of a partition whose other strips are inter decodes
through the readers the key frame already proves -- including the 4:2:0 pairing
(even strips read no chroma, the odd one codes one 8x4/4x8 unit at the pair's
origin, predicted per the strip that carries it).

The inter path additionally publishes set_txfm_ctxs + txfm_partition_update for
the strip (the key-frame body has no var-tx tree) and reads the tx-depth symbol
off the real TXFM_CONTEXT bands; without that the block after the strip broke
while the strip itself was exact.

Not pixel-proven: the r1 gate (real aomenc, 4 recipes x 8/10 bit, every frame
Y/U/V vs ffmpeg) is RED and #[ignore]d with its measurement, so the named
refusal stays the default and the new path is behind EC_INTRA16X4_DECODE=1.
Measured with the switch on, all six 10-bit film probes leave this wall (five
stop on the sub-8x8 intra block, another lane's shape).
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)Ahmet Kaan Gümüş · 0f5742b
feat(av1): the 32x32-level 1:4 inter strip codes its rectangular residual (32x8/8x32)

MEASURED first: an env-gated print at the refusal site (EC_RECTRES=1) on both
10-bit 3840x1608 film cuts and four offsets of the 10-bit 1920x792 stream gives
6/6 refusals at w=32 h=8 or w=8 h=32, non-skip, inter -- nothing else. The
64-axis shapes the charter expected were already supported and never fire.

TX_32X8 codes all 256 positions. New TxbSet::LumaRect32x8Inter = the intra
LumaRect32x8 tables (get_txsize_entropy_ctx = TX_16X16, txsize_log2_minus4 = 4)
plus a tx_type table the intra twin has none of: av1_get_ext_tx_set_type at
tx_size_sqr_up == TX_32X32 is EXT_TX_SET_DCT_IDTX for inter with or without
reduced_tx_set, read at the txsize_sqr_map[TX_32X8] == TX_8X8 row. Chroma pair
is one 16x4/4x16 unit (ss_size_lookup[BLOCK_32X8] = BLOCK_16X4) = Chroma8's
tables. Scans, sub_tx_size_map[TX_32X8] = TX_16X8 var-tx leaves and the rect
coefficient reader were already shape-general.

Gate a_real_aomenc_inter_sequence_with_32x32_level_1to4_strips_codes_their_rect_residual:
real aomenc, --enable-1to4-partitions=1 --enable-tx-size-search=1
--min-partition-size=8 --max-partition-size=32, 16 attempts x 8/10-bit, both
orientations, every decode-order frame Y/U/V vs ffmpeg, oos_mismatch == 0, one
hard assert per lifted shape on the PIXEL-COMPARED counter: 32x8=7 8x32=8,
0 refusals, 0 mismatches. A 72-run recipe sweep found that only 32-pixel motion
bands at cq >= 48 make aomenc code a NON-SKIP strip; narrower bands give the
same partition with skip set and prove nothing about the residual.

Film frontier: the 10-bit 3840x1608 cut still shows 33 frames -- the gain is
inside frame 34, which now codes a 32x8 residual unit and stops on a different
wall (an intra 16x4/4x16 strip inside an inter 16x16-level 1:4 partition). All
six cuts moved to that same next refusal. The rect64 refusal is NOT lifted: the
clean prefix reports rect64_corner_tu 0/0, so no witness exists yet.
feat(av1): TX_64X32/TX_32X64 luma corner read for a split intra strip, behind EC_RECT64_SPLIT=1 (no witness yet)Ahmet Kaan Gümüş · 42d7c39
feat(av1): TX_64X32/TX_32X64 luma corner read for a split intra strip, behind EC_RECT64_SPLIT=1 (no witness yet)

Hand-port of the lane-intra64split decode hunk onto main 78d8ff7: a 64-level
HORZ/VERT intra strip whose luma transform unit is the un-split TX_64X32 /
TX_32X64 reads its coded 32x32 corner through TxbSet::Luma64 with
default_scan(TX32) and the real rect shape passed to av1_nz_map_ctx_offset --
byte for byte decode_block_rect64's depth-0 key-frame arm. Per-orientation
counter rect64_corner_tu_hits(0|1) exported through stream.rs and printed by
decode_probe.

NOT lifted: measured on both 10-bit 3840x1608 cuts, the arm fires (16x 64x32 +
2x 32x64 on the first cut, 2x 32x64 on the second) but the SAME frame then
stops at "a non-skip rectangular (HORZ/VERT/HORZ_B) strip needs rectangular
residual coding", so no frame containing the shape ever completes and no pixel
comparison exists. A refusal is lifted only with a gate, so the arm sits behind
EC_RECT64_SPLIT=1 and the refusal stays the default; refusal_inventory and
gate_coverage unchanged.
Merge branch 'lane-sbab' (1847e97): superblock-level inter AB partitionsAhmet Kaan Gümüş · 959902b
Merge branch 'lane-sbab' (1847e97): superblock-level inter AB partitions

Lifts the 64-level inter AB refusal (HORZ_A/HORZ_B/VERT_A/VERT_B: two 32x32
inter squares plus one true 64x32/32x64 strip) and writes the var-tx side
bands from write_w/write_h. Conflicts resolved keeping main's newer refusal
list minus the SB-level AB entry this lane lifts, and both probe counters.

Gates: inter_ab64 / sb_level_ab / superblock_level_rect_partition /
refusal_inventory / gate_coverage / base_ctx_rect_offsets -- 16 passed.

Known vacuity (accepted, as chartered):
real_aomenc_1to4_streams_decode_pixel_exact_and_rect_vartx_leaves_fire_before_a_named_refusal
now reds on its FIRING assert only -- 0 refusals, 0 mismatches, 0 rectangular
var-tx leaves reached; the lane's earlier neighbour-band fix makes attempts
refuse earlier. Pending lane-inter16ab r7.
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edgesAhmet Kaan Gümüş · ec3d792
Merge branch 'lane-sb128c' (4e65b8a): the 128 partition root's inter arms and gathered 128 edges

Inter 128x128 NONE roots, intra-128-in-inter, and the gathered-edge HORZ/VERT
128x64 / 64x128 blocks, with the 17-row MOTION_MODE/OBMC tables and
has_top_right size-half gating. Conflicts resolved keeping both sides
everywhere they added; main's NOCFL counter kept over the lane's identical
is_cfl_allowed fix, the lane's skip-inter-128 loop-filter suppression kept, and
the chroma tail is now `!has_chroma` / `side > 64` / `rect_tu` in that order.
cdf.rs NZ_MAP*/FILTER_INTRA* unchanged (only OBMC/MOTION_MODE go 14 -> 17 rows).

Gates: 128x128 / superblock / gathered_edge_horz / ab_partitions /
free_partitions / 1to4_streams / mvstack:: / refusal_inventory /
gate_coverage / base_ctx_rect_offsets -- 75 passed, 0 failed, 1 ignored.

Known cross-product reds carried into this tree (owned by the mergefix lane,
reported by the batch coordinator on an equivalent merged tree):
a_frame_edge_straddling_band_decodes_pixel_exact and
a_real_aomenc_10bit_inter_sequence_with_a_split_transform_intra_block_decodes_pixel_exact.
fix(av1): an 8x8 intra leaf ignored the use_intrabc it had just readAhmet Kaan Gümüş · 68ca7c5
fix(av1): an 8x8 intra leaf ignored the use_intrabc it had just read

decode_leaf8 consumed use_intrabc and its DV through read_intra_mode and
then decoded the block as ordinary intra: it read the luma tx_type off the
7-symbol TX_SET_INTRA_1 row where libaom reads the 16-symbol
EXT_TX_SET_ALL16 (is_inter_block counts is_intrabc_block, blockd.h:373), so
the msac range diverged at the next symbol with no refusal -- invisible in
the r6 residue because the block sat in the frame's LAST superblock.

The leaf now mirrors decode_block: inter ext-tx set, BILINEAR prediction from
the current frame's pre-filter reconstruction at the DV (skip and non-skip),
chroma tx_type inherited from the coded luma type and DISARMED after the V
read (leaving it armed leaked into every later chroma block: 320 chroma
samples, luma exact), an inter-skip tx size under TxMode::Select (unskipped
is refused with decode_block's existing string), and record_intrabc_mi so a
later DV's MV stack sees the leaf.

Gate: a_real_aomenc_screen_key_frame_reads_use_intrabc_on_rect_strips arm 8
"testsrc2-cq55-leaf8" (rect and 1:4 partitions off, palette on, tx-size-search
off) with a hard per-arm leaf8_intrabc_hits assert and a gate-wide vacuity
assert; 256x192 8-bit screen stream goes 320 wrong chroma samples + an entropy
desync -> whole frame identical to ffmpeg. Full suite still owed (handoff).
Merge branch 'lane-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooksAhmet Kaan Gümüş · 305b01a
Merge branch 'lane-inter16ab' (2e711e1): 16-level inter 1:4 arms and rectangular wedge codebooks

Rect compound_type/wedge_idx CDF rows keyed by the block's true (w,h), the
8x4/4x8 inter coefficient sets, and the hgtw/hltw rectangular wedge codebooks
(288-entry libaom enumeration pinned at lanes/wedge_libaom.expected.txt).

Conflict resolution: the lane and main had each landed the same
BLOCK_SIZES_ALL row fix under different names -- kept the lane's
bsize_all_index / wedge_used_bsize / is_any_masked_compound_used_here and
deleted main's duplicates (main's wedge_used_wh wrongly listed 16x64/64x16,
which have no wedge codebook in libaom). The TxbSet 8x4-inter variants were
also duplicated: kept main's names, dropped the lane's identical twins. Main's
non-square COMPOUND_WEDGE refusal, auto-merged into the lane's lifted code,
removed.

Gates: wedge (1), interintra_wedge (2), rectangular_compound_wedge (1),
16x16_level_1to4 (1), 16x16_level_ab (1), 1to4 family (7),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- pass.
test(av1): instrument the CDEF per-8x8 skip band, and gate skipped rect inter stripsAhmet Kaan Gümüş · a81f6e3
test(av1): instrument the CDEF per-8x8 skip band, and gate skipped rect inter strips

The charter's premise (32x8/8x32 and the other rect-strip inter arms never
write the per-8x8 CDEF skip band, the sibling of the 8x8-leaf gap lane-cdef
fixed) is DISPROVED, measured not argued.

Instrument instead of an arm-by-arm audit: Neighbours::skip_written records
whether any coded block wrote the per-mi skip band this frame, and apply_cdef
counts 8x8 CDEF units with an unwritten band (decode::cdef_unwritten_skip_units)
in a pass placed before both of its early returns, so the count is valid for
every frame. A fresh Neighbours seeds skip_grid all-false ("not skip"), so an
arm that forgets fill_skip_grid_rect is exactly an unwritten unit -- the defect
class, visible without pixels.

Result: 0 unwritten units on 177 real aomenc streams (145 corpus + 32 new sweep
arms: 2 sources x cq 18/24/32/45 x min-partition-size 4/8 x 8+10 bit), covering
32x8/8x32/64x32/32x64/64x16/16x64 strips and the AB/1:4 arms. Two more counters
for the class: rect_skip_band_hits (skipped RECTANGULAR blocks that wrote the
band, 49 in the new gate) and cdef_mixed_skip_units (an 8x8 unit whose four mi
cells disagree on skip -- 0 everywhere, since only 16x4/4x16 and sub-8x8 inter
can straddle a unit and both are still refused).

Also re-measured: the charter's named +-1 defect (4 luma px of decode-order
frame 1 in a skipped 32x8 strip row) is already gone on this main -- lane-cdef
fixed it. That stream's LAST frame still mismatches, but it mismatches with
--enable-cdef=0 too, so it is a separate, non-CDEF defect (report section 4).

Gate: a_real_aomenc_stream_with_skipped_rect_inter_strips_keeps_the_cdef_skip_band
-- real aomenc, cdef + rect + 1:4 enabled, min-partition-size=8, 6 arms over
8+10 bit and cq 18/24/45, every decode-order frame on all three planes, hard
asserting the unwritten count never grows; an attempt counts as firing only when
a skipped rect strip wrote the band AND an 8x8 unit was excluded by the all-skip
rule. 4 firing+exact attempts.
Merge branch 'lane-intersub8' (a5b9770): sub-8x8 inter partitions (SPLIT, HORZ, VERT) lifted and gatedAhmet Kaan Gümüş · 89682ac
Merge branch 'lane-intersub8' (a5b9770): sub-8x8 inter partitions (SPLIT, HORZ, VERT) lifted and gated

The "an inter partition below 8x8" refusal is gone: the sub-8x8 inter arms decode,
with the CDEF skip band for the 8x4/4x8 pair, and are gated at both bit depths.
Four narrower refusals take its place (intra 4x4 / 8x4 / 4x8 inside the sub-8x8
split, sub-8x8 under a scaled reference, COMPOUND_WEDGE on a non-square block).

Merge resolution: this lane's compound-8x8-leaf interp read is DROPPED -- lane-interp3
landed the same read with the is_nontrans_global_motion suppression term, and keeping
both would have read the switchable_interp symbol twice. The lane's palette-on-1:4
refusal is not carried (lane-kf900 lifted that shape). Trace rungs from both sides kept.

Gates: sub8x8_inter (1), dual_filter_obmc_8x8 (1), obmc (5), refusal_inventory (3),
gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
Merge branch 'lane-interedge' (9920c36): inter 32-level HORZ/VERT second-strip frame-edge guardAhmet Kaan Gümüş · cfa93c0
Merge branch 'lane-interedge' (9920c36): inter 32-level HORZ/VERT second-strip frame-edge guard

The second half of an inter HORZ/VERT at the true frame edge carries no symbols and
no grid writes (libaom decode_partition's has_rows/has_cols guard); the oddh inter
arm is un-ignored. Merge resolution keeps BOTH witness counters at the four sites --
lane-golomb's bump_edge32 before the guard and this lane's bump_inter_edge_strip in
the else.

Gates: inter_frame_edge_half_strip (1), odd (4), 32x32_frame_edge (1),
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets (1) -- all pass.
feat(av1): decode the 128 root's gathered frame-edge HORZ/VERT arm on the inter pathAhmet Kaan Gümüş · 83a30ca
feat(av1): decode the 128 root's gathered frame-edge HORZ/VERT arm on the inter path

mi_rows/mi_cols that do not fill the last 128 superblock make has_rows128 /
has_cols128 false, and the gathered bit then codes PARTITION_HORZ (a 128x64
block whose bottom half is outside the frame) or PARTITION_VERT (64x128) --
the only 128-partition shape a 1080p stream reaches (mi_rows 270). The inter
tile path now decodes both through inter_piece! with two TX_64X64 luma units
per mu chunk, TX_32X32 chroma, per-block cdef_idx fan-out and sb-size-aware
whole-block delta-q; Neighbours::new pads its side arrays to a superblock
multiple (libaom av1_alloc_context_buffers) since such a block records state
past the last mi row. The intra path is square-block only and now refuses the
arm BY NAME instead of silently decoding it as four 64x64 quadrants.

Gate a_real_aomenc_sb128_gathered_edge_horz_partition_decodes_pixel_exact:
4 real aomenc --sb-size=128 --cpu-used=0 streams (384x320 and 192x256, 8+10
bit, cq 32/45/55), every decode-order frame incl. the hidden alt-ref compared
against the instrumented aomdec, hard-asserting the edge counter and the inter
128x64/64x128 block counter.
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.
wip(sbab): partial from the interrupted roundAhmet Kaan Gümüş · f760942
wip(sbab): partial from the interrupted round

Superblock-level inter AB partition arms (HORZ_A/HORZ_B/VERT_A/VERT_B at
64x64 in an inter frame) plus a per-arm hit counter; refusal line removed.
No gate yet.
fix(av1): inter 32x32-level HORZ/VERT decoded the frame-edge second strip libaom never codedAhmet Kaan Gümüş · ca58ed5
fix(av1): inter 32x32-level HORZ/VERT decoded the frame-edge second strip libaom never coded

Merges lane-cdef 8c6065e (cdef_find_dir at a crop edge) and fixes the inter tile's
32-level PARTITION_HORZ/PARTITION_VERT, which decoded the second 32x16/16x32 strip
unconditionally. libaom decode_partition guards it with has_rows/has_cols, so at a
frame edge (height or width mod 16 == 8 -- both of the user's films) we read symbols
the encoder never wrote: without the guard a 72x192 cq32 stream refuses outright and
a 104x192 one decodes luma rows 127..191 of frame 5 wrong.

Adds an inter_edge_strip counter per level (64/32/16) x axis and un-ignores
lane-oddh r2's inter arm as a 5-size real-aomenc gate: 30 attempts luma-exact,
edge hits [109,34,0,3,2,432], 0 refusals, control 192x128 zero hits.
Merge branch 'main' (aa83400) into lane-intersub8Ahmet Kaan Gümüş · b198e87
Merge branch 'main' (aa83400) into lane-intersub8

Auto-merge clean in decode.rs / stream.rs / refusal_inventory.rs /
decode_probe.rs; cdf.rs is byte-identical to main's. One bsize_index and one
compound_type/wedge_idx read site survive the merge, so main's inter16ab
copy of the rect CDF-row fix and this lane's r4 copy did not duplicate.
cargo check -p ec-av1 --all-targets is clean.
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocksAhmet Kaan Gümüş · da48c91
feat(av1): rectangular wedge masks (hgtw/hltw codebooks) -- COMPOUND_WEDGE and wedge-interintra on 8x16/16x8/16x32/32x16/8x32/32x8 inter blocks

wedge.rs carried only wedge_codebook_16_heqw and the one signflip row the
three square sizes share, so every rectangular masked-compound or
wedge-interintra block was refused by name. Ported the remaining two
codebooks (wedge_codebook_16_hgtw for h>w, _hltw for h<w, reconinter.c
203-235) and the four distinct wedge_signflip_lookup rows (reconinter.c
160-183), keyed by the block's TRUE footprint.

Masks are stored padded to a max(bw,bh)-square plane so the existing
square prediction/blend buffers index them unchanged (a rect strip is
predicted square and writes only write_w x write_h).

Verification by ENUMERATION against a C harness LINKED AGAINST libaom
(av1_init_wedge_masks + av1_get_contiguous_soft_mask): all 9 wedge-capable
bsizes x 2 signs x 16 indices = 288 checksums, fixture
lanes/wedge_libaom.expected.txt; its 96 square lines are byte-identical to
the older independent transcription lanes/wedge_dump.expected.txt.

New gate a_real_aomenc_stream_with_a_rectangular_compound_wedge_decodes_pixel_exact:
16/16 attempts (8+10 bit, cq 50/55, 4 pans) pixel-exact vs ffmpeg and vs
aomdec over every decode-order frame, 298 rect wedge blocks
(16x32=108 hgtw, 32x16=190 hltw), 0 zero-wedge mismatches.

Both "the wedge codebook is square-only" refusals dropped from
refusal_inventory. The 1:4 gate's VERT_4 / split-tx-8x4 arms now assert
their MEASURED blocker (the rect-residual-coding refusal) instead of a
bare 0.
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): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refusedAhmet Kaan Gümüş · 60b3ba2
feat(av1): sub-8x8 inter PARTITION_VERT (two BLOCK_4X8 leaves); HORZ twin implemented but refused

decode_inter_sub8_rect2 codes both rectangular sub-8x8 inter shapes: per-sub-block mode info
in decodemv.c order (single ref only -- is_comp_ref_allowed(BLOCK_8X4) false, so no skip_mode
and no comp_mode; no interintra/motion_mode/OBMC/warp below min dim 8), one txfm_partition
symbol at max TX_8X4/TX_4X8 through r14's general read_var_tx_size, chroma coded once on the
chroma-reference (second) sub-block as one TX_4X4 per plane with sub8x8 prediction from BOTH
sub-blocks' mvs (reconinter.c build_inter_predictors_sub8x8), and per-mi neighbour/mv-grid
writes over the true w_mi x h_mi span.

New luma coefficient sets TxbSet::LumaRect8x4Inter{,Set1}: LumaRect4x8's tables (8x8
coefficient class, 32-position eob_pt) with the inter TX_4X4 tx_type row (EXT_TX_SET_ALL16).
These also close the panic risk lane-inter16ab r3 noted, where a TX_16X4 -> TX_8X4 var-tx
split reached rect_inter_luma_set's unreachable!().

Gate: a_real_aomenc_inter_sequence_with_a_sub8x8_inter_split_decodes_pixel_exact now runs 16
attempts per bit depth -- 0..7 with --enable-rect-partitions=0 (SPLIT, unchanged) and 8..15
with =1 (VERT) -- and asserts a new rect_fired >= 2 alongside fired >= 2 and
out_of_scope_mismatch == 0, comparing every decode-order frame Y/U/V at 8 and 10 bit.

The HORZ (two BLOCK_8X4) arm is refused by name rather than shipped: a 28-arm sweep on a
transposed-structure source mismatches on 4 arms at cq 12/14/16/32, outside the known CDEF
band. Range ladder on one of them localizes the divergence to the mode info of the 16x8 inter
block immediately to the group's right -- matching through its EC_MODE entry, differing by its
first coefficient TU -- i.e. a per-row neighbour band the group leaves behind. Details in
lanes/intersub8-r3.handoff.md.
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.
fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocksAhmet Kaan Gümüş · c3fc174
fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocks

The lane-r14 merge made read_var_tx_size general, so sub_tx_size_map[TX_16X4]
== TX_8X4 now reaches rect_inter_residual_supported(8,4) == false and
rect_inter_luma_set's unreachable!(). That panic was live: the 10-bit
directional-angle-delta gate failed the r3 suite at decode.rs:11799, not on
this lane's own gate.

- TxbSet::LumaRect8x4Inter{,1}: LumaRect4x8's shape (Luma8 coefficient
  tables, true 32-position eob_pt) with the INTER tx_type table at
  txsize_sqr_map[TX_8X4] = TX_4X4 -- av1_get_ext_tx_set_type (blockd.h:1097)
  at tx_size_sqr_up == TX_8X8 returns DCT_IDTX reduced / ALL16 unreduced.
- rect_inter_residual_supported += (8,4)|(4,8) (split leaves only; an 8x4
  inter BLOCK is still refused as "an inter partition below 8x8").
- rect_inter_luma_set / rect_inter_chroma_set / rect_scan return Result: every
  remaining unreachable!() on a stream-derived shape in that path is now a
  named refusal (3 new refusal_inventory entries).
- Class sweep of the r3 root cause (a CDF row taken from the enclosing square
  side on a rectangular block): is_any_masked_compound_used_here now takes
  (bw,bh) -- is_comp_ref_allowed is min(w,h) >= 8, so a 16x4/4x16 strip must
  read NO comp_group_idx symbol; the intra-in-inter branch's palette ctx
  (palette_bsize_ctx_wh) and filter-intra class (filter_intra_size_class_rect)
  likewise come from write_w/write_h.
- New counter vartx_rect_leaf4_hits() [8x4, 4x8] + a 5th gate arm for it.
fix(av1): the compound 8x8 inter leaf never resolved its switchable interp filterAhmet Kaan Gümüş · 98b0b9b
fix(av1): the compound 8x8 inter leaf never resolved its switchable interp filter

libaom's read_inter_block_mode_info calls read_mb_interp_filter for EVERY
inter block right after read_compound_type, and when av1_is_interp_needed is
0 (skip_mode, non-translational GLOBALMV) set_default_interp_filters stores
EIGHTTAP_REGULAR -- never a sentinel. Our compound 8x8 leaf hard-coded
Regular for prediction and recorded the [3, 3] "no filter" sentinel in the
neighbour band, so any later block whose ref0 matched that leaf's ref0 or
ref1 computed av1_get_pred_context_switchable_interp off 3 instead of 0,
read switchable_interp with the wrong CDF row and desynced the tile.

Found by a cross-decoder range ladder on a 192x128 8-bit cq-12 aomenc stream
with min-partition-size=4: entry and post-assign_mv ranges matched the oracle
at the 4x4 sub-block mi(14,46) (39095, 60392) and diverged only across the
interp filter read (ours 51740, aomdec 57815); the left neighbour, a
skip_mode compound 8x8 leaf, had recorded [3, 3].

Also in this round:
* decode.rs: EC_MODE / EC_MODE_MV / IFDBG4 rungs on the sub-8x8 inter split
  path, at the oracle's own two print points, so the ladder lines up.
* stream.rs sub8x8_inter_split gate: measured cq/sp schedule (sweep of cq
  {8,10,12,14,16,18,20} x sp {3,6,9,12} x both depths). Firing attempts are
  8-bit cq12/sp3 (1 group) and 10-bit cq12/sp6 (3 groups), both pixel-exact,
  and no attempt mismatches. cq 8/10 dropped: they carry a CDEF defect of
  another shape (3 luma samples |d|=1 on frames 3/4, zero split groups, and
  --enable-cdef=0 on the identical recipe decodes exact) -- deferred, not
  hidden.
* decode_probe prints the sub8_inter_split group counter.
* merges main (8e9ba81) and lane-r14 (b86eb38).
Merge branch 'lane-r14' (b86eb38) into lane-inter16ab: general (tx_w,tx_h) read_var_tx_size with the full sub_tx_size_map and rectangular inter leavesAhmet Kaan Gümüş · 0402f49
Merge branch 'lane-r14' (b86eb38) into lane-inter16ab: general (tx_w,tx_h) read_var_tx_size with the full sub_tx_size_map and rectangular inter leaves

Both split-transform refusals in read_var_tx_size drop out with r14's general
recursion; the probe keeps both lanes' counters.
feat(av1): 16x16-level 1:4 partitions decode in inter frames -- four 16x4/4x16 strips, chroma coded once per pair from BOTH strips' motion (gate RED on one attempt)Ahmet Kaan Gümüş · 9f8067c
feat(av1): 16x16-level 1:4 partitions decode in inter frames -- four 16x4/4x16 strips, chroma coded once per pair from BOTH strips' motion (gate RED on one attempt)

The 16-level PARTITION_HORZ_4/VERT_4 arm of the inter partition chain, with
the three things that are new at this size:

  * is_chroma_reference (av1_common_int.h:1454): a 4:2:0 block one mi tall
    (wide) carries chroma only on an ODD mi_row (mi_col), so strips 0 and 2
    read and reconstruct no chroma at all and the odd strip codes one 8x4
    (4x8) transform at the PAIR's origin.
  * build_inter_predictors_sub8x8 (reconinter_template.inc:87-160): that
    chroma block covers two luma blocks, so it is built in 8x2 (2x8) pieces,
    each from its own strip's mv/ref/interp filters -- and only when
    is_sub8x8_inter holds (both strips single-ref inter), else the whole
    block falls back to this strip's mv.
  * min(bw,bh) == 4 kills skip_mode, comp_mode (is_comp_ref_allowed,
    blockd.h:65), motion_mode/OBMC/warp (is_motion_variation_allowed_bsize,
    blockd.h:1455) and interintra: none of those symbols is read now.

Tables: TX_16X4/TX_4X16 luma through the new TxbSet::LumaRect16x4Inter{,1}
(Luma8 coefficient tables, eob_pt_64, INTER tx_type at txsize_sqr_map =
TX_4X4 -> EXT_TX_SET_ALL16 / DCT_IDTX per blockd.h:1097-1106) and
SCAN_16X4/SCAN_4X16; chroma through the existing ChromaRect8x4.

The 2160p 10-bit AV1 film this lane tracks now decodes past the 1:4 partition
and stops one refusal deeper, at a SPLIT transform on a 16x4 strip
(sub_tx_size_map[TX_16X4] is the rectangular TX_8X4, which the square vartx
leaf list cannot express).

Gate a_real_aomenc_inter_sequence_with_16x16_level_1to4_partitions_decodes_
pixel_exact is committed FAILING: attempt 5 (8-bit, cq 34) fires 8 strips /
4 chroma pairs / 4 two-mv chroma pairs and desyncs in its last frame (8683
luma px, first at (96,59)). Frames 0-4 exact. See lanes/inter16ab-r2.report.md
-- this branch does not merge until that is closed.
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.
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.
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).
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma referenceAhmet Kaan Gümüş · 516d68b
fix(av1): a skipped intra block still predicts with CfL, and a 1:4 chroma pair reads its intra-edge filter type at the chroma reference

ReelC's key frames decoded with no refusal and luma bit-exact but wrong chroma at
eight of ten seek points. Two causes, both chroma-only:

1. libaom predict_and_reconstruct_intra_block predicts every plane and guards
   only the residual on skip_txfm, so a skipped UV_CFL_PRED block is still
   DC + alpha * luma-AC. Three skip arms (the 16x16-level 1:4 chroma pair and
   the two sub-8x8 4x4 groups) dropped the CfL term.
2. get_intra_edge_filter_type reads chroma_above_mbmi/chroma_left_mbmi -- the
   neighbours of the CHROMA REFERENCE mi. decode_rect4_16 passed the closing
   strip's own mi, whose above cell is the pair's first strip; the mi-exact UV
   map missed, the coarse fallback answered, and the filter type flipped
   av1_use_intra_edge_upsample (blk_wh 12 <= 16 for type 0) on directional
   chroma.

All ten decodable ReelC key frames go to 0 differing samples (ss=3600 was 119652,
ss=7200 52891). New gate: real aomenc --sb-size=128 --cpu-used=0 with 1:4
partitions and CfL, 256x256, 8- and 10-bit, both pixel-exact with
directional_1to4_chroma_pairs=11 per arm.