forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 3009c584f3bb581468b00c01302a8f2aba6bcc65

2026-09-02

Merge 10b801a into lane-uv8Ahmet Kaan Gümüş · 79d795fBrowse files
Merge main aa83400 into lane-uv8Ahmet Kaan Gümüş · 553a763Browse files
feat(av1): non-DC chroma modes on an 8x8 intra leaf inside an inter frame (UNGATED)Ahmet Kaan Gümüş · 9e5cab1
feat(av1): non-DC chroma modes on an 8x8 intra leaf inside an inter frame (UNGATED)

decode_inter_block8's intra arm now reads uv_mode over the CFL-allowed
alphabet, the CfL alphas and angle_delta_uv in libaom's own order
(read_intra_block_mode_info, decodemv.c:1178-1220), predicts chroma from
get_uv_mode(uv_mode) with the CfL AC over the leaf's 4x4 chroma, derives the
chroma tx_type from that mode, reads palette_uv only when uv_mode is DC, takes
its luma/chroma edge-filter strength from the mi-exact neighbour modes instead
of a hardcoded false, and stamps the mode/uv_mode neighbour bands it never
wrote. New per-leaf counters intra_in_inter8_uv_hits().

The refusal string and its CAPABILITY_CLAIMS line are dropped, but the gate
(stream.rs::uv_mode_in_inter8_gate, 8-bit/10-bit/2-tile arms) never observed a
firing attempt: every --min-partition-size=8 inter stream refuses on an
UNRELATED, pre-existing inter-frame desync (same refusals with the chroma
tools switched off; the key frame of the same recipe is pixel-exact).
See lanes/uv8-r1.handoff.md.
fix(av1): rect masked compound read the SQUARE envelope's compound_type/wedge_idx CDF rowAhmet Kaan Gümüş · f750870
fix(av1): rect masked compound read the SQUARE envelope's compound_type/wedge_idx CDF row

A 16x8 (or any non-square) compound block with comp_group_idx==1 read
BLOCK_16X16's compound_type_cdf/wedge_idx_cdf row instead of BLOCK_16X8's,
because decode_inter_block indexed those tables by its square `side` argument
rather than the block's true (write_w, write_h) footprint -- class
table-indexed-by-raw-size. The same square envelope also decided
is_any_masked_compound_used, so a 4x16/16x4 strip would read a comp_group_idx
symbol libaom never writes.

Root cause proven by range ladder on a 192x128 6-frame 8-bit AV1 stream
(transposed-structure geq source, cq14, rect partitions on): entering the 16x8
block both decoders are at rng 46505, agree through the mv (58288), and after
the fix agree at the end of mode info (61760) and at the next block (60694);
that stream now decodes pixel-exact on every decode-order frame, where before
it drifted from decode-order frame 5.

Also: a COMPOUND_WEDGE mask on a non-square block is refused by name (the
wedge codebook here is built per square side only), and EC_TRACE_MODE gains
EC_CGI / EC_CIDX / EC_IF rungs (comp_group_idx, compound_idx, interp filter:
ctx + value + range) -- the rungs that localized this.

The sub-8x8 HORZ (two BLOCK_8X4) refusal STAYS: with the fix, 3 of 28 sweep
arms still differ by |d| <= 2 in luma only, in the bottom-left corner, with an
element-exact entropy ladder -- a post-entropy filter/reconstruction defect.
EC_AV1_SUB8_HORZ=1 decodes it for that bisect.
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.
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.
docs(intersub8): r2 reportAhmet Kaan Gümüş · 334dcc7Browse files
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).
fix(av1): the 8x8 COMPOUND leaf predicted both taps translationally -- libaom warps every is_global_mv_block slot independently of motion_mode, so a GLOBAL_GLOBALMV 8x8 compound leaf under a non-TRANSLATION model drifted a few luma levels; the 16-frame dual-filter/OBMC gate is now pre-filter byte-exact on all 16 decode-order frames and un-ignoredAhmet Kaan Gümüş · 8ff77a4
fix(av1): the 8x8 COMPOUND leaf predicted both taps translationally -- libaom warps every is_global_mv_block slot independently of motion_mode, so a GLOBAL_GLOBALMV 8x8 compound leaf under a non-TRANSLATION model drifted a few luma levels; the 16-frame dual-filter/OBMC gate is now pre-filter byte-exact on all 16 decode-order frames and un-ignored

Third instance of the twin-functions-drift class in this lane: decode_inter_block's
compound arm has applied allow_warp's GLOBAL branch per reference slot since
lane-cwarp r1, decode_inter_block8's compound arm never did.

Also adds the EC_OBMC rung (aomdec's own byte format) plus an EC_PICT
decode-order frame marker; the 325 EC_OBMC lines diff clean against the
instrumented aomdec, which exonerates the OBMC neighbour fields the r2
handoff suspected.
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove itAhmet Kaan Gümüş · a8d25d4
Merge branch 'lane-kf1200' (bee8ec0): the 16x4/4x16 chroma pair's edge-filter type comes from the pair's base mi, and a chroma-carrying gate source to prove it

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

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

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

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

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

Lane suite: 378 passed, 0 failed, 33 ignored.
fix(av1): the compound 8x8 leaf voted its reference-frame CDFs off a hard-coded LAST_FRAME and cleared both per-slot is_global_mv_block flags -- entropy on the dual-filter/OBMC 8x8 stream is now range-exact end to endAhmet Kaan Gümüş · db58f21
fix(av1): the compound 8x8 leaf voted its reference-frame CDFs off a hard-coded LAST_FRAME and cleared both per-slot is_global_mv_block flags -- entropy on the dual-filter/OBMC 8x8 stream is now range-exact end to end

Two twin-function drifts in `decode_inter_block8`'s COMPOUND arm, both found by a
phase-by-phase diff against `decode_inter_block` plus an msac RANGE ladder vs the
instrumented aomdec (class twin-functions-drift, memory adjacent-same-typed-args):

1. `read_compound_ref_frames` was passed `LAST_FRAME` for any inter neighbour and
   `-1` otherwise -- the old "coarse LAST_FRAME-or-intra" approximation -- while the
   side bands have carried the neighbour's REAL reference per mi since lane-inter8 r2.
   Every `av1_collect_neighbors_ref_counts` vote (uni_comp_ref_p1, comp_ref,
   comp_bwdref, ...) came off the wrong CDF row: the first compound 8x8 leaf of the
   pinned 5-frame stream decoded (LAST, LAST2) where aomdec reads (LAST, GOLDEN).
   Now passes `above_ref0`/`left_ref0`, the same two args `decode_inter_block` passes.

2. The leaf's grid stamp wrote `is_global_mv0: false, is_global_mv1: false`
   unconditionally, while `decode_inter_block`'s compound arm computes libaom's
   PER-SLOT `is_global_mv_block` (blockd.h:421-429). A neighbour carrying the flag
   makes `setup_ref_mv_list` substitute the READER's global mv for the neighbour's
   stored one, so the next block's stack held a stored mv where libaom has the global
   candidate -- 3 entries vs libaom's 2 at the 8x8 leaf mi (8,8), a different mv and
   a desync one block later.

Also: the leaf's single-ref arm now prints the same per-entry `EC_STACK` ladder
`decode_inter_block` prints (that is how (2) was isolated).

Gate `a_real_aomenc_dual_filter_obmc_8x8_inter_sequence_decodes_pixel_exact` stays
ignored, on a NEW and much smaller failure: the whole 16-frame stream now parses and
all 570 mode elements match aomdec's range line for line; what remains is a luma-only
reconstruction residue (|delta| <= 8) from decode frame 7.
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirelyAhmet Kaan Gümüş · f4f89df
fix(av1): a skipped sub-8x8 chroma block dropped its CfL alpha entirely

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

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

Gate: a new pinned 1-frame 3840x1608 10-bit AV1 key frame fixture plus a
test that hard-asserts `skip_cfl_hits > 0` (the shape fires exactly once
in that frame; lane-reelckf r1 already burned 20 aomenc recipes hunting a
skipped sub-8x8 CfL block and never produced one, so a synthetic gate is
out of reach). Before the fix 463 bytes of that frame's chroma were
wrong; after it the frame is pixel-exact against ffmpeg.
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference miAhmet Kaan Gümüş · cfef385
Merge branch 'lane-reelckf' (55532c7): skipped CfL blocks still predict, and a 1:4 chroma pair reads its edge-filter type at the chroma-reference mi

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

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

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

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

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

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

Byte-identical to the same addition on lane-reelckf 55532c7; committed
separately so the merge does not overwrite an uncommitted working-tree edit.
docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32Ahmet Kaan Gümüş · 5677085
docs(r14): r4 report -- main merge (no conflicts, cdf.rs identical), firing assert restored as a hard 8-bit assert, film-depth regression attributed to main; suite 372/0/32
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200Ahmet Kaan Gümüş · 28188f3
Merge main 85887c7 (lane-mvtwin, lane-sb128b) into lane-kf1200

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

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

This closes r1's open item -- the skipped-intra-still-predicts-CfL fix (29cd53f)
now fails a test if reverted.
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckfAhmet Kaan Gümüş · 2bbef8b
Merge main 85887c7 (lane-mvtwin 2e2a225) into lane-reelckf

Auto-merge, no conflicts: mvstack.rs + stream.rs gates only, cdf.rs untouched,
no deletions.
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaomAhmet Kaan Gümüş · 9ae16b3
Merge branch 'lane-mvtwin' (2e2a225): three MV-stack defects found by a phase-by-phase diff of the two twins against libaom

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

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

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

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

Gates by name 48 passed / 0 failed; full lib suite 377 passed / 0 failed / 33 ignored.
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B)Ahmet Kaan Gümüş · b7d13e4
feat(av1): 16x16-level AB partitions decode in inter frames (HORZ_A/HORZ_B/VERT_A/VERT_B)

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

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

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

libaom decodemv.c:1575 runs read_mb_interp_filter for every inter block,
compound included, right after read_compound_type. decode_leaf8's compound
arm skipped it entirely: it predicted both taps with a hard-coded Regular and
recorded the [3, 3] "no filter" sentinel, so a SWITCHABLE-filter stream lost
one symbol (two under dual filter) per compound 8x8 leaf, and a neighbouring
OBMC block's neighbour_filter fed the sentinel to from_switchable_symbol,
whose panic! aborted the process on a real aomenc dual-filter + OBMC stream
(flagged by lane-r14 r3). Same shape lane-gmaffine r3 fixed for the
single-ref leaf; this was the surviving sibling.

neighbour_filter now returns Result and refuses by name instead of panicking
(new refusal listed in refusal_inventory.rs) -- a decoder must never abort on
stream-derived state. New gate is RED and #[ignore]d with its measurement:
the compound leaf still desyncs past this read (bogus AB/1:4 refusal with the
read, bogus below-8x8 without it), so the fix is necessary, not sufficient.
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base miAhmet Kaan Gümüş · 6a9c6eb
fix(av1): a 16x4/4x16 pair's chroma edge-filter type came from the strip's own mi, not the pair's base mi

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

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

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

The gate passes --enable-cfl-intra=1 at 8 and 10 bits, so both
NEVER_EXERCISED lists drop it. covers_both_depths also learns the
'for depth in [8usize, 10]' spelling: such a gate builds both streams from one
recipe, but its yuv420p10le arm made is_ten_bit classify it 10-bit only.
fix(av1): a skipped 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.
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exactAhmet Kaan Gümüş · 9864603
Merge branch 'lane-sb128b' (e8e64a6): the 128x128 PARTITION_NONE block decodes pixel-exact

Three root causes, none where r2 pointed (the first TX_64X64 luma unit was
already identical range for range):
1. plane order -- libaom codes every plane of a 64x64 "mu" chunk before the
   next chunk (Y,U,V per quadrant); we read all luma units then all chroma.
   Below 128 a block is one chunk, so the new nchunk loop is byte-identical
   at every size already handled.
2. chroma txb_skip_ctx offset -- get_txb_ctx adds 10, not 7, when the plane
   block is LARGER than the transform; AV1's only such case is a 128 block's
   64x64 uv plane with TX_32X32 units. Added TXB_SKIP_CHROMA_32_BIG{,_Q0,_Q1,_Q3}
   from av1_default_txb_skip_cdfs[q][TX_32X32][10..13].
3. per-unit chroma context writes -- deferring them to end-of-block made the
   second quadrant read ctx 10 where libaom reads 11.

Also reverts 13 gate recipes r2 had rewritten --min-partition-size=16 -> 32
(a gate-recipe confound that red-lined the two inherited 10-bit rect/AB gates).

Refusal "a 128x128 superblock partition other than SPLIT" replaced by the two
narrower ones that remain (128-root HORZ/VERT|AB, and a 128 NONE root on an
inter frame); gate a_real_aomenc_key_frame_with_a_128x128_none_partition_decodes_pixel_exact
un-ignored: 4/4 arms pixel-exact, part128_none_hits=31.

Gates by name 33 passed / 0 failed; full lib suite 371 passed / 0 failed / 32 ignored.