forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 4bf07dbbb225979cbc16fb73b01a85e1cd8e795a

2026-09-02

Merge main 7a47fc1 into lane-sb128b; restore the 13 gate recipes r2 blanket-rewrote to --min-partition-size=32Ahmet Kaan Gümüş · 4bf07db
Merge main 7a47fc1 into lane-sb128b; restore the 13 gate recipes r2 blanket-rewrote to --min-partition-size=32

Conflict in decode.rs's skipped-block arm resolved by taking main's
(lane-hgkf r2) per-transform-unit prediction with its true_width guard and
SKIP_SPLIT_TX_HITS counter, and broadening its condition from
`tx_select && logical_tx < side` to `logical_tx < side`: at BLOCK_128X128 the
transform is TX_64X64 with no tx-depth syntax at all, so the lane's 128 arm
needs the same per-unit path. The counter keeps its narrow meaning (a READ
split depth).

TASK B root cause: the two inherited 10-bit rect/AB reds were an encoder
recipe defect, not a decoder one -- r2 rewrote --min-partition-size=16 to 32
in 13 gate recipes (main's value at all 13 call sites), which removes the
16-level the AB/rect gates assert. Reverted all 13; the lane's own two 128
gates keep their deliberate 32. Both gates now pass.
fix(av1): refuse the 128 NONE block by its MEASURED residual, and green the 64x72 sb128 gateAhmet Kaan Gümüş · df156df
fix(av1): refuse the 128 NONE block by its MEASURED residual, and green the 64x72 sb128 gate

The chroma TU loop landed but the arm is still not pixel-exact (first luma
TX_64X64 unit reads AC where libaom has DC only), so the product path refuses
it again by name rather than emitting wrong pixels; the gate stays the
reproducer. The 64x72 cpu-used=0 --sb-size=128 stream main used to refuse now
decodes PIXEL-EXACT once its unrelated 1:4 sub-16 partitions are disabled.
Merge branch 'lane-hgkf': key-frame frame-edge partition bit was parsed and discarded (forced SPLIT) at 64/32/16; the ReelB head key frame decodes bit-exact at 10-bitAhmet Kaan Gümüş · a13d4a2
Merge branch 'lane-hgkf': key-frame frame-edge partition bit was parsed and discarded (forced SPLIT) at 64/32/16; the ReelB head key frame decodes bit-exact at 10-bit

Merge resolution (main e6b8bf8):
- 64/32-level key-frame edge readers: the lane's arms (identical fix to the
  unmerged lane-golomb one already on main, plus the EDGE_PART_HITS counter).
- 16-level: main's (lane-oddh) body kept -- it decodes the strip and records
  above_mode/left_mode -- with the lane's `bump_edge_part` added.
- Remaining conflicts were comment-only; main's wording kept.
Also carries the lane's r2: a skipped intra block predicts per transform
unit, not per block (SKIP_SPLIT_TX_HITS).
feat(av1): code a 128x128 block's chroma as four TX_32X32 units and predict every skipped block per transform unitAhmet Kaan Gümüş · 260d4d5
feat(av1): code a 128x128 block's chroma as four TX_32X32 units and predict every skipped block per transform unit

av1_get_max_uv_txsize(BLOCK_128X128) = av1_get_adjusted_tx_size(TX_64X64) =
TX_32X32, so the 64x64 uv plane block is four units per plane, each with its
own gathered coefficient context (around_mi over the unit's 64-luma-pixel
span), its own Reach (tu_reach on the luma quadrant) and its own neighbour
write (Neighbours::record_mi_chroma). cn == 1 -- every block at 64 and below --
is byte-for-byte the whole-plane read this always did. The skip arm now
predicts per transform unit for the same reason (libaom predicts inside the
transform-block loop). Chroma refusal deleted; counter chroma_split_tx_hits.
Merge branch 'lane-intrarect': intra rect strips inside inter frames decode through the per-TU rect path; a whole-block rect transform unit reads txb_skip ctx 0Ahmet Kaan Gümüş · 6013567
Merge branch 'lane-intrarect': intra rect strips inside inter frames decode through the per-TU rect path; a whole-block rect transform unit reads txb_skip ctx 0

Merge resolution (main b51719f):
- decode.rs rect-TU arm: lane's ctx-0 rule kept, main's `fi_tx_row` helper name.
- decode_inter_block: main's MI-unit addressing wins (`rmi`/`cmi`, `whole_sb`
  delta_q/lf); the lane's `write_w != side` arm retargeted to MI units
  (`record_inter_rect_mi`, mi origin = `at`), and `decode_intra_rect_in_inter`
  now takes MI units too.
- `reject_residual` keeps the lane's post-`is_inter` position AND main's
  `rect_inter_residual_supported` term -- the lane's condition (written before
  lane-inter4) refused every 16x8/8x16 inter leaf residual.
- decode_intra_rect_in_inter wires main's angle deltas (lane-angleinter) and
  `use_filter_intra` (lane-fiinter, `filter_intra_size_class_rect`) in
  read order; palette fields None (screen content refused for this shape).
- New named refusal: a split (nonzero tx_depth) transform on an intra
  HORZ/VERT strip in an inter frame -- main's 10-bit
  split_transform_intra_block gate reaches this arm with depth != 0 and the
  split rect-TU walk mis-decodes it (merge cross-product; depth-0 strips,
  what the lane proved, decode).
fix(av1): drop the merge-seam 128x128-superblock blanket refusal main added, and turn its gate into a pixel-exact oneAhmet Kaan Gümüş · 480317d
fix(av1): drop the merge-seam 128x128-superblock blanket refusal main added, and turn its gate into a pixel-exact one

ReelC's real 1920x792 key frame now decodes BIT-EXACT (cmp of the 16-bit dump
against ffmpeg yuv420p10le) -- pre-merge it carried a +1 DC band over the whole
bottom partial superblock row, which lane-oddh's odd-frame-size fixes remove.
fix(av1): a skipped intra block predicts per transform unit, not per blockAhmet Kaan Gümüş · 5b4ff4a
fix(av1): a skipped intra block predicts per transform unit, not per block

An intra block's tx_depth is read whether or not the block is skipped (only
an INTER skip forces the largest transform), and spec 7.11.2 predicts one
transform unit at a time -- each unit's edges are the units already written
left/above of it inside the same block. Our two skip branches (decode_block,
decode_leaf8) predicted the whole block in one call, which for a 32x32 DC
block with 8x8 units gives 123 where libaom gives 124 sixteen times.

Mid-film 3840x1608 10-bit key frame: 2403 luma samples wrong (|delta| <= 2)
-> 0, all three planes bit-exact; the earlier key frame stays bit-exact.
Stage split done with new 16-bit dump rungs on both sides (the 8-bit ones
truncate the defect away) and a new EC_PREDND oracle rung (EC_PRED sat after
the highbd early return and printed nothing on a 10-bit stream).

New counter SKIP_SPLIT_TX_HITS: a skipped block codes no coefficients, so
nothing but the pixels witnesses this path. No in-repo gate landed -- see
lanes/hgkf-r2.report.md for the swept recipes and the deferral.
feat(av1): decode the LUMA half of a 128x128 PARTITION_NONE root; refuse its chroma by nameAhmet Kaan Gümüş · 3d9370c
feat(av1): decode the LUMA half of a 128x128 PARTITION_NONE root; refuse its chroma by name

lane-sb128b r1. `read_sb128_root` now returns the root partition instead of
refusing everything but SPLIT, and the key-frame tile loop decodes a
`PARTITION_NONE` 128 root as one 128x128 intra block (the other three visits
of that superblock code nothing).

Generalised, all measured against libaom rather than assumed:
- `read_tx_size`: `max_txsize_rect_lookup[BLOCK_128X128]` is TX_64X64, so a
  128 block reads BLOCK_64X64's own depth category and resolves against 64,
  never against its own side.
- `decode_block`: the single-transform-unit arm was `!tx_select || logical_tx
  == side`; without `tx_select` `logical_tx` IS `side` at every size <= 64, so
  the first half was redundant -- and wrong at 128, where the block is four
  TX_64X64 units either way. The TU loop now passes the unit's own COEFFICIENT
  side (32 at TX_64X64), not its transform side.
- `delta_q`/`delta_lf`: "this leaf IS the superblock" now compares against the
  sequence's superblock size instead of a hardcoded 64 (a NONE 128 root is the
  whole superblock).
- the 128 block's single `cdef_idx` read is copied to all four 64x64 CDEF
  units, which is what libaom's shared `MB_MODE_INFO` does.

RESIDUAL, and why the arm still refuses in the product path:
`av1_get_max_uv_txsize` runs `av1_get_adjusted_tx_size` over the 64x64 uv plane
block, so a 128 block's chroma is FOUR TX_32X32 units per plane, not one
TX_64X64 unit -- `decode_block` codes one whole-plane chroma unit and desyncs
there. New gate
`a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact`
(real aomenc --sb-size=128, no --max-partition-size, smooth gradients at cq
55/63, 384x384 + 256x256, 8- and 10-bit) is the reproducer, #[ignore]d until
the chroma loop lands.

refusal_inventory: the one "partition other than SPLIT" string splits into the
HORZ/VERT/AB arm, the inter NONE arm, and the chroma residual above.
fix(av1): keep the MV stack's top-right grid probe (the has_top_right port red-lined 8 gates); docs(sb128): r2 reportAhmet Kaan Gümüş · 9852037
fix(av1): keep the MV stack's top-right grid probe (the has_top_right port red-lined 8 gates); docs(sb128): r2 report
feat(av1): 128x128 superblock root in the INTER tile loop (visit order + prologue), sb-aware has_top_right; refusal kept for a residual one-frame mismatchAhmet Kaan Gümüş · b7c0e21
feat(av1): 128x128 superblock root in the INTER tile loop (visit order + prologue), sb-aware has_top_right; refusal kept for a residual one-frame mismatch

The inter tile loop now walks libaom's quadrant visit order (sb_visit_order) and
reads the 128 root once per superblock (read_lr over the whole 128x128, the
8-symbol partition_w128 with its edge gather) through a new shared
read_sb128_root, extracted from the key-frame loop so both paths cannot drift.
libaom has_top_right is now a single sb-aware port in mvstack (the warp-sample
copy in decode.rs hardcoded a 64x64 superblock and now delegates to it), and
the MV stack's top-right probe is gated on it instead of a bare grid probe.

8 of the 9 decode-order frames of the new gate stream are pixel-exact against
the instrumented aomdec, hidden alt-ref included; frame 6 still differs by 996
luma bytes with the entropy stream in sync, and the same content at
--sb-size=64 is exact (sb128_r2_control_sb64), so the residual is
sb128-specific. The product-path refusal therefore STAYS and the gate ships
#[ignore]d as its reproducer -- silent wrong pixels on his films are worse.
test(av1): gate the frame-edge partition bit at all three levels, both depthsAhmet Kaan Gümüş · bb77f08
test(av1): gate the frame-edge partition bit at all three levels, both depths

Eight arms of real aomenc streams whose frame size is not a multiple of the
block size, each decoded pixel-exact vs ffmpeg: 192x136 / 136x192 mandelbrot
(136 = 2*64 + 8, so the 64-, 32- and 16-level halves all fall outside; the
32/16-level edge bit is answered HORZ/VERT 3..9 times per arm) and 192x80 /
80x192 flat band (the ledger-measured shape where aomenc answers the
SUPERBLOCK edge bit with HORZ/VERT -- 3 per arm). The counter is read only on
an attempt that decoded and is compared, and both "answered HORZ/VERT" slots
must be nonzero, so the arms this round fixed cannot pass vacuously.
fix(av1): the 16x16-level frame-edge partition bit was discarded tooAhmet Kaan Gümüş · b5166a1
fix(av1): the 16x16-level frame-edge partition bit was discarded too

Same class as the 64/32-level fix in the previous commit (`parsed-then-
discarded`): the 16-level edge reader gathered the bit and then always split
into four 8x8 leaves. libaom answers that bit with PARTITION_HORZ (resp. VERT)
when it is 0, i.e. a single 16x8 / 8x16 strip of which only the in-frame half
is coded. On a 3840x1608 10-bit key frame this desynced from mi_row=400
mi_col=32 to the end of the tile.

The strip decodes through `decode_leaf_rect` at the leaf's real mi origin
(`sr * SUB_MI`, `sc * SUB_MI`) -- the first cut of this used the coarse index
times two, which kept the entropy stream aligned but predicted the strip at
mi(200,16) instead of mi(400,32) and reconstructed 34k samples wrong.

Measured on the 3840x1608 10-bit mid-film key frame vs `ffmpeg -pix_fmt
yuv420p10le`: 51768 mismatching samples (Y 35861 / U 8419 / V 7488) -> 2403,
luma only, |delta| <= 2, chroma bit-exact. The pinned head key frame stays
bit-exact.
fix(av1): the frame-edge partition bit was read and thrown awayAhmet Kaan Gümüş · 135feff
fix(av1): the frame-edge partition bit was read and thrown away

libaom `ec_read_partition_impl` returns PARTITION_HORZ (resp. VERT) when the
gathered edge bit is 0 and only PARTITION_SPLIT when it is 1. Both key-frame
edge readers (64- and 32-level) read that bit and forced SPLIT, so every frame
whose height or width is not a multiple of the block size desynced at the first
superblock of its partial row: a 3840x1608 10-bit AV1 key frame diverges at
mi_row=400 mi_col=0 with the very first `skip` (range 43258 vs the oracle's
34753), and the whole 8-pixel bottom band reconstructed wrong.

The HORZ/VERT arms now also decode only the in-frame half of the strip
(libaom `decode_partition` guards the second with the same has_rows/has_cols
test that made the partition non-square), and a new EDGE_PART_HITS counter
proves which arm fired.

The pinned 3840x1608 10-bit head key frame: 3819 sample mismatches vs ffmpeg
-> 0, bit-exact in the true 10-bit domain.

Also ported lane-golomb's TU-origin clip (a transform unit whose top-left
sample is outside mi_cols*4 x mi_rows*4 is never coded) -- measured inert on
both key frames here, kept as the libaom rule.
fix(av1): a depth-0 rect transform unit read txb_skip from the neighbour table, not ctx 0Ahmet Kaan Gümüş · a13955f
fix(av1): a depth-0 rect transform unit read txb_skip from the neighbour table, not ctx 0

decode_rect_split's RECT transform-unit arm applied the neighbour-magnitude
skip_contexts table unconditionally. libaom get_txb_ctx gives luma a flat ctx 0
when the transform covers its whole block (plane_bsize == txsize_to_bsize[tx_size]),
which is exactly the unsplit depth-0 strip; decode_block_rect (the key-frame unsplit
path) already passes a literal 0. r1 wired the inter path onto decode_rect_split and
became the first caller to reach it at depth 0, so the frame-5 16x32 strip read
ctx 5 where aomdec read 0 -- same value, different CDF, msac range diverging at the
block's first coefficient symbol (ours rng=58117, aomdec 45075, identical entry
range 60236).

8-bit seed 69: prefilt recon frame 5 went from 632 wrong samples (512 luma = the
whole strip, 120 V) to byte-identical, all 8 frames. Both intra-rect gates now pass
at both depths (2 passed; 0 failed, 12.20s), 45 attempts each, every decoded stream
pixel-compared. The shape assert is now the reachable 32x16/16x32 class instead of
"two of three" (64-level unreachable: inter SB-level partitions other than
NONE/SPLIT refuse; 16-level stops at sub-16 refusals owned by another lane).
feat(av1): decode 128x128 superblocks on key frames (the ReelC blocker)Ahmet Kaan Gümüş · e749a4d
feat(av1): decode 128x128 superblocks on key frames (the ReelC blocker)

His ReelC encode codes use_128x128_superblock=1 (aomdec EC_TRACE: EC_PART
mi_row=0 mi_col=0 bsize=15); ec-av1 never read that sequence bit and decoded
every frame as 64x64 superblocks, so every earlier ReelC stop was a desync
artefact.

- decode.rs: SB128 thread-local + set_sb128; the key-frame tile loop now walks
  the 64x64 quadrants in libaom's nested order (sb_visit_order), reads the
  128 root's loop-restoration units once per 128x128 and one partition symbol
  off the 8-symbol partition_w128 CDF (forced-split gather at the frame edge),
  and recurses SPLIT into the existing 64 path; the other seven 128-level arms
  refuse by name. delta_q/delta_lf now key off the real superblock size.
- Neighbours' no-neighbour partition-context sentinel was SB (64), which reads
  identically up to the 64 root but set the bit at BLOCK_128X128 -- the 128
  symbol came off CDF row 3 where libaom uses row 0.
- Reach (has_top_right/has_bottom_left) masked the block's position with a
  hardcoded 64 superblock; libaom masks with the sequence's own sb_size.
- stream.rs: inter frames under a 128 superblock refuse by name (scoped to
  frames larger than one 64x64 superblock, since a <=64x64 frame decodes
  identically either way).

Gates: a_real_aomenc_stream_with_128x128_superblocks_decodes_pixel_exact
(6/6 pixel-exact, 8- and 10-bit, 256x192 + 384x384, part128_symbols=26,
part128_split_hits=34) and a_real_aomenc_128x128_inter_stream_refuses_by_name.
Merge branch 'lane-modectx': every kf_y_mode context reader uses the mi-exact, tile-relative map; coarse band leak invariant assertedAhmet Kaan Gümüş · 31ae209
Merge branch 'lane-modectx': every kf_y_mode context reader uses the mi-exact, tile-relative map; coarse band leak invariant asserted

Auto-merge, no conflicts (decode.rs and stream.rs auto-merged over main's
lane-rectsplitx / lane-rect1d edits). Verified by hand after the merge:
`modes_above_left` routes through `modes_above_left_mi`; `decode_leaf_split4`
and `decode_leaf_rect8` are byte-identical to the lane's versions (their raw
`above_mode[c]` / `left_mode[r]` reads are the coarse FALLBACK argument of the
mi-exact lookup, not a context read).

Gates on the merged tree, 13/13:
two_tile_columns 20/20 pixel-exact with 0 tile-edge coarse leaks (the new
MODE_TILE_EDGE_COARSE_LEAKS == 0 assert), two_tile_columns_and_an_inter_frame
20/20, decodes_through_decode_stream 20/20, multi_tile intra 6/6 (8-bit and
10-bit), multi_tile palette 6/6, multi_tile inter 10-bit 3/3, sub8 rect leaf /
split / filter-intra, 32x32_level_1to4 16/16 both depths, and the merged
chroma_is_a_4to1_or_sub8_rect 94/120.
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump exampleAhmet Kaan Gümüş · 8f81c4b
Merge branch 'lane-rect1d': 1D transform classes on rect transforms gated at 10-bit (12/12); u16 plane dump example

Merge resolution:
- decode.rs: the lane's `decode_leaf_rect` cat2 -> cat1 tx_size CDF-row fix is
  the SAME fix main already carries from lane-rectsplitx (a59645c..71c444a);
  main's hunk is kept and the lane's comment paragraph appended to it. The
  lane's rect_coeff_tu_hits / rect_class1_hits counters are kept at their
  original sites (`read_coeffs` for the 1D-class half, `read_coeffs_rect` past
  the `all_zero` early return), so the merged gate measures what the lane
  gated.
- dump_yuv.rs / gate_coverage.rs / stream.rs / lanes/rect1d-r1.report.md taken
  from the lane unchanged (no overlap with main's rectsplitx edits).

Gates on the merged tree, 16/16:
a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform 12/12 pixel-exact,
0 named refusals, 6 matches 10-bit, 219 rect coefficient TUs (10 of a 1D tx
class); coded_rect_strip_below_16x16, ab_partitions_below_16x16,
refusal_inventory (3), gate_coverage (9), base_ctx_rect_offsets all pass.
feat(av1): intra HORZ/VERT strips decode on the inter block path (gate RED)Ahmet Kaan Gümüş · 40b9c37
feat(av1): intra HORZ/VERT strips decode on the inter block path (gate RED)

An intra-coded rect strip in an inter frame now reads its mode info with the
inter frame's own intra syntax and decodes every pixel through decode_rect_split,
the machinery the key-frame rect paths already prove; the whole-shape refusal is
lifted, leaving only the 1:4 shape. The reject_residual gate moves past is_inter
(class refusal-short-circuits-its-own-code) so the intra arm can be reached at all.

Gate a_real_aomenc_inter_sequence_with_an_intra_rect_strip_decodes_pixel_exact
(+10bit) fires the 32x16 shape on a real aomenc stream and FAILS the pixel
compare: frame 5 Y, rows 58..95, max |diff| 3 (8-bit) / 8 (10-bit), no entropy
desync. See lanes/intrarect-r1.report.md.
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)Ahmet Kaan Gümüş · 7eb5f17
Merge branch 'lane-fiinter': intra blocks in inter frames read use_filter_intra (aomenc default on; symbol was never consumed)

lane-fiinter was rebased off lane-intrainter, so this ONE merge carries both
lanes' work: the per-TU luma split of an intra block inside an inter frame
(intrainter, commit 94492b4 on this branch) and the use_filter_intra read in
both intra-in-inter arms with its ENABLE_FILTER_INTRA_INTER thread-local.
Merging lane-intrainter e841b2a separately would have replayed the same content
from a different base; it is retired as subsumed, proven by its own gates
passing here (a_real_aomenc_{,10bit_}inter_sequence_with_a_split_transform_intra_block).

Merged clean; one call site rebound to the widened Reach::of_tu(tx_w, tx_h) from
the rectsplitx merge (decode.rs:16147).

Gates on the merged tree, all green: split_transform_intra_block (8+10-bit),
filter_intra_on_an_intra_block (8+10-bit), inter_sequence* , tx_select*,
8x8_leaf_split, refusal_inventory, gate_coverage, base_ctx_rect_offsets --
29 passed / 0 failed / 2 ignored.
Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates liveAhmet Kaan Gümüş · 4bf9109
Merge branch 'lane-rectsplitx': per-transform-unit rect intra prediction under split transforms at every strip size (ReelB mid-film / ReelC head blockers); depth_to_tx_wh; three neighbour-map fixes; 16x8 tx_depth reads cat1; sub-16 filter-intra gates live

Merge resolution (main's fixes kept where they overlap):
- decode_rect_split chroma map: superset of rectchroma's and rectsplitx's rows
  (32x8/8x32/16x4/4x16/8x4/4x8), one comment.
- Reach::of_tu WIDENED to (tx_w, tx_h); square callers pass (tx, tx). The lane's
  inline per-unit Reach collapses onto it, and main's palette window inside the
  unit loop is kept (windowed by tx_w/tx_h).
- One fimode->intradir helper: main's fi_tx_row; the lane's identical
  tx_type_mode_row is dropped and its call site rebound.
- depth_to_tx_wh wins at every depth site, including decode_block_rect64's,
  replacing `bw.min(bh) >> (depth - 1)`; the "splits only once" refusal is gone.
- refusal_inventory: the lane's list minus its stale AB-below-16x16 entry (main
  lifted that refusal in lane-ab16).

Two merged gates asserted on counters that the lifted refusals fed, and both went
vacuous/false in the cross-product (class counter-from-refused-stream):
- chroma_is_a_4to1_or_sub8_rect counted attempts REFUSED at the depth-1 1:4
  strip; it now counts depth-1 1:4 strips that DECODED and compared pixel-exact.
- ab_partitions_below_16x16 required a vert-AB TX4 unit "reached" on
  tx-size-search attempts that used to stop at the strip refusal. Those attempts
  now decode to the end and compare pixel-exact, carrying zero such units -- the
  old nonzero count came from a still-desynced decode. The assert is now that
  every tx-size-search attempt compares exact; the lookup values stay pinned by
  of_tu_keeps_the_ordinary_answer_and_uses_the_block_row_under_vert_ab.

Suite on the merged tree: 347 passed / 3 failed / 29 ignored, the 3 being exactly
those two gates plus refusal_inventory; after the resolutions above all 3 pass
(15/15 in the targeted rerun).
fix(av1): the 64x72 first-symbol desync is 128x128 superblocks, not odd height -- refuse them by name above 64x64, and gate the odd-size ladderAhmet Kaan Gümüş · abae99a
fix(av1): the 64x72 first-symbol desync is 128x128 superblocks, not odd height -- refuse them by name above 64x64, and gate the odd-size ladder

r1 pinned a 64x72 aomenc KEY frame desyncing at its first symbol (aomdec 3, ours 9).
Root cause, proved at the byte: the stream's sequence header codes
use_128x128_superblock (libaom's av1_select_sb_size returns BLOCK_128X128 whenever
speed is 0), and this decoder is 64x64-superblock only. aomdec reads a gathered
2-symbol BLOCK_128X128 partition (has_cols false at mi_cols=16, has_rows true at
mi_rows=18); we read a 10-symbol BLOCK_64X64 one from the same byte. The
uncompressed header parse was identical (49 bits, tile data at offset 20,
hand-verified field by field against spec 5.9.2), and a from-spec python msac
reproduces our 9 -- same bytes, same table, wrong alphabet.

decode_stream now refuses such a sequence by name when the frame is larger than
64x64. Scoped, not blanket: a blanket refusal red-lined 29 previously pixel-exact
gates, because at <=64x64 a 128x128 superblock decodes identically (forced SPLIT
with no symbol, one child in frame).

Gates: a_real_aomenc_128x128_superblock_stream_is_refused_by_name (real aomenc
--sb-size=128, asserts the header really codes the bit before asserting the
refusal); the tiny frame size sweep extended with 64x72/72x64/64x136/136x64/192x136,
all 10/10 pixel-exact, floor 70 -> 120. Odd height/width at 64x64 superblocks is
clean, including r1's frame-edge half-strip code on the key path.

The INTER half-strip arms stay ungated: written as
a_real_aomenc_inter_frame_edge_half_strip_decodes_pixel_exact and #[ignore]d with
the measured reasons (rect off => encoder answers the forced edge symbol SPLIT,
edge_rect_strip_hits=0 with both depths pixel-exact; rect on => three other lanes'
refusals fire first).
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by defaultAhmet Kaan Gümüş · ac20fa3
fix(av1): an intra block inside an inter frame refused a nonzero angle_delta_y -- the refusal claimed "this encoder never writes one" and aomenc writes one by default

`read_intra_angle_info` writes angle_delta_y for any directional y_mode at
bsize >= 8x8 in an inter frame exactly as in a key frame, and aomenc's
--enable-angle-delta defaults to 1: the first gate attempt (seed 42) carries
4 such blocks. decode_inter_block now reads the delta and threads it through
its split-transform per-TU and block-level luma predictions, and derives
smooth_neighbor (get_intra_edge_filter_type) via Neighbours::modes_above_left
instead of the hardcoded `false` that decided the intra edge filter's
strength. New gate a_real_aomenc_inter_sequence_with_a_directional_intra_block
_with_angle_delta_decodes_pixel_exact (8-bit + 10-bit) asserts the hit counter
and compares every frame's Y/U/V vs ffmpeg. Flipping all 56
--enable-angle-delta=0 spellings to =1 leaves the 17 inter_sequence gates
green (no hidden defect). decode_inter_block8's 8x8 leaf keeps its refusal --
80 attempts never reached a directional 8x8 intra leaf -- reworded to a claim
about this decoder's coverage rather than about the encoder.
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0)Ahmet Kaan Gümüş · 54f8c61
fix(av1): size_group_wh gave group 1 to every 4-px-side block (libaom size_group_lookup says 0)

4x4/4x8/8x4/4x16/16x4 select size group 0 in libaom (common_data.h:60), so every
sub-8 leaf was reading the wrong y_mode / interintra / interintra_mode CDF row.
Pinned by a unit test enumerating all 22 BLOCK_SIZES_ALL entries.

Also: decode_probe prints the rect_inter tu/txsplit/obmc_leaf counters (the sweep
that measured the rect var-tx SPLIT and 10-bit rect TU paths as unexercised, now
recorded in the gate comment), and cdf.rs gets EOB_PT_128_CHROMA_CLASS1_Q0's doc
comment back after r3's LUMA block displaced it.
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default streamAhmet Kaan Gümüş · c98870c
fix(av1): an intra block inside an inter frame never read use_filter_intra -- silent desync on every aomenc-default stream

libaom's read_intra_block_mode_info ends with read_filter_intra_mode_info on
an inter frame exactly as it does on a key frame, but decode_inter_block's
INTRA arm and decode_inter_block8's 8x8 INTRA arm went straight from the
palette syntax to read_block_tx_size. aomenc enables filter intra by default
and all 69 inter gate recipes pinned --enable-filter-intra=0, so nothing had
ever exercised it (classes symbol-consumption-gap + tool-disabled-in-every-gate):
his films' inter frames desynced at the first such block.

Both arms now read use_filter_intra (filter_intra[filter_intra_size_class(side)],
None at 64x64 per av1_filter_intra_allowed_bsize) plus filter_intra_mode, and
thread the result into every luma prediction/coefficient call including
lane-intrainter's per-TU split-tx path (read_plane's FIMODE_TO_INTRADIR row
applies unchanged). The sequence bit rides a frame-constant thread-local next
to tx_select rather than a 51st decode_inter_block parameter.

Gate: a_real_aomenc_inter_sequence_with_filter_intra_on_an_intra_block_decodes_pixel_exact
at 8 and 10 bit -- counter-asserted firing (11 / 8 blocks), every frame Y/U/V
vs ffmpeg, no SKIP. Negative control (read disabled) fails it 40/40 attempts.
Mutation sweep with --enable-filter-intra=1 in every inter recipe: 15 passed,
0 failed. Suite: 346 passed, 0 failed.
feat(av1): decode the frame-edge half-strip instead of refusing it (odd height/width)Ahmet Kaan Gümüş · a24f329
feat(av1): decode the frame-edge half-strip instead of refusing it (odd height/width)

Cherry-picks lane-golomb eacd7fd (the gathered edge partition bit is the answer,
6 sites) and adds the arms it left refusing: the key-frame 16-level edge strip
(one 16x8/8x16 through decode_leaf_rect) and the inter path's superblock-level
and 16-level edge strips (one 64x32/32x64 resp. 16x8/8x16 inter block via
write_w/write_h, square CDF corner-cut as at the 32-level rect arm).

None of it is gated yet: a 64x72 key frame desyncs at its FIRST partition symbol
(mi=(0,0) BLOCK_64X64 ctx=0: aomdec value=3, ours value=9; whole-frame 4583/4608
Y samples wrong while the 64x64 control is exact), so every stream that reaches
these arms is already off the rails. That desync is r2's target; see
lanes/oddh-r1.report.md for the ladder, the ruled-out header paths and the
disposition of the width-192 defect the even-height control shares.
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-searchAhmet Kaan Gümüş · 5f35cce
fix(av1): a 16x8/8x16 intra leaf reads tx_size_cdf[cat 1], not cat 2 -- wrong-row tx_depth desynced every 16-level rect strip under --enable-tx-size-search

lane-rect1d r1. `decode_leaf_rect` read its `tx_depth` symbol from
`cdfs.tx_size_cat2`, the table the 32-level strips (BLOCK_32X16/16X32) use.
libaom's `bsize_to_tx_size_cat` reads `bsize_to_tx_size_depth_table` and
subtracts one: BLOCK_16X8/8X16 (and the 1:4 BLOCK_16X4/4X16 this function also
decodes) sit at depth 2, so they read `tx_size_cdf[1]` -- the same table a
16x16 square block reads. Both tables carry three symbols, so the wrong one
still decodes a plausible depth, from the wrong probabilities: the range
diverges silently at the first such leaf and every later symbol in the tile
comes out of the wrong place.

Found by copying lane-rectclass's 1D-tx-class gate onto this tree (main's
`read_coeffs_rect` no longer refuses a 1D class, so the gate now DECODES those
TUs and the merge exposed the mismatch). Bisection: pinned stream
(sha256 5b3c8fc9... twice), coefficient range ladder ours vs instrumented
aomdec matched for 105 transform units and diverged at the 106th; the mode
ladder matched through `uv_mode` (rng 50640 both) and the next symbol was
aomdec's `name=tx_depth val=0 ctx=2 cat=1 rng=60682` against our cat-2 read.
Block: mi_row=24 mi_col=44, BLOCK_16X8, 10-bit seed 42.

Gate: `a_real_aomenc_stream_with_a_1d_tx_class_on_a_rect_transform_decodes_pixel_exact`
(copied from lane-rectclass ef7a476, minus its two now-nonexistent refusal
strings and the vacuous `class1_refusals == 0` assert), plus a new
`rect_class1_hits` counter so the gate pins the 1D class on a RECTANGULAR
transform rather than settling for the square reader's own 1D types:
12/12 pixel-exact (6 of them 10-bit), 219 rect coefficient TUs, 10 of them a
1D tx class. `enable-flip-idtx` leaves the 10-bit coverage-hole list.

`examples/dump_yuv.rs`: raw u16 plane dump -- both prefilt dumps narrow to
`u8`, which is blind to exactly this defect at 10 bits.
fix(av1): the luma mode-context coarse fallback ignored tile availabilityAhmet Kaan Gümüş · 353ada1
fix(av1): the luma mode-context coarse fallback ignored tile availability

`Neighbours::modes_above_left` -- the entry point of every remaining coarse
`kf_y_mode`/`y_mode` neighbour reader (`decode_block_rect`,
`decode_block_rect64`, `decode_block`) -- took the mi-exact override first but
then fell back to the raw `above_mode`/`left_mode` band with no tile-relative
availability, and `decode_leaf_split4` / `decode_leaf_rect8` read those bands
directly. All five now go through `modes_above_left_mi`, which yields DC_PRED
where libaom's `up_available`/`left_available` are false.

Measured: zero behavioural change. The new `MODE_TILE_EDGE_COARSE_LEAKS`
counter -- coarse fallbacks at a tile edge holding a non-DC mode -- is 0 across
the 20 attempts of the two-tile-column gate, because `above_mode` is cleared
per tile in `start_tile` and `left_mode` per superblock row in `start_row`.
That gate now asserts it stays 0: it is the invariant the coarse fallback rests
on, and dropping either reset is exactly how lane-mtfix's chroma
`above_uv_mode` twin broke.

The charter's pinned mi(24,8) divergence does not reproduce on this base --
lane-rectsplitx ec0b3b5 fixed it; at cq 32 that fixture now stops on a real
16x16 AB-partition refusal (aomdec EC_PART value=4). See lanes/modectx-r1.report.md.
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)Ahmet Kaan Gümüş · 7a9d28d
Merge branch 'lane-fi32x8': 32x8/8x32 strips read use_filter_intra (rows were missing; aomenc default on)

Renumbered against lane-fi8: cdf::FILTER_INTRA now has 12 rows, [8]=4x8 6743,
[9]=8x4 5893, [10]=32x8 18101, [11]=8x32 20229, and
filter_intra_size_class_rect maps (32,8)->10 / (8,32)->11. Orientation-split
counters + the 32-level 1:4 filter-intra gate come from the lane;
filter_intra_classes_carry_their_own_libaom_default_row covers the whole domain.