From 01e4e7796aa9494db47e2d37706d6bc2acf16eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sat, 26 Sep 2026 03:52:46 +0300 Subject: [PATCH] ec-av1: lane-av1-422stripanchor -- decode_rect_split's 4-wide strips ported to the split4 floored-pair anchor A 1-mi-wide strip (luma (4, 16)/(4, 8)) has no chroma plane block of its own at ss (1, 0) -- av1_ss_size_lookup marks both BLOCK_INVALID -- so the odd-column strip now codes the PAIR's (4, bh) plane at the mi-exact floored cell ((mi_col & !1) * MI >> ss_x, the sub8_leaf_chroma422 rule) with the entropy context on the floored column, the chroma reach and CfL source taken from the pair block, and the skip/tiled arms tiling the pair in (4, 8) OOB units (the TX_4X8 byte, +3 txb rows). 4:2:0/4:4:4 reduce to the old expressions per format cell, checked by a census gate against the oracle's own ss_size_lookup column; CHROMA422_PAIR_WIDE_HITS wired so a future stream that routes a 4-wide strip here proves itself. The (2, 16)/(2, 8) refusal shapes are handled now, but the lift stays unwitnessed: no current stream can route a 4-wide strip into decode_rect_split (the enumeration test pins the five callers at 8 <= min; the real 4-wide readers carry their own pair arms), so the refusal string stays as the guard for the remaining shapes and the report says so. t422 frame 0 (fixture sha d3fa4bee...) is byte-exact on Y/U/V at PREFILT, POSTDEBLOCK, POSTCDEF and FINAL, all 16 frames decode, and the new arm measures inert on the fixture (pair_wide 0, all other counters unchanged); bypass local-only, reverted byte-identical. cargo check 0 warnings. --- crates/ec-av1/examples/decode_probe.rs | 4 + crates/ec-av1/src/decode.rs | 238 ++++++++++++++++++++++--- lanes/av1422stripanchor.report.md | 103 +++++++++++ 3 files changed, 321 insertions(+), 24 deletions(-) create mode 100644 lanes/av1422stripanchor.report.md diff --git a/crates/ec-av1/examples/decode_probe.rs b/crates/ec-av1/examples/decode_probe.rs index 9f4bcf44..20ae4978 100644 --- a/crates/ec-av1/examples/decode_probe.rs +++ b/crates/ec-av1/examples/decode_probe.rs @@ -46,6 +46,10 @@ fn main() { "chroma422_chunk: {}", ec_av1::decode::chroma422_chunk_hits() ); + println!( + "chroma422_pair_wide: {}", + ec_av1::decode::chroma422_pair_wide_hits() + ); let (h, v, c) = ec_av1::stream::rect4_32_counters(); println!("rect4_32: horz={h} vert={v} coded={c}"); println!( diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 2bd42aa6..6b28cd58 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -2099,6 +2099,21 @@ pub fn chroma422_chunk_hits() -> usize { CHROMA422_CHUNK_HITS.with(|c| c.get()) } +// lane-av1-422stripanchor: how many 4-wide-strip PAIR chroma units +// ([`decode_rect_split`]'s ported floored-pair anchor) decoded. A 4:2:0 or +// 4:4:4 frame cannot increment it (the arm is keyed to a 2-px-wide chroma +// block, which only a 1-mi-wide strip at ss (1, 0) produces), so a non-zero +// read proves a stream routed a 4-wide strip through the split path. +thread_local! { + static CHROMA422_PAIR_WIDE_HITS: std::cell::Cell = + const { std::cell::Cell::new(0) }; +} + +/// Current value of [`CHROMA422_PAIR_WIDE_HITS`]. +pub fn chroma422_pair_wide_hits() -> usize { + CHROMA422_PAIR_WIDE_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 @@ -10168,6 +10183,35 @@ fn depth_to_tx_wh( (w, h) } +/// lane-av1-422stripanchor: [`decode_rect_split`]'s 4-wide-strip port of the +/// split4 floored-pair anchor ([`sub8_leaf_chroma422`]'s rule). A 1-mi-wide +/// strip (luma `(4, 16)` / `(4, 8)`) has NO chroma plane block of its own at +/// ss (1, 0) -- `av1_ss_size_lookup[BLOCK_4X16][1][0]` and +/// `[BLOCK_4X8][1][0]` are both BLOCK_INVALID (`common_data.c`), and a +/// 2-px-wide area is not a transform shape. The strip pairs with its +/// even-column sibling (`is_chroma_reference`'s `mi_col & 1` column clause, +/// the rule [`decode_rect4_16_strip`] implements one partition level up), and +/// the ODD-column strip codes the PAIR's `(4, bh)` plane anchored at +/// `av1_setup_dst_planes`' mi-exact floor `(mi_col & !1) * MI >> ss_x`, with +/// the entropy context on the floored cell. Returns +/// `(pair block width, pair block height, write anchor x, entropy mi column)` +/// for that pair, or `None` when the strip keeps its own plane block at its +/// own origin -- which is every 4:2:0 and 4:4:4 cell (their chroma is never +/// 2 px wide) and every 4:2:2 strip of 8 px or more. +fn chroma422_pair_plane( + ss_x: bool, + ss_y: bool, + mi_col: usize, + bw: usize, + bh: usize, +) -> Option<(usize, usize, usize, usize)> { + if ss_x && !ss_y && (bw >> 1) == 2 { + Some((4, bh, ((mi_col & !1) * MI) >> 1, mi_col & !1)) + } else { + None + } +} + /// Decodes the planes of one `bw`x`bh` HORZ/VERT intra strip whose luma /// transform is SPLIT (`tx_depth != 0`) -- lane-rectsplit r1, the case every /// rect path here refused by name until now ("per-unit rect prediction is not @@ -10228,6 +10272,21 @@ fn decode_rect_split( (bw, bh), (8, 16) | (16, 32) | (32, 64) | (64, 128) | (8, 32) | (16, 64) ); + // lane-av1-422stripanchor: the 4-wide strips' PAIR chroma -- the ported + // floored-pair anchor. `chroma422_pair_plane` is `Some` exactly when this + // strip's own chroma block would be 2 px wide at ss (1, 0); the pair's + // plane is then `(4, chroma_h)` written at the FLOORED cell + // (`chroma_x`), and the skip/tiled chroma arms below tile it in (4, 8) + // units (the OOB `max_txsize_rect_lookup[BLOCK_INVALID]` byte, TX_4X8 -- + // the same walk the (8, 32) class takes). The lossless raster arm keeps + // the strip's own geometry: no caller of this function can present a + // 4-wide strip yet (the enumeration test pins the five callers at + // `8 <= min`), and the skip/tiled arms are the routes a future caller + // needs. + let chroma422_pair = chroma422_pair_plane(ss_x(fctx) == 1, ss_y(fctx) == 0, mi_c, bw, bh); + let chroma_422_pair_wide = chroma422_pair.is_some(); + let (chroma_block_w, chroma_block_h, chroma_x) = chroma422_pair + .map_or((chroma_w, chroma_h, cpx), |(w, h, x, _)| (w, h, x)); // The chroma transform is picked before any symbol is read, so an // unsupported chroma shape refuses before this strip desyncs the tile. let chroma: Option<(TxbSet, &[u16])> = match (chroma_w, chroma_h) { @@ -10272,7 +10331,8 @@ fn decode_rect_split( // diagnostic names only the shapes that would actually refuse -- it used // to fire for every tiled square too (the parent lane's `chroma=8x8` // rows) and sent the next lane chasing handled shapes. - let chroma_tiled = chroma_422_oob + let chroma_tiled = chroma_422_pair_wide + || chroma_422_oob || matches!( (chroma_w, chroma_h), (64, 32) | (32, 64) | (64, 16) | (16, 64) | (32, 32) | (16, 16) | (8, 8) @@ -10586,8 +10646,25 @@ fn decode_rect_split( // `ll_chroma_units` and `decode_inter_block`'s `mu_chroma_units` tail // already do. let mut tiled_chroma_units: Vec<((usize, usize), usize, Grid, usize, usize)> = Vec::new(); - let ac = m.alpha.map(|_| cfl_src_rect(px, py, bw, bh)); - let reach = block_reach; + let ac = m.alpha.map(|_| { + // lane-av1-422stripanchor: the pair unit's CfL source is the PAIR's + // luma -- the 8-px-wide region the floored 4-px chroma block covers + // (`av1_setup_dst_planes`' floor), never the odd strip's own 4 px. + if chroma_422_pair_wide { + cfl_src_rect((mi_c & !1) * MI, py, 8, bh) + } else { + cfl_src_rect(px, py, bw, bh) + } + }); + let reach = if chroma_422_pair_wide { + // The chroma units predict off the PAIR block's edges: an odd-column + // strip's pair starts 4 luma px to the strip's left, so the strip's + // own answer names the wrong above/right samples (the pair16 arm's + // `pair_reach`, one partition level up). + Reach::of_rect(8, bh, (mi_c & !1) * MI, py, y.width, y.height, fctx) + } else { + block_reach + }; let (u_grid, v_grid) = if mono(fctx) { // lane-av1mono: a monochrome frame codes no chroma coefficients on // any block (`plane < av1_num_planes == 1`), so the whole chroma @@ -10596,25 +10673,28 @@ fn decode_rect_split( let zero = Grid::Zero(chroma_w * chroma_h); (zero.clone(), zero) } else if m.skip { - let zero = Grid::Zero(chroma_w * chroma_h); - if chroma_422_oob { + let zero = Grid::Zero(chroma_block_w * chroma_block_h); + if chroma_422_pair_wide || chroma_422_oob { // lane-av1-422blockhalf: libaom predicts an INTRA strip's chroma // per transform unit even when the strip is skipped // (`decode_token_recon_block`'s per-TU plane walk runs before the // skip guard), so the BLOCK_INVALID plane predicts as (4, 8) // units -- one whole-plane push here would ask the intra // predictor for a 1:8 rect it never needs. + // lane-av1-422stripanchor: the 4-wide strip's PAIR plane does the + // same, over the pair's own `(chroma_block_w, chroma_block_h)` + // grid at the floored anchor `chroma_x`. let (uw, uh) = (4usize, 8usize); for plane_idx in 1..=2 { if let Some((ub, vb)) = &m.palette_uv { let buf = if plane_idx == 1 { ub } else { vb }; set_palette_pred(buf.clone(), fctx); } - for cu_row in 0..chroma_h / uh { - for cu_col in 0..chroma_w / uw { + for cu_row in 0..chroma_block_h / uh { + for cu_col in 0..chroma_block_w / uw { push_intra_rect( plane_idx, - cpx + cu_col * uw, + chroma_x + cu_col * uw, cpy + cu_row * uh, uw, uh, @@ -10706,10 +10786,13 @@ fn decode_rect_split( let [ug, vg] = last; (ug, vg) } else if chroma_tiled { - let (uw, uh, set, scan): (usize, usize, TxbSet, &[u16]) = if chroma_422_oob { - // lane-av1-422blockhalf: the BLOCK_INVALID-plane strip's (4, 8) - // units -- the Release oracle's out-of-bounds - // `max_txsize_rect_lookup[BLOCK_INVALID]` byte (see above). + let (uw, uh, set, scan): (usize, usize, TxbSet, &[u16]) = + if chroma_422_pair_wide || chroma_422_oob { + // lane-av1-422blockhalf / lane-av1-422stripanchor: the + // BLOCK_INVALID-plane chroma's (4, 8) units -- the Release + // oracle's out-of-bounds `max_txsize_rect_lookup` byte (TX_4X8, + // see above). For the 4-wide strip the units tile the PAIR's + // plane, stepping from the floored anchor. (4, 8, TxbSet::ChromaRect8x4, &SCAN_4X8) } else { match (chroma_w, chroma_h) { @@ -10728,8 +10811,15 @@ fn decode_rect_split( if uw == uh && ss_x(fctx) == 1 && ss_y(fctx) == 0 { hit!(CHROMA422_SQUARE_HITS); } - let (nw, nh) = (chroma_w / uw, chroma_h / uh); - let bigger = chroma_w * chroma_h > uw * uh; + if chroma_422_pair_wide { + hit!(CHROMA422_PAIR_WIDE_HITS); + } + let (nw, nh) = (chroma_block_w / uw, chroma_block_h / uh); + // lane-av1-422stripanchor: the pair's plane block is BLOCK_INVALID + // whatever the pair size (`num_pels_log2_lookup[255]` reads 0xff in + // the pinned Release oracle), so its txb_skip rows always carry the + // bigger-plane +3 (the av1422q rule the pair16 arm measures). + let bigger = chroma_422_pair_wide || chroma_w * chroma_h > uw * uh; // `av1_get_ext_tx_set_type`: a chroma transform whose square-up size // is TX_32X32 or bigger resolves to `EXT_TX_SET_DCTONLY` for intra; // smaller rect units (the 4:2:2 BLOCK_INVALID-plane (4, 8)s) take the @@ -10747,7 +10837,8 @@ fn decode_rect_split( let luma_span_y = uh << ss_y(fctx); let cu_mi = ( mi_r + cu_row * (luma_span_y / MI), - mi_c + cu_col * (luma_span_x / MI), + if chroma_422_pair_wide { mi_c & !1 } else { mi_c } + + cu_col * (luma_span_x / MI), ); // lane-av1-422blockhalf: the 4:2:2 (4, 8) units read their // chroma context per chroma cell @@ -10755,22 +10846,33 @@ fn decode_rect_split( // rule) -- the plain rect walk samples one chroma cell // twice at ss_x 1. Every pre-existing shape keeps its own // walk. - let cu_around = if chroma_422_oob { + let cu_around = if chroma_422_pair_wide || chroma_422_oob { neighbours.around_mi_422_chroma(cu_mi, luma_span_x, luma_span_y) } else { neighbours.around_mi_rect(cu_mi, luma_span_x, luma_span_y) }; - let (cu_x, cu_y) = (cpx + cu_col * uw, cpy + cu_row * uh); + let (cu_x, cu_y) = (chroma_x + cu_col * uw, cpy + cu_row * uh); let cfl = m.alpha.map(|(au, av)| { let alpha = if plane_idx == 1 { au } else { av }; ( alpha, - cfl_src_rect( - px + cu_col * luma_span_x, - py + cu_row * luma_span_y, - luma_span_x, - luma_span_y, - ), + if chroma_422_pair_wide { + // The unit's co-located luma is the PAIR's + // 8-px-wide band at the floored mi column. + cfl_src_rect( + (mi_c & !1) * MI + cu_col * luma_span_x, + py + cu_row * luma_span_y, + luma_span_x, + luma_span_y, + ) + } else { + cfl_src_rect( + px + cu_col * luma_span_x, + py + cu_row * luma_span_y, + luma_span_x, + luma_span_y, + ) + }, ) }); // lane-av1-422kf: the palette colour map is consumed per @@ -10783,7 +10885,14 @@ fn decode_rect_split( if let Some((ub, vb)) = &m.palette_uv { let buf = if plane_idx == 1 { ub } else { vb }; set_palette_pred( - palette_window(buf, chroma_w, cu_col * uw, cu_row * uh, uw, uh), + palette_window( + buf, + chroma_block_w, + cu_col * uw, + cu_row * uh, + uw, + uh, + ), fctx, ); } @@ -11116,6 +11225,87 @@ fn every_shape_that_allows_motion_variation_has_a_motion_mode_cdf_row() { ); } +/// lane-av1-422stripanchor, format-cell census for the 4-wide-strip pair port +/// ([`chroma422_pair_plane`], [`decode_rect_split`]'s chroma routing): over +/// every `BLOCK_SIZES_ALL` footprint at every subsampling cell, the pair arm +/// fires exactly when libaom's own `av1_ss_size_lookup[..][1][0]` column +/// (`common_data.c`) marks the plane block BLOCK_INVALID AND the plane would +/// be 2 px wide -- the 4-wide footprints. The tall/wide BLOCK_INVALID shapes +/// stay on the pre-existing `chroma_422_oob` (4, 8) tiling, and 4:2:0 / +/// 4:4:4 never enter either arm (the byte-identical claim, checked per cell). +#[test] +fn chroma422_pair_plane_matches_the_ss_size_lookup_cells() { + // The `av1_ss_size_lookup[..][1][0]` column verbatim (pinned oracle, + // `common_data.c`), keyed by footprint: `true` = BLOCK_INVALID. + let ss10_invalid: &[(&str, bool)] = &[ + ("4x4", false), + ("4x8", true), + ("8x4", false), + ("8x8", false), + ("8x16", true), + ("16x8", false), + ("16x16", false), + ("16x32", true), + ("32x16", false), + ("32x32", false), + ("32x64", true), + ("64x32", false), + ("64x64", false), + ("64x128", true), + ("128x64", false), + ("128x128", false), + ("4x16", true), + ("16x4", false), + ("8x32", true), + ("32x8", false), + ("16x64", true), + ("64x16", false), + ]; + for (footprint, invalid10) in ss10_invalid { + let (w, h) = footprint.split_once('x').unwrap(); + let (bw, bh) = (w.parse::().unwrap(), h.parse::().unwrap()); + // BLOCK_4X4 is the SQUARE path's leaf, never a strip: its ss cell is + // valid because a (2, 4) plane area rounds UP to the 4x4 read + // (`sub8_leaf_chroma422`'s own rule), and it never reaches + // [`decode_rect_split`] at all. + if (bw, bh) == (4, 4) { + continue; + } + // 4:2:0 and 4:4:4: the port never fires, whatever the footprint. + for (ss_x, ss_y) in [(false, false), (true, true)] { + assert!( + chroma422_pair_plane(ss_x, ss_y, 7, bw, bh).is_none(), + "{bw}x{bh} at ss ({ss_x}, {ss_y}) must keep its own plane block" + ); + } + // 4:2:2: the pair arm is exactly the 2-px-wide (4-wide) slice of the + // BLOCK_INVALID column, anchored at the floored mi column. + let pair = chroma422_pair_plane(true, false, 7, bw, bh); + assert_eq!( + pair.is_some(), + *invalid10 && bw == 4, + "{bw}x{bh} at ss (1, 0): pair routing disagrees with ss_size_lookup" + ); + if let Some((block_w, block_h, x, ctx_col)) = pair { + assert_eq!((block_w, block_h), (4, bh), "{bw}x{bh} pair plane shape"); + assert_eq!(x, ((7 & !1) * MI) >> 1, "{bw}x{bh} floored write anchor"); + assert_eq!(ctx_col, 6, "{bw}x{bh} entropy cell is the floored column"); + // An even-column strip anchors at its own cell. + let (x_even, col_even) = match chroma422_pair_plane(true, false, 6, bw, bh) { + Some((_, _, x, c)) => (x, c), + None => panic!("{bw}x{bh} lost its pair arm at an even mi_col"), + }; + assert_eq!((x_even, col_even), (12, 6), "even column keeps its own cell"); + } + } + // The tall/wide BLOCK_INVALID shapes (8 px wide or more) are the + // `chroma_422_oob` tiling's residents, not the pair arm's: both are + // 4:2:2-only, so the two arms partition the BLOCK_INVALID column. + for (bw, bh) in [(8usize, 16), (16, 32), (32, 64), (64, 128), (8, 32), (16, 64)] { + assert!(chroma422_pair_plane(true, false, 7, bw, bh).is_none()); + } +} + fn decode_intra_rect_in_inter( dec: &mut SymbolDecoder, cdfs: &mut Cdfs, diff --git a/lanes/av1422stripanchor.report.md b/lanes/av1422stripanchor.report.md new file mode 100644 index 00000000..82433162 --- /dev/null +++ b/lanes/av1422stripanchor.report.md @@ -0,0 +1,103 @@ +# lane-av1-422stripanchor — `decode_rect_split`'s 4-wide-strip chroma ported to +# the split4 floored-pair anchor (`chroma422_pair_plane`), the ported pair +# plane tiled in the (4, 8) OOB units, and the (2, 16)/(2, 8) refusal shapes +# handled — frame 0 of the pinned t422 fixture stays byte-exact at +# PREFILT/POSTDEBLOCK/POSTCDEF/FINAL (first round with the FINAL rung +# measured), all 16 frames decode, and the port is measured inert on the +# fixture (`chroma422_pair_wide: 0`): NO stream reaches it today, so the lift +# is by construction and stays unwitnessed + +## Outcome + +1. `chroma422_pair_plane` (decode.rs, beside `depth_to_tx_wh`): the split4 + floored-pair anchor ported to `decode_rect_split`'s 1-mi-wide strips. A + strip whose own chroma block would be 2 px wide at ss (1, 0) — luma + `(4, 16)`/`(4, 8)`, the footprints `av1_ss_size_lookup[BLOCK_4X16]`/ + `[BLOCK_4X8][1][0]` mark BLOCK_INVALID (verified in the pinned oracle's + `common_data.c`, not from prose) — codes the PAIR's `(4, bh)` plane: + WRITE/PREDICTION anchor `((mi_col & !1) * MI) >> ss_x` + (`av1_setup_dst_planes`' mi-exact floor, the lane-av1-422kf2/ + `sub8_leaf_chroma422` rule), entropy cell at the floored mi column, and + the odd-column strip is the chroma reference (`is_chroma_reference`'s + `mi_col & 1` clause, the rule `decode_rect4_16_strip`'s pair16 arm + implements one partition level up). `None` on every other cell: 4:2:0 and + 4:4:4 can never produce a 2-px-wide chroma block, so their routing is + unchanged per format cell. +2. The skip and tiled chroma arms take the pair geometry: per-(4, 8) unit + walks over `(chroma_block_w, chroma_block_h)` at the floored anchor + `chroma_x` (the blockhalf lane's per-unit skip-push lesson kept), + `around_mi_422_chroma` per chroma cell, `bigger` forced (the invalid + plane's `num_pels_log2_lookup[255]` byte reads 0xff — the av1422q +3 rows) + , CfL source over the PAIR's 8-px luma band, and the chroma `reach` is the + pair block's (`Reach::of_rect(8, bh, pair_px, py, ..)`), not the odd + strip's own. Every pre-existing expression reduces to its old value when + `chroma_422_pair_wide` is false; the lossless raster arm is untouched (its + domain cannot present a 4-wide strip). +3. The `(2, 16)` refusal (the inventory string "a coded HORZ/VERT strip whose + chroma transform has no rect coefficient tables here") therefore no longer + fires for the 4-wide shapes — they are handled. The string STAYS: it + remains the shape guard for genuinely-untabled shapes, and the + lane-t900-r33 enumeration test still pins the five callers. +4. GATE: `chroma422_pair_plane_matches_the_ss_size_lookup_cells` — a + format-cell census over all 22 `BLOCK_SIZES_ALL` footprints: the pair arm + fires exactly on the 2-px-wide slice of the real `ss_size_lookup[..][1][0]` + BLOCK_INVALID column ((4, 8), (4, 16); BLOCK_4X4 excluded as the square + path's own sub-8 rounding rule), the tall/wide BLOCK_INVALID shapes stay + on `chroma_422_oob` (the two arms partition the column), and 4:2:0/4:4:4 + return `None` at every footprint. Floored-anchor math asserted for odd and + even mi columns. +5. WITNESS COUNTER: `CHROMA422_PAIR_WIDE_HITS` (+ accessor, + + `decode_probe` line). Reads 0 on the pinned fixture — the arm is provably + inert there. +6. MEASURED (fixture `/tmp/t422.obu`, sha256 + `d3fa4beeb1309033e4a03f5ae5c431c8fa8386ba1ada088684710423c7938129`, + reused by hash; frame-0 cut `/tmp/t422f0.obu` sha256 + `3dd3f768ef553c02316848c2d3184c3765030c0a6fcb95887e4719add9ded3af`; + ours = `decode_probe --release` under + `$HOME/.cache/cargo-target-av1422stripanchor`, oracle = + `$HOME/.cache/aom-oracle/build/aomdec`, padded-u8-vs-cropped-u8 compare): + - frame 0: **0 diffs on Y, U and V at PREFILT, POSTDEBLOCK, POSTCDEF and + FINAL** — the FINAL rung is measured this round (the parent lane's + round bracketed it by POSTCDEF). + - all 16 frames decode; counters unchanged from the parent lane + (chroma422_rect 682, chroma422_sub8 122, chroma422_chunk 344) and + `chroma422_pair_wide: 0`. +7. WHY NO WITNESS STREAM (the acceptance's fallback): the (2, 16) lift is + by construction and UNWITNESSABLE today — no current stream can route a + 4-wide strip into `decode_rect_split`. The five callers pass only the ten + rect footprints with `8 <= min` (the enumeration test pins both the caller + set and the domain); the real 4-wide readers — `decode_rect4_16_strip` + (16-level 1:4, whose depth walk is inlined precisely because the chroma is + pair-owned: the pair16 arm already carries the floored anchor + (4, 8) + tiling), `decode_leaf_rect8` + `decode_inter_sub8_rect2` (8-level + HORZ/VERT, both per-piece floored arms from lane-av1-422h/blockhalf) and + the inter `PARTITION_*_4` walk — never call it. Three fresh + `aomenc --profile=2` probes (testsrc2 cpu-used=1 + tx-size-search, + mandelbrot cpu-used=0, smptebars screen tune) all decode or diverge + without touching the arm. A witness requires a future caller that routes + 4-wide strips here (a capability change the enumeration test will force a + re-derivation for); the counter is wired so that stream proves itself the + moment it exists. + +## Observed, not chased + +- The mandelbrot probe (`s2.obu`, frames 1+) crashes in + `push_mc_rect_tx` ("range end index 32 out of range for slice of length + 0") — frame 0 alone decodes clean. Read as a downstream symptom of the + known frames-1+ partition-dispatch desync (mi(8,10), Agent204's lane) on + heavy-motion content: a desynced shape walk reaches the MC push with an + empty pred buffer. Not attributed to this port; named for the desync lane's + ledger. + +## Decision + +- The header refusal STAYS unconditional in `stream.rs`; the + `EC_AV1_ALLOW_422_PROBE` bypass was re-applied for the measurement runs and + reverted byte-identical afterwards (0 occurrences; + `a_non_420_subsampled_sequence_header_is_refused_by_name` green post-revert). +- 4:2:0/4:4:4 byte-identical by ss-keying, checked per format cell by the + census gate and by measurement on the fixture. +- `read_coeffs_rect`, the chroma table rows and the 4:2:0 group-tail SKIP arm + untouched. +- cargo check 0 warnings; targeted gates green (enumeration, 422 refusal, + lossless sample-exact, rect-strip filter-intra, the new census).