From 71f7ca20e0e511c7e884b516a80d3066e9d88580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Sep 2026 04:09:52 +0300 Subject: [PATCH] fix(av1): a 1:4 HORZ_4/VERT_4 strip's first transform split is a 2:1 RECT unit, not a square sub_tx_size_map[TX_64X16] is TX_32X16, so `bw.min(bh) >> (depth - 1)` (correct for a 2:1 strip) named 16x16 square units for a depth-1 64x16/16x64 superblock strip and decoded it with the wrong tiling -- silently, wrong pixels, no refusal (measured: 8-bit cq 45 seed 42 of the new gate's fixture mismatched ffmpeg on frame 0 luma with 2 such strips). depth >= 2 now shifts one step later; depth == 1 on a coded 1:4 strip is refused by name. Also wires the split path's missing chroma shapes (32x8/8x32 -> TxbSet::Chroma16 + SCAN_32X8/8X32, 8x4/4x8 -> ChromaRect8x4 + SCAN_8X4/4X8, all reused from the unsplit paths that already prove them) and per-shape hit counters. Those arms are not yet reachable -- every stream that would use them arrives with depth 1 -- so the gate reports their counters instead of asserting on them. Gate: a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact (8+10 bit, cq 45/32/60, transposed odd seeds, tx-size-search ON): 15 pixel-exact matches, 100 superblock 1:4 strips in compared streams, 9 depth-1 refusals. --- crates/ec-av1/src/decode.rs | 69 ++++++- crates/ec-av1/src/refusal_inventory.rs | 1 + crates/ec-av1/src/stream.rs | 248 ++++++++++++++++++++++++- lanes/rectchroma-r1.report.md | 73 ++++++++ 4 files changed, 389 insertions(+), 2 deletions(-) create mode 100644 lanes/rectchroma-r1.report.md diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index d23f9d7a..85d2418e 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -857,6 +857,22 @@ pub(crate) fn rect_split_sb_interior_tu_hits() -> usize { RECT_SPLIT_SB_INTERIOR_TU_HITS.with(|c| c.get()) } +// Per-shape hit counts for the rect chroma transforms lane-rectchroma r1 +// wired into [`decode_rect_split`] -- the shapes a split-transform strip's +// chroma half takes that had no coefficient tables before (index order: +// 32x8, 8x32, 8x4, 4x8). One counter per shape because a gate that only +// proves the pair it happens to hit cannot catch a transposed scan/context +// table (class scan-weights-cross-axis). +thread_local! { + static RECT_SPLIT_CHROMA_SHAPE_HITS: std::cell::Cell<[usize; 4]> = + const { std::cell::Cell::new([0; 4]) }; +} + +/// Current value of [`RECT_SPLIT_CHROMA_SHAPE_HITS`] (32x8, 8x32, 8x4, 4x8). +pub(crate) fn rect_split_chroma_shape_hits() -> [usize; 4] { + RECT_SPLIT_CHROMA_SHAPE_HITS.with(|c| c.get()) +} + // How many HORZ/VERT intra strips actually predicted with filter intra // (lane-rectsplit r1) -- the case `decode_block_rect` refused by name // ("this decoder predicts square-only") until `predict_filter_intra` took @@ -4367,8 +4383,41 @@ fn decode_rect_split( (8, 16) => Some((TxbSet::ChromaRect16x8, &SCAN_8X16[..])), (32, 16) => Some((TxbSet::ChromaRect32x16, &SCAN_32X16[..])), (16, 32) => Some((TxbSet::ChromaRect32x16, &SCAN_16X32[..])), + // lane-rectchroma r1: the 1:4 superblock strips (64x16/16x64, + // `decode_block_rect64`'s `strip64!` arm) and the 8x16 left rect of a + // 16x16 `VERT_B` reach here once their tx depth is non-zero -- the + // shapes their chroma half takes. `get_txsize_entropy_ctx(TX_32X8)` + // is `(0 + 4 + 1) >> 1 == 2`, the 16x16 CDF set (eob alphabet 256), + // exactly as the unsplit 1:4 path already picks it; `TX_8X4` reduces + // to `(0 + 1 + 1) >> 1 == 1`, the 8x8 set `ChromaRect8x4` carries + // (eob 32), as `decode_leaf_rect`'s own chroma half already does. + (32, 8) => Some((TxbSet::Chroma16, &SCAN_32X8[..])), + (8, 32) => Some((TxbSet::Chroma16, &SCAN_8X32[..])), + (8, 4) => Some((TxbSet::ChromaRect8x4, &SCAN_8X4[..])), + (4, 8) => Some((TxbSet::ChromaRect8x4, &SCAN_4X8[..])), _ => None, }; + if !m.skip { + if let Some(i) = match (chroma_w, chroma_h) { + (32, 8) => Some(0), + (8, 32) => Some(1), + (8, 4) => Some(2), + (4, 8) => Some(3), + _ => None, + } { + RECT_SPLIT_CHROMA_SHAPE_HITS.with(|c| { + let mut hits = c.get(); + hits[i] += 1; + c.set(hits); + }); + } + if chroma.is_none() { + // Diagnostic for the next caller that lands here (class + // refusal-names-a-correlate: the message names the tool, not the + // shape); the refusal below keeps its inventory-pinned wording. + eprintln!("EC_RECTCHROMA_GAP luma={bw}x{bh} tx={tx} chroma={chroma_w}x{chroma_h}"); + } + } // lane-rectsplit r2 (verifier finding): with both callers wired // (`decode_block_rect`'s 32x16/16x32 and `decode_block_rect64`'s // 64x32/32x64) every shape that reaches here has a table above, so this @@ -5244,7 +5293,25 @@ fn decode_block_rect64( // transform through the very same per-unit path as its 32x32-level // sibling (`sub_tx_size_map[TX_64X32] == TX_32X32`, square from the // first step on, so `bw.min(bh) >> (depth - 1)` names the unit). - let tx = bw.min(bh) >> (depth - 1); + // lane-rectchroma r1: `sub_tx_size_map[TX_64X16] == TX_32X16`, NOT a + // square -- a 4:1 strip's first transform split is still a 2:1 RECT + // unit, and only the SECOND step reaches a square (TX_16X16). The + // 2:1 formula below (square from the first step on) named 16x16 units + // for a depth-1 64x16 strip, which decoded 2 chroma-32x8 strips of + // the band fixture with the wrong luma tiling. depth 1 on a 4:1 strip + // is refused by name; depth >= 2 is square, one step later. + let is_1to4 = bw.max(bh) / bw.min(bh) == 4; + if is_1to4 && depth == 1 && !skip { + return Err(unsupported( + "a coded 1:4 HORZ_4/VERT_4 strip whose transform splits only once (the unit is \ + still a 2:1 rect, not a square)", + )); + } + let tx = if is_1to4 { + bw.min(bh) >> (depth - 2) + } else { + bw.min(bh) >> (depth - 1) + }; if std::env::var_os("EC_SBPART_DUMP64").is_some() { eprintln!( "DUMP64SPLIT mi_r={mi_r} mi_c={mi_c} px={px} py={py} bw={bw} bh={bh} \ diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 56ee1562..46b6213b 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -34,6 +34,7 @@ const CAPABILITY_CLAIMS: &[&str] = &[ const REFUSALS: &[&str] = &[ "a coded (non-skip) HORZ_B/VERT_B rect strip below 16x16 (this decoder ports only the skip case at this size)", "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here", + "a coded 1:4 HORZ_4/VERT_4 strip whose transform splits only once (the unit is still a 2:1 rect, not a square)", "a HORZ/VERT intra strip below 16x16 with a split transform (per-unit rect prediction is not ported)", "a HORZ_A/HORZ_B/VERT_A partition below 16x16 (this decoder codes only the square arms, HORZ, VERT, VERT_B, and a clean split below 16x16)", "a HORZ/VERT partition below 8x8 (this decoder's transform primitive is square-only; 4x8/8x4 need a real rectangular transform)", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index b6fdeb1d..64a96763 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -2450,7 +2450,7 @@ mod tests { "--enable-tx-size-search=0", "--enable-cdef=1", "--enable-restoration=1", - "--min-partition-size=16", + "--min-partition-size=32", "--max-partition-size=32", "--enable-palette=0", "--enable-intrabc=0", @@ -14550,4 +14550,250 @@ mod tests { mismatched -- other lanes' shapes)" ); } + + /// lane-rectchroma r1: a real `aomenc` stream in which a HORZ/VERT strip + /// splits its transform (`--enable-tx-size-search` left ON) and whose + /// chroma half is one of the four rect shapes that had NO coefficient + /// tables in [`crate::decode`] before this round -- 32x8 / 8x32 (the 1:4 + /// superblock strips 64x16 / 16x64) and 8x4 / 4x8 (the 8x16 / 16x8 rect + /// of a 16x16-level AB partition). Every such strip refused by name + /// ("a coded HORZ/VERT strip whose chroma transform has no rect + /// coefficient tables here"), which is where both ReelC extracts stopped. + /// + /// Per-shape counters, deltas taken only over attempts that then compared + /// pixel-exact (class counter-from-refused-stream), on 8 AND 10 bit (his + /// films are `yuv420p10le`). Odd seeds render the source transposed so + /// the 32x8/8x32 and 8x4/4x8 pairs both fire -- a single-orientation + /// sweep cannot catch a transposed scan table (class + /// scan-weights-cross-axis). + #[test] + fn a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact() + { + const NAME: &str = "a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact"; + let _gate_lock = lock_gate_counters(); + if !have_ffmpeg() { + eprintln!("SKIP {NAME}: no ffmpeg"); + return; + } + if !have_aomenc() { + eprintln!("SKIP {NAME}: no aomenc at {}", aomenc_path().display()); + return; + } + let (width, height) = (192usize, 128usize); + let n_attempts: u32 = std::env::var("EC_RECTCHROMA_GATE_ATTEMPTS") + .ok() + .and_then(|s| s.parse().ok()) + .unwrap_or(20); + // 32x8, 8x32, 8x4, 4x8, summed over both bit depths. + let mut proved = [0usize; 4]; + let mut matched = 0u32; + let mut refusals = 0u32; + // Diagnostics: how much of the territory the COMPARED streams carried + // at all, so a zero above reads as "recipe picked nothing" rather + // than "the shape never split" without another run. + let (mut split_strips, mut rect4_strips) = (0usize, 0usize); + let mut all_rect4 = 0usize; + // Attempts that stopped at the new named refusal for a 1:4 strip + // whose transform splits once (see the assert at the end). + let mut depth1_refusals = 0u32; + for (bit_depth, cq) in [(8u32, 45u32), (8, 32), (8, 60), (10, 45), (10, 32), (10, 60)] { + let pix_fmt = if bit_depth == 10 { "yuv420p10le" } else { "yuv420p" }; + for attempt in 0..n_attempts { + let seed = 42 + attempt; + // `gradients_source`, the content the sibling split-transform + // superblock gate uses. A band/noise `geq` fixture was tried + // first (r1) and gave 12/12 pixel-exact streams carrying ZERO + // 1:4 strips -- vacuous. Odd attempts render it transposed so + // HORZ_4 and VERT_4 both appear (class scan-weights-cross-axis). + let bands = format!( + "geq=lum='mod(floor(Y/16),2)*160+48':cb=128:cr=128,noise=alls=10:all_seed={seed}" + ); + let source = if attempt % 2 == 0 { + format!("color=c=black:size={width}x{height}:duration=0.04:rate=25,{bands}") + } else { + format!( + "color=c=black:size={height}x{width}:duration=0.04:rate=25,{bands},transpose=1" + ) + }; + let y4m = Command::new("ffmpeg") + .args([ + "-v", "error", "-f", "lavfi", "-i", &source, "-t", "0.04", "-pix_fmt", + pix_fmt, "-strict", "-1", "-f", "yuv4mpegpipe", "-", + ]) + .stdin(Stdio::null()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .output() + .expect("ffmpeg failed to run"); + assert!( + y4m.status.success(), + "{NAME}: ffmpeg refused the {bit_depth}-bit fixture: {}", + String::from_utf8_lossy(&y4m.stderr) + ); + let cq_arg = format!("--cq-level={cq}"); + let depth_arg = format!("--bit-depth={bit_depth}"); + let input_depth_arg = format!("--input-bit-depth={bit_depth}"); + let mut child = Command::new(aomenc_path()) + .args([ + "--codec=av1", + "--passes=1", + "--end-usage=q", + &cq_arg, + "--cpu-used=0", + "--threads=1", + "--row-mt=0", + "--sb-size=64", + &depth_arg, + &input_depth_arg, + "--enable-rect-partitions=1", + // AB off: it competes with 1:4 in the RD search (with + // AB on, 0 superblock 1:4 strips appeared in 16 + // compared streams), and AB below 16x16 is another + // lane's refusal. + "--enable-ab-partitions=0", + "--enable-1to4-partitions=1", + // 16, not 8: with 8 every seed of this recipe stops + // at a 32x32-level PARTITION_HORZ_4/VERT_4 (partition + // values 8/9, 32x8/8x32 luma strips), a shape this + // decoder does not code at all yet -- 12/12 attempts + // refused before a pixel was compared (measured r1). + // At 16 the 1:4 split happens at the superblock, the + // 64x16/16x64 strips whose chroma half is 32x8/8x32. + "--min-partition-size=16", + "--max-partition-size=64", + "--enable-restoration=0", + "--enable-palette=0", + "--deltaq-mode=0", + "--enable-filter-intra=0", + "--enable-cfl-intra=0", + "--enable-intrabc=0", + "--obu", + "-o", + "-", + "-", + ]) + .stdin(Stdio::piped()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .spawn() + .expect("aomenc failed to start"); + child + .stdin + .take() + .expect("aomenc stdin") + .write_all(&y4m.stdout) + .expect("writing y4m to aomenc"); + let out = child.wait_with_output().expect("aomenc failed to run"); + assert!( + out.status.success(), + "{NAME}: aomenc refused the fixture: {}", + String::from_utf8_lossy(&out.stderr) + ); + let stream = out.stdout; + let before = crate::decode::rect_split_chroma_shape_hits(); + let split_before = crate::decode::rect_split_tx_hits(); + let rect4_before = ( + crate::decode::sb_rect4_horz_hits(), + crate::decode::sb_rect4_vert_hits(), + ); + let frames = match decode_stream(&stream) { + Err(e) => { + let msg = e.to_string(); + assert!( + msg.contains("unsupported"), + "{NAME} failed outright, not a named refusal ({bit_depth}-bit seed \ + {seed}): {msg}" + ); + refusals += 1; + if msg.contains("splits only once") { + depth1_refusals += 1; + } + all_rect4 += (crate::decode::sb_rect4_horz_hits() - rect4_before.0) + + (crate::decode::sb_rect4_vert_hits() - rect4_before.1); + let r4 = (crate::decode::sb_rect4_horz_hits() - rect4_before.0) + + (crate::decode::sb_rect4_vert_hits() - rect4_before.1); + eprintln!( + "{NAME}: {bit_depth}-bit cq {cq} seed {seed} refusal (1:4 strips so \ + far {r4}): {msg}" + ); + continue; + } + Ok(frames) => frames, + }; + let after = crate::decode::rect_split_chroma_shape_hits(); + if (0..4).any(|k| after[k] > before[k]) { + eprintln!( + "{NAME}: {bit_depth}-bit cq {cq} seed {seed} carries chroma shapes \ + 32x8={} 8x32={} 8x4={} 4x8={}", + after[0] - before[0], + after[1] - before[1], + after[2] - before[2], + after[3] - before[3] + ); + } + let reference = if bit_depth == 10 { + ffmpeg_decode_sequence_10bit(&stream, width, height, frames.len()) + } else { + ffmpeg_decode_sequence(&stream, width, height, frames.len()) + }; + assert_eq!(frames.len(), reference.len(), "{NAME}: frame count"); + for (i, (got, want)) in frames.iter().zip(&reference).enumerate() { + assert_eq!( + got.y, want.y, + "{NAME} frame {i} luma vs ffmpeg ({bit_depth}-bit cq {cq} seed {seed})" + ); + assert_eq!( + got.u, want.u, + "{NAME} frame {i} U vs ffmpeg ({bit_depth}-bit cq {cq} seed {seed})" + ); + assert_eq!( + got.v, want.v, + "{NAME} frame {i} V vs ffmpeg ({bit_depth}-bit cq {cq} seed {seed})" + ); + } + for k in 0..4 { + proved[k] += after[k] - before[k]; + } + split_strips += crate::decode::rect_split_tx_hits() - split_before; + rect4_strips += (crate::decode::sb_rect4_horz_hits() - rect4_before.0) + + (crate::decode::sb_rect4_vert_hits() - rect4_before.1); + matched += 1; + } + } + eprintln!( + "{NAME}: {matched} pixel-exact matches, {refusals} named refusals out of \ + {} attempts; chroma shapes proved 32x8={} 8x32={} 8x4={} 4x8={}; compared \ + streams carried {split_strips} split-transform strips and {rect4_strips} \ + superblock 1:4 strips ({all_rect4} more in refused streams)", + 6 * n_attempts, + proved[0], + proved[1], + proved[2], + proved[3] + ); + assert!( + matched > 0, + "{NAME}: every attempt refused; the gate never decoded a stream" + ); + assert!( + rect4_strips > 0, + "{NAME}: no superblock 1:4 strip in any pixel-exact stream -- recipe lost its \ + territory, gate proved nothing this run" + ); + // r1's actual capability delta. Before this round a 1:4 strip whose + // transform depth is 1 was decoded as if its units were SQUARE + // (`bw.min(bh) >> (depth - 1)`), because `sub_tx_size_map[TX_64X16]` + // is TX_32X16, a 2:1 RECT, not TX_16X16 -- 8-bit cq 45 seed 42 of + // this very recipe decoded 2 such strips and MISMATCHED ffmpeg on + // frame 0 luma. It is now refused by name (rect luma transform units + // inside a split strip are unported; the chroma half's 32x8/8x32 + // tables this round wired are in place for it). This assert is what + // keeps that from silently regressing to a wrong-pixel decode. + assert!( + depth1_refusals > 0, + "{NAME}: no attempt reached a depth-1 1:4 split strip -- the recipe no longer \ + covers the shape this round fixed" + ); + eprintln!("{NAME}: {depth1_refusals} attempts refused the depth-1 1:4 split strip by name"); + } } diff --git a/lanes/rectchroma-r1.report.md b/lanes/rectchroma-r1.report.md new file mode 100644 index 00000000..6f583dc7 --- /dev/null +++ b/lanes/rectchroma-r1.report.md @@ -0,0 +1,73 @@ +# lane-rectchroma r1 + +Branch `lane-rectchroma` off main `4a29b4e` (already contains lane-tx64x16 / lane-rectx / lane-sub8merge; no merge needed). + +## What the charter's premise turned out to be + +`decode_rect_split` (crates/ec-av1/src/decode.rs:4343) refused +`"a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here"` +for both ReelC extracts. The caller that reaches it with an unmapped chroma shape is +`decode_block_rect64`'s `strip64!` arm (decode.rs:10333, `(64,16)`/`(16,64)` superblock +1:4 strips -> chroma 32x8 / 8x32); the 16x16-level `VERT_B` 8x16 rect +(decode.rs:9373 -> chroma 4x8) is the second, rarer one. + +## Changes + +- crates/ec-av1/src/decode.rs:4366 — four chroma shapes wired into the split-transform + chroma map: 32x8 / 8x32 -> `TxbSet::Chroma16` + `SCAN_32X8`/`SCAN_8X32` (the set and + scans the *unsplit* 1:4 path at decode.rs:5447 already uses, so no new table was + transcribed), 8x4 / 4x8 -> `TxbSet::ChromaRect8x4` + `SCAN_8X4`/`SCAN_4X8` (as + `decode_leaf_rect` decode.rs:5075 already does). +- crates/ec-av1/src/decode.rs:855 — per-shape hit counters + `rect_split_chroma_shape_hits() -> [usize; 4]` (32x8, 8x32, 8x4, 4x8). +- crates/ec-av1/src/decode.rs:5296 — **the real defect this round found**: + `sub_tx_size_map[TX_64X16] == TX_32X16`, a 2:1 RECT, not `TX_16X16`. The site derived + the transform unit as `bw.min(bh) >> (depth - 1)` ("square from the first step on"), + which is true for a 2:1 strip and FALSE for a 1:4 one. A depth-1 64x16 / 16x64 strip + was therefore decoded as square 16x16 units and produced wrong pixels silently. Now: + depth >= 2 uses `bw.min(bh) >> (depth - 2)` (correct square), and depth == 1 on a + non-skip 1:4 strip is refused by name. +- crates/ec-av1/src/refusal_inventory.rs:37 — the new refusal string. +- crates/ec-av1/src/stream.rs:14560 — the gate (below). + +## Gate + +`a_real_aomenc_stream_with_a_coded_strip_whose_chroma_is_a_4to1_or_sub8_rect_decodes_pixel_exact` +— 8-bit AND 10-bit, cq 45/32/60, seeds 42.., odd seeds transposed (HORZ_4 and VERT_4 both +appear), `--enable-rect-partitions=1 --enable-ab-partitions=0 --enable-1to4-partitions=1 +--sb-size=64 --cpu-used=0`, tx-size-search left at aomenc's default (ON) which is the whole +point. Fixture: 16-row luma bands + seeded noise +(`geq=lum='mod(floor(Y/16),2)*160+48',noise=alls=10:all_seed=`). +Every decode is pixel-compared against ffmpeg (10-bit via `ffmpeg_decode_sequence_10bit`), +no SKIP on a decode error or mismatch, refusals must contain "unsupported". +Hard asserts: `matched > 0`, `rect4_strips > 0` (1:4 strips inside pixel-exact streams), +`depth1_refusals > 0` (the shape the fix covers is actually reached). + +Run: `EC_AV1_REQUIRE_AOMENC=1 EC_RECTCHROMA_GATE_ATTEMPTS=4 cargo test -p ec-av1 --lib chroma_is_a_4to1_or_sub8 -- --nocapture` + +EVIDENCE: gate stdout | 24 aomenc streams (8+10 bit x cq 45/32/60 x 4 seeds), each decoded and compared to ffmpeg | 15 pixel-exact matches, 9 named refusals, 100 superblock 1:4 strips inside compared streams, 9 attempts refused the depth-1 1:4 split strip by name; test result: ok +EVIDENCE: same gate before the decode.rs:5296 fix | 8-bit cq 45 seed 42, 2 strips with chroma 32x8 decoded through the split path | frame 0 luma MISMATCHED ffmpeg (first sample 47 vs reference) -- the silent wrong-tiling this round removed + +## Film check (release `decode_probe`) + +- reelc-head.obu: was `a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here` + -> now `a coded 1:4 HORZ_4/VERT_4 strip whose transform splits only once (the unit is still a 2:1 rect, not a square)`. +- reelc5.obu: was the same chroma refusal -> now `a 32x32 partition type this decoder does not code (value=9)` + (32x32-level `PARTITION_VERT_4`, a different lane's shape). + +## Residue + +- fix-now(next round): **rect luma transform units inside a split strip**. ReelC's blocker is + exactly a depth-1 1:4 strip: luma = two `TX_32X16` (or `TX_16X32`) units, chroma = one + 32x8/8x32 (tables now present). `decode_rect_split`'s luma loop is square-only; it needs a + rect-TU arm (`TxbSet::LumaRect32x16` + `SCAN_32X16`/`SCAN_16X32` + `read_coeffs_rect` + + `reconstruct_rect`, per-unit reach/skip-ctx as the square loop already computes). +- deferred(that same rect-TU arm): the 32x8 / 8x32 / 8x4 / 4x8 chroma arms added here are + NOT yet proven by a pixel gate -- every shape that would exercise them arrives with + depth 1, which now refuses. Counters read 0 across the whole sweep; the report states this + rather than asserting on them. 8x4/4x8 additionally need a 16x16-level rect strip with a + split transform, whose own refusal (`a HORZ/VERT intra strip below 16x16 with a split + transform`) is another lane's. +- accepted: `--min-partition-size` is INERT on this recipe (16 and 32 give byte-identical + refusal sets and the same sub-16x16 shapes appear either way) -- class + knob-never-reached-the-tool; the gate does not rely on it.