forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on main

2026-09-25

lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-onlyAhmet Kaan Gümüş · 11dc087
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-only

decode_inter_block's strip tail ran the lane-inter16ab pair-span chroma
context rewrite unconditionally, but the pair form (16x8 / 8x16 span at
pair_mi) only exists at 4:2:0. At ss 0/0 every strip is its own chroma
reference and its own record already stamps exactly its own 16x4 (4x16)
span, so the rewrite smeared the strip's chroma state over one extra
row/col of cells: a skipped strip zeroed left[r+1] planes 1-2, erasing
the 16x16-intra block to its left's U/V coefficient-context stamps, and
the strip below read its chroma txb_skip off the wrong CDF row.

Measured on the default-partition lossless 4:4:4 6-frame stream in
/tmp/llkf (t6.obu, per av1llkf.report.md): decode refused mid-frame-1 at
the 16x4 strip mi(2,8) with the strip's U unit reading txb_skip base 0
where aom reads base 1 (left[2][1] 0 vs 23; the oracle's cells trace to
the intra block (0,4)'s U unit bc=3/br=2 as the last writer). Post-fix
all 6 frames are byte-exact against fresh aomdec --rawvideo output, and
INTER16_CHROMA_PAIR_HITS no longer fires on the pairless stream (31 -> 0
while the 48 strips still decode).

Gates: cargo test -p ec-av1 --lib a_lossless 7 passed 0 failed (both
4:2:0 lossless libaom gates untouched, the 444 min-partition-64 and
min-partition-8 inter gates, the sb128 pair, the 16x4 pair). cargo check
-p ec-av1 --all-targets: 0 warnings, 0 errors. rustfmt --check reports
no hunks inside the edited ranges.
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-onlyAhmet Kaan Gümüş · 1ddefc1
lane-av1-444interband: the inter 1:4 strip's chroma pair rewrite is 4:2:0-only

decode_inter_block's strip tail ran the lane-inter16ab pair-span chroma
context rewrite unconditionally, but the pair form (16x8 / 8x16 span at
pair_mi) only exists at 4:2:0. At ss 0/0 every strip is its own chroma
reference and its own record already stamps exactly its own 16x4 (4x16)
span, so the rewrite smeared the strip's chroma state over one extra
row/col of cells: a skipped strip zeroed left[r+1] planes 1-2, erasing
the 16x16-intra block to its left's U/V coefficient-context stamps, and
the strip below read its chroma txb_skip off the wrong CDF row.

Measured on the default-partition lossless 4:4:4 6-frame stream in
/tmp/llkf (t6.obu, per av1llkf.report.md): decode refused mid-frame-1 at
the 16x4 strip mi(2,8) with the strip's U unit reading txb_skip base 0
where aom reads base 1 (left[2][1] 0 vs 23; the oracle's cells trace to
the intra block (0,4)'s U unit bc=3/br=2 as the last writer). Post-fix
all 6 frames are byte-exact against fresh aomdec --rawvideo output, and
INTER16_CHROMA_PAIR_HITS no longer fires on the pairless stream (31 -> 0
while the 48 strips still decode).

Gates: cargo test -p ec-av1 --lib a_lossless 7 passed 0 failed (both
4:2:0 lossless libaom gates untouched, the 444 min-partition-64 and
min-partition-8 inter gates, the sb128 pair, the 16x4 pair). cargo check
-p ec-av1 --all-targets: 0 warnings, 0 errors. rustfmt --check reports
no hunks inside the edited ranges.
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurementAhmet Kaan Gümüş · 3274825
ec-av1: lane-av1lrflush -- r2's RU-row-0 flush defect refuted by measurement

The pipelined LR band release provably flushes RU row 0: with the filter
pipeline engaged (EC_AV1_FILTER_THREADS=4, recon serial, pipe_on witnessed
by a new unconditional PIPELINE_TAKEN counter) the witness decodes
byte-identical to the whole-frame path on all three frames, including the
128-root-rect inter frame; r2's stop-with-site was a stage-ladder mixup
(its FINAL numbers are today's POSTCDEF numbers; f2 already diverges at
PREFILT). The real f2 residual re-enters at column 128 inside the inter
64x128 at (128,0) -- the entropy lane's inter rect-strip site, untouched
here. New defect named for its own lane: wavefront recon (recon threads>1)
loses chroma writes at PREFILT on the inter frames (Y exact).

Lands the refutation as a doubly non-vacuous gate (PIPELINE_TAKEN delta +
LR_STRIPE0_HITS delta + pipeline==serial byte-exact + frames 0/1 vs
aomdec and ffmpeg through the pipeline), mutation-verified red by
disabling the RU-row-0 band release. cargo check 0 warnings; restoration
battery (EC_AV1_REQUIRE_AOMENC=1) 10/10 green.
lane-av1sub8rect444: the lossless sub-8 rect leaf reads its 4:4:4 chroma per TX_4X4 unitAhmet Kaan Gümüş · 50b44b4
lane-av1sub8rect444: the lossless sub-8 rect leaf reads its 4:4:4 chroma per TX_4X4 unit

decode_intra_sub8_leaf's chroma_444 && bw != bh arm read the lossless leaf's
chroma as one TX_8X4/TX_4X8 rect unit per plane (read_coeffs_rect, skip ctx
fixed at above+left) where lossless forces per-unit TX_4X4 -- the oracle reads
FOUR units (plane-major, ctx 11 = the plane-block-bigger-than-transform +10
row) and the rect unit count desynced the tile at the leaf's own chroma.
Route the arm through the read_plane per-unit walk (per-unit around_mi, the
+3 chroma offset, the lossless tx_type drop, per-unit record_mi_chroma), skip
the tail's whole-leaf chroma stamp for the walk -- nested INSIDE the
chroma_444 branch so a walked leaf cannot fall into the 4:2:0 group tail and
clobber the per-unit stamps with the group-composed state. 4:2:0 and the
non-lossless rect path are byte-preserved; the 7 a_lossless gates stay green.

Counter LLSUB8RECT444_CHROMA_WALK_HITS + decode_probe line; report in
lanes/av1sub8rect444.report.md. Entropy witness on the parent lane's t6.obu:
the named leaf's four chroma units now pair 1:1 with fresh aomdec (first
mismatch moved from read #2326 to #2489, the 16x4 strip at mi(2,8) -- named
there, llcpred's lane).
gate_coverage: retire the stale 8-bit enable-global-motion entry + classify 12-bit gates as high-depthAhmet Kaan Gümüş · 4753516
gate_coverage: retire the stale 8-bit enable-global-motion entry + classify 12-bit gates as high-depth

a_real_affine_global_motion_stream_decodes_pixel_exact loops [8u32, 10u32]
passing --enable-global-motion=1 pixel-exact at both depths since
lane-gmaffine r1, so the 8-bit hole was already closed; the entry survived
because no suite ran a tree containing both the gate and this test until
the ROTZOOM suite. is_ten_bit now also recognizes the 12-bit spellings
(encode_12bit(, --bit-depth=12, --input-bit-depth=12, yuv420p12le) so
12-bit gates land in the high-depth bucket.
lane-av1-ibcskip2: skipped-intrabc sub8 chroma predicts the DV frame copyAhmet Kaan Gümüş · f97f58c
lane-av1-ibcskip2: skipped-intrabc sub8 chroma predicts the DV frame copy

sub8_leaf_chroma444's skip arm pushed the intra mode (DC for an intrabc
leaf) with zero residual where libaom's av1_build_inter_predictors_sb
runs for an intrabc block regardless of skip: a skipped intrabc leaf's
chroma is the bare frame copy at the DV. Measured fail-before on
ll444_ibc_rect.obu at this HEAD (the leaf8 chroma-extent fix upstream
lets the fixture decode through): luma clean, U 2794 / V 2830 differing
samples across 180 4x4 cells, 175 of them exactly the frame's 150
skipped intrabc leaves, 5 their poisoned neighbours.

Fix: new first arm in sub8_leaf_chroma444 -- when intrabc_dv is Some and
skip, bilinear MC of the current frame's U/V at the DV armed through
set_palette_pred and pushed with ZERO_RESIDUAL (the luma skip arms'
route); the inherited chroma tx_type slot is disarmed unconsumed.
SKIPPED_INTRABC_DV_COPY_HITS pins the route. The 4:2:0 group-tail skip
arms are RESERVED territory: untouched, byte-for-byte, and 4:2:0 call
sites pass intrabc_dv = None so control flow through the edited function
is identical (420-heavy intrabc/lossless/sb128 batteries green).

The ibc444rect gate a_lossless_444_intrabc_rect_leaf_walks_per_4x4_units
pinned the leaf8 palette_window panic b6d4b528 removed and went red at
this HEAD ((339,339) walk census vs the pinned (3,3)); flipped per its
own r1 doc to the full-frame exact aomdec comparison with the census and
==150 DV-copy counter asserts. Mutation check: count-but-predict-flat
arm leaves the gate red at 'aomdec plane U: 2503 samples differ'.

Green: the flipped gate reports frame sample-exact vs oracle aomdec
(339+339 rect walks, 150 skipped-intrabc DV copies, 0 differing samples
on Y/U/V); every intrabc-named gate (17), lossless-named gate (12) and
sb128-named gate (9) passes; cargo check -p ec-av1 --all-targets 0
warnings. Report: lanes/av1ibcskip2.report.md.
lane-av1llintercdf: the lossless sub-8 intra leaf reads its uv_mode off the canonical cfl_allowed_px alphabetAhmet Kaan Gümüş · 10366d7
lane-av1llintercdf: the lossless sub-8 intra leaf reads its uv_mode off the canonical cfl_allowed_px alphabet

The t6 frame-1 all_zero divergence the llkf lane deferred was never a CDF
adaptation desync: the all_zero rows were identical at the divergent read (the
llkf report compared our PRE-update row snapshot against the oracle's
POST-update cdf0 print). The states part one block earlier, inside the intra
8x4 leaf's uv_mode read -- decode_intra_sub8_leaf picked the 14-symbol
uv_mode_cfl row unconditionally where av1_is_cfl_allowed forces the 13-symbol
uv_mode_no_cfl row for a lossless block whose chroma plane block is not a
single TX_4X4 (an 8x4 leaf at 4:4:4). The read now goes through the canonical
cfl_allowed_px like every other uv site; 4:2:0 is arithmetically unchanged
(every sub-8 chroma block is 4x4-or-smaller, predicate stays true).

t6 frame 0 stays byte-exact; pairs 2316/2317 now match the oracle's (value,
rng) and the ECIN bits delta returns to the constant +15. Frames 1..5 still
differ through a second, independent site named in the report: the same leaf's
chroma_444 && bw != bh arm reads one TX_8X4/TX_4X8 rect unit per plane where
lossless forces per-unit TX_4X4 (oracle: four units, ctx 11) -- stopped with
the site per the ticket. Gates: a_lossless 7 passed; cargo check
--all-targets 0 warnings.
lane-av1leaf8oob: derive leaf8 intrabc chroma extent from subsamplingAhmet Kaan Gümüş · 9aeafc1
lane-av1leaf8oob: derive leaf8 intrabc chroma extent from subsampling

decode_leaf8's intrabc frame-copy closure hardcoded the 4:2:0 chroma
halving (vec![0u16; 4 * 4], predict_with_filter at 4, 4) for the U/V
prediction buffers. At 4:4:4 the leaf's own chroma plane block is 8x8,
so the 16-sample override reached PlaneBuf::reconstruct as an 8x8
prediction and indexed prediction[16] of the 16-sample buffer
(len 16, index 16, decode.rs:3774). Size both buffers from
(8 >> ss_x, 8 >> ss_y) instead -- identical at 4:2:0, 8x8 at 4:4:4 --
which also heals the stride-8 palette windows the TX4 4:4:4-lossless
arm cuts from the same buffers.

Gate: stream::tests::an_intrabc_8x8_leaf_chroma_frame_copy_at_444_
decodes_without_the_oob pins the witness-hunt reproducer
(fixtures/444_leaf8_oob.obu, force-added, sha256 72bed279...) with a
red-before run reproducing the exact panic and a leaf8_intrabc_hits
0 -> 4 non-vacuity delta. The gate pins no pixel baseline: the stream
diverges from the oracle aomdec and reads never-written chroma samples
in 458 whole 8x8 blocks (nondeterministic output) -- one pre-existing
decode desync, deferred to a divergence lane, measured in
lanes/av1leaf8oob.report.md. intrabc + lossless filters green, cargo
check 0 warnings.
lane-av1-ibc444rect: intrabc rect leaves at lossless 444 walk per-4x4 unitsAhmet Kaan Gümüş · 0bfd062
lane-av1-ibc444rect: intrabc rect leaves at lossless 444 walk per-4x4 units

An unskipped intrabc BLOCK_8X4/BLOCK_4X8 leaf on a lossless frame reads
its coefficients as (bw/4)*(bh/4) inter TX_4X4 units, plane-major --
read_tx_size's lossless first line forces TX_4X4 before any tree, the
frame's TxMode is ONLY_4X4 so no var-tx tree is read either, and
av1_read_tx_type's qindex==0 return drops the tx_type the lossy 4x4
inter sets carry. The old route read one LumaRect8x4Inter /
ChromaRect8x4 rect unit and desynced (fail-before: the lossless WHT
assert (4, 8) != (4, 4) at TxParams::run).

- decode_leaf_rect8's intrabc arm: lossless non-skip leaves push the
  per-4x4 leaf list through the existing unit loop; the TXFM band
  publish defers to after the loop (set_txfm_ctxs runs at
  parse_decode_block's tail) and shrinks to (4, 4); the units' coding
  tx_type is nulled at lossless; the residual goes through TxParams
  with the frame's lossless flag (the dequant_and_inverse_typed_wh
  shortcut ran a DCT inverse over WHT-ordered levels).
- sub8_leaf_chroma444's intrabc non-square arm: lossless walks per-4x4
  TxbSet::Chroma4 units like the non-intrabc arm (lane-av1-llsub8),
  predicting the current frame at the DV.
- Counters INTRABC_RECT8_LOSSLESS_{LUMA,CHROMA}_HITS + stream
  accessors; gate a_lossless_444_intrabc_rect_leaf_walks_per_4x4_units
  pins fixtures/ll444_ibc_rect.obu (provenance + measurement in
  lanes/av1ibc444rect.report.md).

Measured vs the instrumented aomdec: EC_TRACE_COEFF ladders align and
the walked leaves' samples are 0-diff on both planes (luma 0/339 leaves,
chroma clean); remaining fixture diffs sit exclusively on skipped
intrabc blocks (the skipped-intrabc sub8 chroma predictor, escalated in
the report) behind the llintra-deferred decode_leaf8 8x8 buffers, which
this lane does not touch. 4:2:0 unchanged: the lossless 420 key/inter,
loss64, 444 key-frame, dodge2 inter and ten lossy intrabc gates all
green.
lane-av1-llkf: the 4x16/16x4 rect route records its lossless chroma units at their own ss-aware spanAhmet Kaan Gümüş · 97a9038
lane-av1-llkf: the 4x16/16x4 rect route records its lossless chroma units at their own ss-aware span

The default-partition lossless 4:4:4 key frame's first entropy divergence
(frame-0 all_zero read #452): decode_rect4_16_strip's lossless chroma
walk recorded every TX_4X4 unit with record_mi_chroma(cu_mi, 8, 8, ...)
anchored at oy/2, ox/2 -- the 4:2:0 subsampled form. At 4:4:4 a unit is
ONE mi cell, so each record smeared the unit's state over a 2x2 mi block;
a 4-wide strip's later units overwrote the NEXT COLUMN's above cell with
their own state (aom's av1_set_entropy_contexts stamps exactly
tx_size_wide_unit x tx_size_high_unit cells, one above + one left for
TX_4X4), and the following block's all_zero read the wrong txb_skip row.

Both record sites in the lossless_pair branch (skip and non-skip) are now
ss-aware: anchor (oy << ss_y) / MI, (ox << ss_x) / MI, span 4 << ss.
4:2:0 is arithmetically identical; non-lossless and intrabc arms untouched.

Entropy: all_zero rng ladders match the oracle on all reads of the whole
key frame (testsrc2 2304/2304, mandelbrot 2304/2304; fail-before #452 and
#208). testsrc2 single-key-frame decodes byte-exact vs fresh aomdec; the
sibling dodge2.obu witness stays byte-exact; a_lossless gates 7/7;
cargo check --all-targets 0 warnings.
lane-av1-witness2: Wave-2 census-shape witness hunt reportAhmet Kaan Gümüş · 334b43a
lane-av1-witness2: Wave-2 census-shape witness hunt report

Four Wave-2 refusals hunted with 8 aomenc encodes each (32 recipes,
31 valid): none reached. 4:4:4-only panic defects P1 (decode_block_128rect
chroma tiling assert, decode.rs:17631) and P2 (PlaneBuf::reconstruct OOB
via decode_leaf8, decode.rs:3766) found and recorded with /tmp repro
streams; they bound any further 4:4:4 hunting.
lane-av1-llpred2: skip_chroma_above reads the frame ss pair, not a rect-over-chroma_side ratioAhmet Kaan Gümüş · 0db45d1
lane-av1-llpred2: skip_chroma_above reads the frame ss pair, not a rect-over-chroma_side ratio

obmc_plan derived ss from trailing_zeros(write / chroma_side) on ONE
square side: a 4:2:0 16x8 strip read ss=(1,0) and lost its above-chroma
skip (libaom's av1_skip_u4x4_pred_in_obmc skips the plane block 8x4
under frame ss (1,1)), and a 4:4:4 16x8 strip divided 8/16=0 so
trailing_zeros(0)=64 panicked a debug build on the shift.

The decision is now the pure obmc_skip_chroma_above(write_w, write_h,
ss_x, ss_y) over the frame's own pair -- the same values obmc_run's
chroma windows shift by -- fed by ss_x(fctx)/ss_y(fctx) at all three
callsites (decode_inter_block, decode_inter_block8, the encoder's
obmc_prediction). A unit check pins the 4:2:0 16x8/8x16 skip and the
4:4:4 shapes; the 6-frame 444 fixture is cmp-exact against aomdec in a
debug decode probe, and the a_lossless 4:2:0 gates stay green.
lane-av1-llpred: chroma OBMC sizes follow the plane's own subsamplingAhmet Kaan Gümüş · ab30546
lane-av1-llpred: chroma OBMC sizes follow the plane's own subsampling

The min-partition-8 lossless 4:4:4 stream's 2772 chroma pixel diffs were
OBMC, not prediction input: obmc_run sized the chroma neighbour prediction
and blend windows with a literal /2 (the 4:2:0 half) where libaom shifts by
the plane's own subsampling (>>0 at 4:4:4), and obmc_plan's
skip_chroma_above hardcoded the luma shape list that av1_skip_u4x4_pred_in_obmc
only applies to 4x4/8x4/4x8 PLANE blocks, silencing the above-pass chroma
blend of every 8x8/16x8/8x16 OBMC block at 4:4:4. First differing sample:
frame 1 plane 1 x=88 y=4 (leaf mi(0,22), mv=(0,11)). Value-identical at
4:2:0. Stream now byte-exact vs fresh aomdec on all 6 frames; a_lossless
gates 6/6; cargo check 0 warnings.
lane-av1-llintra8: the inter frame's 8x8 intra leaf lossless 444 chroma walkAhmet Kaan Gümüş · 3e0f682
lane-av1-llintra8: the inter frame's 8x8 intra leaf lossless 444 chroma walk

decode_inter_block8's intra leaf read 4:4:4 lossless chroma as one TX_8X8
unit and hit TxParams::run's lossless WHT assert (8, 8) != (4, 4) -- the
one arm the inter arms' leaf8_inter_chroma_lossless did not cover. Route
it through read_intra_chroma_lossless (2x2 TX_4X4 raster per plane,
plane-major) and stamp chroma_stamped_per_unit so the tail's record_mi
keeps the walk's per-unit contexts. 4:2:0 keeps its single TX_4X4 unit.

Same leaf, one read earlier: gate the uv_mode CDF row on cfl_allowed_px
(decodemv.c:145, cfl.h:29 -- at lossless the CFL alphabet exists only
when the chroma plane block is BLOCK_4X4), so the 4:4:4 lossless leaf
reads the 13-symbol uv_mode_no_cfl alphabet instead of consuming a
different partition at its own uv_mode symbol.

Counter LLINTRA8_CHROMA_WALK_HITS + decode_probe line; report in
lanes/av1llintra8.report.md. Witness: testsrc2 128x96 lossless 444
min-partition-8, EC_COEFF trace 11292/11292 all_zero rngs byte-matched
against aomdec with the walk firing 34 times, key frame and all luma
planes byte-exact; dodge2.obu stays byte-exact; a_lossless gates 6/6.
lane-av1-llsub8b: 444 lossless inter sub8 rect chroma rasterAhmet Kaan Gümüş · 92ce894
lane-av1-llsub8b: 444 lossless inter sub8 rect chroma raster

decode_inter_sub8_rect2's chroma_444 coded arm read each 8x4/4x8 piece's
U/V plane block as one TX_8X4 rect unit where lossless codes TX_4X4 on
every plane (av1_get_tx_size) -- TxParams::run's WHT assert (8,4) != (4,4).
A lossless+mono-gated arm now routes the piece through the sibling's
read_inter_chroma_lossless walk at region (bw,bh), whose per-unit context
stamps replace the whole-block record_mi_chroma (the leaf8 rule).
4:2:0 untouched: the branch lives inside chroma_444 and the reserved
group-tail arm is not reached. The ll64 Golomb-tail refusal is gone; the
streams now stop at decode_inter_block8's intra-leaf chroma arm reading
one TX_8X8 at 4:4:4 lossless -- same class, llinter lane's function,
named in the report. dodge2 (sibling bytes) exact 6/6; mandelbrot witness
decodes 6/6 with 37 rect2 pieces; a_lossless gates 6/6; cargo check clean.
lane-av1-ll64: the rect64 64x32 chroma row is named and closed, not inventedAhmet Kaan Gümüş · 2b68d1d
lane-av1-ll64: the rect64 64x32 chroma row is named and closed, not invented

libaom has no such transform to add: av1_get_tx_size forces TX_4X4 for
every plane at lossless (blockd.h:1383) and av1_get_adjusted_tx_size
collapses TX_64X32/32X64 to TX_32X32 for chroma outside it
(blockd.h:1361-1367), so the four 64-axis chroma shapes are never one
coded unit -- the lossless arm already walks them as TX_4X4 units and
the chroma_tiled arm already tiles them.

The EC_RECTCHROMA_GAP diagnostic fired on exactly those working routes
and mislabelled them a gap (one lane report cited it as a decode stop);
it now fires only at the refusal's exact precondition and names the
libaom verdict. No decode-path edit: refusal wording byte-identical,
4:2:0 zero-change, decode_rect4_16_strip untouched.

Gates: 6-frame inter gate pixel-exact through aomdec and ffmpeg;
key-frame gate run for real on the pinned ll444-lossless-key bytes;
both 4:2:0 lossless gates green. cargo check 0 warnings.
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fixAhmet Kaan Gümüş · 66a6553
lane-av1-llinter2: port 13a262a6, firing gate for the 444 lossless inter fix

Pins the min-partition-64 dodge2 stream (aomenc profile 1, testsrc2
128x96 yuv444p, --lossless=1, --sb-size=64 --min/max-partition-size=64,
6 frames; 37658 bytes, sha256 5a070fa351a3f2109de855234f2b3d0a872970f3e
7f658db21f65c12eeb135b4) and asserts every frame pixel-exact through
both aomdec --rawvideo and ffmpeg (new ffmpeg_decode_sequence_444
helper), with the existing chroma_split_tx_hits counter as non-vacuity.
stream.rs resolved keeping both this lane's key-frame gate and the new
inter gate. Lane report records the same-panic proof and the two
deferrals: decode_rect4_16_strip (owning lane) and the ll444 rect64
64x32 chroma gap (named, non-panic).
lane-av1-llinter2: port 84acbd09, 444 lossless inter chroma rasterAhmet Kaan Gümüş · 988e528
lane-av1-llinter2: port 84acbd09, 444 lossless inter chroma raster

Same-panic port. This tree's lossless inter path panicked exactly as the
sibling's parent did: release 'range end index 24 out of range for slice
of length 16' in reconstruct_mc_rect (inlined into exec_mc), debug the
WHT assert (8, 8) != (4, 4), both through decode_inter_block8 ->
read_inter_plane -> push_mc_rect_tx. Ported fixes 1-3 verbatim: the 8x8
inter leaf's single-ref and compound chroma arms route
chroma_side == 8 && lossless && !mono through the new
leaf8_inter_chroma_lossless per-unit walk with the tail record's chroma
half saved/restored; read_inter_chroma_lossless and decode_inter_block's
mu_chroma_units replay made subsampling-aware. Fix 4 (decode_rect_split)
already present from lane-av1-llband2 and kept (with its
RECT_SPLIT_LOSSLESS_CHROMA444_HITS counter); fix 5 (decode_rect4_16_strip
span walk) EXCLUDED -- that function is owned by a live lane. 4:2:0
arithmetic unchanged everywhere (4 << 1 = 8).
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit spanAhmet Kaan Gümüş · f3e2fd4
lane-av1-llband2: port 01a34bc8, 444 lossless rect-strip chroma unit span

decode_rect_split's lossless chroma arm here is the same writer the
reviewed sibling commit 01a34bc8 (edith_codecs-av1llband) fixed for the
av1llsub8 stop at aligned step 19228 (16x8 leaf, U bc=2 br=0, txb_skip
base 1 vs oracle base 0 off a polluted above-band cell). Same base tree
6cf92769, same defect site (hardcoded luma_span=8 at decode.rs:10458).
Ported that fix instead of authoring a second one: unit luma span now
derived from the plane subsampling (span_x=4<<ss_x, span_y=4<<ss_y) for
the cu_mi step, around_mi_rect, tu_reach and the immediate + replayed
record_mi_chroma stamps, plus the rect_split_lossless_chroma444_hits
non-vacuity counter, the a_real_aomenc_lossless_444_key_frame gate over
the pinned fixtures/ll444-lossless-key.obu, and the decode_probe llband
line. Post-images cmp-identical to 01a34bc8; 4:2:0 arithmetic unchanged.

Measured here: 444 lossless key frame 178 -> 0 differing bytes
(sample-exact all planes, counter 160 units on the fixture); 4:2:0
lossless key + inter gates green; cargo check -p ec-av1 --all-targets
0 warnings. decode_rect4_16_strip, read_inter_rect_chroma,
restoration.rs and the intra write-back untouched. Details in
lanes/av1llband2.report.md.
ec-av1: lane-av1-422m -- chunk an 8x32 luma block's 4:2:2 chroma into TX_4X4 units like libaomAhmet Kaan Gümüş · 8cb8b42
ec-av1: lane-av1-422m -- chunk an 8x32 luma block's 4:2:2 chroma into TX_4X4 units like libaom

ss_size_lookup marks that plane BLOCK_INVALID, so libaom never codes a
(4, 32) unit: get_vartx_max_txsize resolves the invalid plane size to
TX_4X4 and decode_reconstruct_tx never recurses for chroma, giving eight
4x4 chunks per plane. read_inter_rect_chroma now chunks that one shape
(4:2:0/4:4:4 bit-identical by construction), drops the inherited tx_type
(av1_get_tx_type is DCT_DCT at TX_4X4), and counts units in
CHROMA422_CHUNK_HITS (decode_probe: chroma422_chunk).

The header refusal stays: with the chunking the 16-frame fixture decodes
past the old stop into the intra-in-inter 64x64 arm, which reads a whole
(32, 64) chroma plane as one unit and trips the rect-coeff scratch bound;
libaom chunks that plane to TX_32X32 units (av1_get_adjusted_tx_size).
Named in lanes/av1422m.report.md for the intra 4:2:2 chroma lane.
ec-av1: lane-av1-422l -- name the rect-set refusal (4, 32); libaom marks it invalid, no row addedAhmet Kaan Gümüş · 74dab5c
ec-av1: lane-av1-422l -- name the rect-set refusal (4, 32); libaom marks it invalid, no row added

The refusing inter chroma unit on the 422 probe fixture is (w,h)=(4,32),
the 4:2:2 plane residual of an 8x32 luma block. Pinned oracle source:
av1_ss_size_lookup[BLOCK_8X32][1][0] = BLOCK_INVALID and no TX_4X32
exists, so no entropy-set row is invented; the refusal stays. Env-gated
EC_AV1_TRACE_422 print left at the arm for the owning lane. Report:
lanes/av1422l.report.md.
ec-av1: lane-av1-422l -- key the inter-strip chroma pairing on the strip's own subsampled axisAhmet Kaan Gümüş · 9278c9a
ec-av1: lane-av1-422l -- key the inter-strip chroma pairing on the strip's own subsampled axis

strip_has_chroma: horz keeps i%2==1 || ss_y==0 (no chroma row parity once
ss_y==0, every 16x4 strip its own reference, mirroring the intra strip
arm); vert becomes i%2==1 || ss_x==0 so 4:4:4 keeps self-paired strips and
4:2:2 keeps the 4:2:0 column pairing with an existing left neighbour.
pair_mi self-pairs whenever the pair axis is unsubsampled, and prev
carries pair motion only when the strip actually pairs. 4:2:0 and 4:4:4
are branch-identical to the previous code; 4:2:2 no longer underflows
at_mi.0/at_mi.1 on strip 0.
ec-av1: lane-av1-422j -- size inter chroma skip residual from the write rect; refusal staysAhmet Kaan Gümüş · dfeffbc
ec-av1: lane-av1-422j -- size inter chroma skip residual from the write rect; refusal stays

decode_inter_block's chroma square was side >> ss_x, but reconstruct_mc_rect
indexes the prediction/residual buffers row * chroma_side + col over the
WRITE rect: at ss (1,0) that rect is side/2 x side, so frame 1's skipped
16-level VERT_B strip (4x16 chroma) read prediction[64..68] out of the
64-sample buffer. Size the square from the chroma rect's enclosing extents;
4:2:0 and 4:4:4 are bit-identical.

Same-shape sweep: both chroma skip arms (single-ref + compound) share the
fix; the luma arms are provably safe (side^2 >= (h-1)*side + w); the other
inter-path slices fit their forwarded dims. The square non-skip chroma arm
paired a chroma_side-square unit with the 4:2:0 scan (coefficient-count
assert) and now routes non-square chroma rects through read_inter_rect_chroma;
rect_inter_chroma_set and rect_scan gained the square rows the 4:2:2 strips'
square chroma plane blocks need.

Frontier moved to the intra-in-inter chroma read (intra machinery, not the
ZERO_RESIDUAL class; named stop). Stream not pixel-exact, so the 4:2:2
refusal stays; probe bypass reverted. 420 gates green (refusal-by-name 1/1,
aomenc skipped-8x8 tx-split 2/2), cargo check 0 warnings.
ec-av1: lane-av1-422h r1 -- 4:2:2 chroma refs rng-exact to the bottom SB row; refusal staysAhmet Kaan Gümüş · dcd6a07
ec-av1: lane-av1-422h r1 -- 4:2:2 chroma refs rng-exact to the bottom SB row; refusal stays

The mi(8,10) premise was false: with EC_PART partition traces (the probe
ships in the oracle tree, never enabled) both decoders read HORZ there.
Four real defects fixed instead: decode_leaf_rect8 now decodes per-strip
chroma under is_chroma_reference (both BLOCK_8X4 strips are refs), the
422 split4 column parity is odd-column per the formula (422f/g's even rule
came from the misread), sub8_leaf_chroma422 anchors odd-column ctx read/
write at the floor chroma cell, and decode_leaf8's 422 chroma ctx reads
the sampled dc votes. Frame 0 now pairs rng-for-rng with aomdec through
328 partition reads (tell +14 const) to the bottom SB row, where our
partial-SB walk skips the gathered 64x64 partition symbol libaom reads at
mi(32,0) -- named stop. All arms keyed on ss (1,0); 420 gates green;
refusal byte-identical and re-proven.
ec-av1: lane-av1-422g r1 -- sub-8 even-column chroma-ref arm in decode_leaf_split4, behind the header refusalAhmet Kaan Gümüş · 6130e75
ec-av1: lane-av1-422g r1 -- sub-8 even-column chroma-ref arm in decode_leaf_split4, behind the header refusal

4:2:2 (ss 1,0): every even-mi-column 4x4 leaf is its plane's own chroma
reference (is_chroma_reference's !(mi_col & ss_x)) and codes one TX_4X4
chroma unit per plane (ss_size_lookup[BLOCK_4X4][1][0] rounds the 2x4
plane area up to BLOCK_4X4), not 4:2:0's single bottom-right group unit.
has_chroma now keys on the leaf's mi column at ss (1,0); new
sub8_leaf_chroma422 reads the square unit through read_plane's Chroma4
route at the chroma position, with around_mi_422_chroma context reads
(one chroma column spans two luma mi), per-leaf entropy stamping, and
the skip/intrabc arms. New CHROMA422_SUB8_HITS witness counter.

STOP: the arm is unproven on t422 -- the frame-0 walk never reaches
decode_leaf_split4 (zero split8 calls before decode_rect4_16_strip's
closed-shape panic at the 32x64 strip whose 16x64 chroma has no table
row), so the divergence the 422f report attributed to the mi(9,10)
sub-8 chroma begins EARLIER, at the 8x8 partition symbol. Refusal
byte-identical; bypass reverted.
lane-av1-llsub8: 444 lossless rect-leaf chroma reads per-4x4 unitsAhmet Kaan Gümüş · f0141f9
lane-av1-llsub8: 444 lossless rect-leaf chroma reads per-4x4 units

Two symbol-level fixes behind the 4:4:4 lossless sub8 chroma miss, both
named against the oracle's EC_COEFF ladder on the regenerated ll444
fixture:

- read_intra_mode_sub8 read uv_mode off the 14-symbol CFL alphabet
  unconditionally; a 4:4:4 lossless BLOCK_8X4/4X8 leaf's plane block is
  the rect itself, so is_cfl_allowed is FALSE and the stream carries the
  13-symbol uv_mode_no_cfl row (wrong-alphabet-same-value).
- the rect leaf's lossless chroma is (bw/4)*(bh/4) TX_4X4 units with
  get_txb_ctx's +10 txb_skip rows, not one TX_8X4 rect unit off
  ChromaRect8x4's [1][0..2] rows; the lossless arm now walks plane-major
  per-4x4 units through read_plane(TxbSet::Chroma4, +3) with immediate
  per-unit entropy stamps (tail stamps per unit too).

Key frame 15001 -> 178 differing bytes, first divergence pushed from
aligned step 12136 to 19228 (named stop in lanes/av1llsub8.report.md:
above-band cell state behind a 16x8 leaf's U bc=2 unit). 4:2:0 lossless
gates stay green; cargo check 0 warnings.
ec-av1: lane-av1-422d r1 -- 8x8 leaf chroma is one 4x8 rect unit per plane at ss (1,0), behind the header refusalAhmet Kaan Gümüş · 4280e51
ec-av1: lane-av1-422d r1 -- 8x8 leaf chroma is one 4x8 rect unit per plane at ss (1,0), behind the header refusal

decode_leaf8's non-444 arm hardcoded a 4x4 TxbSet::Chroma4 unit for every
subsampled format. At ss (1,0) an 8x8 leaf's chroma plane block is 4x8, ONE
rect unit per plane (av1_get_max_uv_txsize(BLOCK_8X8) =
max_txsize_rect_lookup[BLOCK_4X8] = TX_4X8): all three arms (skip, single
8x8 unit, TX4) now read it through leaf8_chroma422_unit in the
ChromaRect8x4 class with SCAN_4X8, mirroring sub8_leaf_chroma444's rect arm
at the leaf's halved position. The intrabc DV copy covers the whole 4x8
plane block, and the leaf's UV palette colour-index map decodes over the
true (side >> ss_x, side >> ss_y) extent instead of the squared
(side >> ss_x). 4:2:0 keeps the 4x4 arm exactly; 4:4:4 untouched.

Measured against the aom oracle on the lane fixture: all four leaf8 chroma
rect reads of the first HORZ_A pair rng-for-rng through their full
coefficient bodies. The stream still desyncs later at decode_leaf_rect's
chroma arm (a 16x8 strip's 8x8 plane block read as a 4x8 rect), so the
header refusal stays. Next site named in lanes/av1422d.report.md.

Gate: a_real_aomenc_stream_with_a_skipped_8x8_intra_leaf_whose_tx_split_
decodes_pixel_exact (+ 10-bit twin) green, 6/6 pixel-exact matches.
ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusalAhmet Kaan Gümüş · 3439011
ec-av1: lane-av1-422b r1 -- decode_block 4:2:2 rect chroma unit walk behind the header refusal

- decode_block tx-size arm: 4:2:2 branch keyed to ss (1,0) -- uv plane block
  (side/2, side), max uv tx = square tx of the smaller dim capped at TX_32X32;
  unit grid is (side/2)/tx wide by side/tx tall
- all three chroma walks (skip / single-TU / multi-TU mu-chunk) generalized
  to cn_cols x cn_rows with per-axis luma anchors (around_mi_rect,
  tu_reach_rect, record_mi_chroma w/h, rect units tuples)
- intrabc chroma prediction buffers sized chroma_side x chroma_height
- Chroma8/Chroma16 txb_skip widened to six rows (+10 chroma rows, neutral
  per token_cdfs.h; mirrors the existing Chroma4/Chroma32 BIG assembly) --
  fixes the txb_skip[3] index panic a 4:2:2 plane-bigger-than-transform read
  took
- chroma422_square_hits() pub + printed by decode_probe; EC_PART/EC_PART_VAL
  traces (EC_TRACE-gated) at the 64/32/16/8 partition reads, format-matched
  to the instrumented aomdec oracle
- header refusal untouched and still committed; bypass used for measurement
  only and reverted before commit; stop + next site in lanes/av1422b.report.md
lane-av1-llintra: 444 lossless intra-side fixes, key-frame exact at 64x64, sub8 chroma stop namedAhmet Kaan Gümüş · 25a6b5f
lane-av1-llintra: 444 lossless intra-side fixes, key-frame exact at 64x64, sub8 chroma stop named

- decode_leaf8: 444 lossless leaf chroma is a plane-major 2x2 raster of
  TX_4X4 units per plane (oracle av1_get_tx_size forces TX_4X4 on every
  lossless plane), not one Chroma8 unit whose lossless WHT is 4x4-only
  and panicked reconstruct (index 16 len 16); skip arm predicts the four
  units per-unit; per-unit record_mi_chroma replaces the whole-leaf
  chroma band stamp for that shape.
- read_intra_chroma_lossless: cu_mi divisor, tu_reach scaling and
  record_mi_chroma spans made subsampling-aware (byte-identical at 420).
- decode_block whole-block chroma unit clip: plane span and overhang
  made subsampling-aware; the hardcoded 420 span clipped three quarters
  of a 444 block's coded units and desynced the tile (the 64x64 key
  frame luma diff).
- cfl_allowed_px: lossless arm now mirrors is_cfl_allowed's
  plane_bsize == 4x4 rule, so a 444 lossless leaf reads the 13-symbol
  uv_mode CDF (wrong-alphabet-same-value).

Verified: dodge2 key frame byte-exact vs aomdec --rawvideo; ll444 key
frame no longer panics; a_lossless_libaom_inter_frame_decodes_sample_exact
green; cargo check -p ec-av1 --all-targets 0 warnings. Stop: ll444 key
frame still desyncs at the first sub8 leaf's chroma unit (sub8_leaf_
chroma444 square branch, symbol-level, site named in the report);
inter frames panic in reconstruct_mc_rect via decode_inter_block8
(different function, out of lane).
ec-av1: lane-av1-422 r1 -- 4:2:2 chroma class fixes behind the header refusalAhmet Kaan Gümüş · 14d0a2f
ec-av1: lane-av1-422 r1 -- 4:2:2 chroma class fixes behind the header refusal

Refusal stays: a 422 census stream still desyncs downstream of the square
chroma sites (decode_block's square chroma walk is the next blocker). Landed
slice, all unreachable at ss (1,1)/(0,0) by construction:

- decode_rect_split: square chroma rows (8x8/16x16/32x32) through the tiled
  square reader; chroma_tiled extended accordingly
- decode_rect4_16_strip: 422 strips are their own chroma reference (no 420
  pair merge; ss_size_lookup[16X4][1][0] = BLOCK_8X4 per strip); fixed the
  lmi.1 - 1 underflow that arm change exposed
- decode_leaf_rect chroma match: (16,16) and (8,32) rows
- decode_block_rect4 chroma match: (16,8) and (8,4) rows; the closed-set
  unreachable now names the offending shape
- cfl_ac_ss: cfl_luma_subsampling_422_lbd_c branch (horizontal pairs, full
  height)
- mv_to_q4: 8 chroma MC sites passed ss_x for the row component; now ss_y
- 1:4 strip has_chroma: i % 2 == 1 || ss_y == 0 (row-parity clause drops out
  when the chroma height is not subsampled), both call sites
- CHROMA422_SQUARE_HITS counter + chroma422_square_hits accessor: counts
  square chroma coefficient units at ss (1,0) only; a restored /2 chroma
  height lands 422 squares on the rect rows and the counter reads 0

Witness gates for the landed paths are green (40-test sweep incl. the
non-420 refusal gate and the cfl/filter-intra/palette pixel-exact witnesses);
cargo check -p ec-av1 --all-targets: 0 warnings. Report: lanes/av1422.report.md