diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 2a22fee8..19988e50 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -13683,6 +13683,14 @@ thread_local! { /// only shape a 1080p (mi_rows = 270) stream reaches. pub(crate) static PART128_EDGE_HORZ_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; pub(crate) static PART128_EDGE_VERT_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; + /// lane-sb128c r9: 128 roots that resolved to one of the four AB shapes, + /// in `PARTITION_HORZ_A`, `_HORZ_B`, `_VERT_A`, `_VERT_B` order. + pub(crate) static PART128_AB_HITS: std::cell::Cell<[usize; 4]> = const { std::cell::Cell::new([0; 4]) }; +} + +/// [`PART128_AB_HITS`], for a gate's own before/after delta. +pub(crate) fn part128_ab_hits() -> [usize; 4] { + PART128_AB_HITS.with(std::cell::Cell::get) } /// [`PART128_NONE_HITS`], for a gate's own before/after delta. @@ -13804,9 +13812,19 @@ fn read_sb128_root( PARTITION_NONE => PART128_NONE_HITS.with(|c| c.set(c.get() + 1)), PARTITION_HORZ => PART128_HORZ_HITS.with(|c| c.set(c.get() + 1)), PARTITION_VERT => PART128_VERT_HITS.with(|c| c.set(c.get() + 1)), + // lane-sb128c r9: the four AB shapes at the 128 root -- one + // 128x64/64x128 half plus two 64x64 quadrants, decoded by both tile + // paths below in libaom `decode_partition`'s own visit order. + p if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&p) => { + PART128_AB_HITS.with(|c| { + let mut h = c.get(); + h[p - PARTITION_HORZ_A] += 1; + c.set(h); + }); + } _ => { return Err(unsupported( - "a 128x128 superblock AB partition (HORZ_A/HORZ_B/VERT_A/VERT_B at the 128 root)", + "a 128x128 superblock partition value outside the 8-symbol alphabet", )); } } @@ -14021,6 +14039,131 @@ pub(crate) fn decode_key_frame_tile_with_cdfs( mi_cols, mi_rows, )?; + if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&part128) { + // lane-sb128c r9: the four AB shapes at the 128 root. + // libaom `decode_partition` (decodeframe.c) codes each as + // two `bsize2` (64x64) squares plus one `subsize` + // (128x64 / 64x128) half, visited HORZ_A = TL, TR, bottom + // half; HORZ_B = top half, BL, BR; VERT_A = TL, BL, right + // half; VERT_B = left half, TR, BR. AB values only come + // from the FULL alphabet symbol, which is only read when + // both halves of the root are inside the frame, so no + // piece needs libaom's `i > 0` frame-edge break (a piece + // may still overhang the bottom/right, which + // `PlaneBuf::reconstruct`'s r8 clip handles). + sb128_none = true; + let at128 = ((sb_r & !1) as usize * 4, (sb_c & !1) as usize * 4); + let (br, bc) = (at128.0 + 4, at128.1 + 4); + let (q_r, q_c) = ((sb_r & !1) as usize, (sb_c & !1) as usize); + // Only the VERTICAL arms reorder the squares (TL, BL, TR, + // BR), so only they switch libaom's `has_tr_vert_*` / + // `has_bl_vert_*` tables (lane-sb128c r6 visit order). + let _vert_ab = + (part128 == PARTITION_VERT_A || part128 == PARTITION_VERT_B) + .then(crate::encode::Reach::vert_ab_partition); + // One `cdef_idx` literal per CODED BLOCK, at the first + // non-skip one of each 64x64 CDEF unit; the 128x64 / + // 64x128 half covers two units and its read lands in the + // unit holding its origin, so that value is copied to the + // other one (libaom: every mi of the block points at the + // same `MB_MODE_INFO`). + let cdef_copy = |src: (usize, usize), dst: (usize, usize)| { + CDEF_IDX_GRID.with(|g| { + let mut g = g.borrow_mut(); + let cols = CDEF_SB_COLS.with(|c| c.get()); + if cols == 0 { + return; + } + let (si, di) = ( + (q_r + src.0) * cols + q_c + src.1, + (q_r + dst.0) * cols + q_c + dst.1, + ); + if q_c + src.1 < cols + && q_c + dst.1 < cols + && si < g.len() + && di < g.len() + { + g[di] = g[si]; + } + }); + }; + macro_rules! square64 { + ($at:expr) => {{ + CDEF_TRANSMITTED.with(|c| c.set(false)); + decode_block( + &mut dec, + &mut cdfs, + &mut neighbours, + $at, + SB, + TxbSet::Luma64, + TxbSet::Chroma32, + TX32, + TX32, + (&scan32, &scan32), + false, + &mut y, + &mut u, + &mut v, + base_q_idx, + enable_filter_intra, + allow_screen_content_tools, + allow_intrabc, + &scan32, + &scan16, + &scan8, + &scan4, + tx_select, + reduced_tx_set, + )? + }}; + } + macro_rules! half128 { + ($at:expr, $bw:expr, $bh:expr, $src:expr, $dst:expr) => {{ + CDEF_TRANSMITTED.with(|c| c.set(false)); + decode_block_128rect( + &mut dec, + &mut cdfs, + &mut neighbours, + $at, + $bw, + $bh, + &mut y, + &mut u, + &mut v, + base_q_idx, + enable_filter_intra, + allow_screen_content_tools, + tx_select, + reduced_tx_set, + )?; + cdef_copy($src, $dst); + }}; + } + match part128 { + PARTITION_HORZ_A => { + square64!(at128); + square64!((at128.0, bc)); + half128!((br, at128.1), 128, 64, (1, 0), (1, 1)); + } + PARTITION_HORZ_B => { + half128!(at128, 128, 64, (0, 0), (0, 1)); + square64!((br, at128.1)); + square64!((br, bc)); + } + PARTITION_VERT_A => { + square64!(at128); + square64!((br, at128.1)); + half128!((at128.0, bc), 64, 128, (0, 1), (1, 1)); + } + _ => { + half128!(at128, 64, 128, (0, 0), (1, 0)); + square64!((at128.0, bc)); + square64!((br, bc)); + } + } + continue; + } if matches!(part128, PARTITION_HORZ | PARTITION_VERT) { // lane-sb128c r8: libaom `decode_partition` // (decodeframe.c:1554) codes PARTITION_HORZ at the 128 @@ -22191,6 +22334,7 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( } { let mut sb128_rect = None; + let mut sb128_ab = None; if sb128 && sb_start { let part128 = read_sb128_root( &mut dec, @@ -22204,6 +22348,13 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( mi_cols, mi_rows, )?; + if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&part128) { + // lane-sb128c r9: an AB shape at the 128 root -- one + // 128x64/64x128 half plus two 64x64 quadrants, same visit + // order as the key-frame path. + sb128_none = true; + sb128_ab = Some(part128); + } if matches!(part128, PARTITION_HORZ | PARTITION_VERT) { // Two 128x64 (HORZ) or two 64x128 (VERT) inter blocks; the // whole 128x128 root is consumed here, so the remaining @@ -22300,6 +22451,80 @@ pub(crate) fn decode_inter_frame_tile_with_cdfs( )? }; } + if let Some(part128) = sb128_ab { + // libaom `decode_partition` (decodeframe.c): HORZ_A = TL, TR, + // bottom half; HORZ_B = top half, BL, BR; VERT_A = TL, BL, + // right half; VERT_B = left half, TR, BR. AB only comes from + // the full alphabet symbol (both halves in frame), so there is + // no `i > 0` edge break to mirror. + let at128 = ((sb_r & !1) as usize * 4, (sb_c & !1) as usize * 4); + let base_mi = sub16_to_mi(at128); + let (br_mi, bc_mi) = (base_mi.0 + 16, base_mi.1 + 16); + let (q_r, q_c) = ((sb_r & !1) as usize, (sb_c & !1) as usize); + let _vert_ab = (part128 == PARTITION_VERT_A || part128 == PARTITION_VERT_B) + .then(crate::encode::Reach::vert_ab_partition); + let cdef_copy = |src: (usize, usize), dst: (usize, usize)| { + CDEF_IDX_GRID.with(|g| { + let mut g = g.borrow_mut(); + let cols = CDEF_SB_COLS.with(|c| c.get()); + if cols == 0 { + return; + } + let (si, di) = ( + (q_r + src.0) * cols + q_c + src.1, + (q_r + dst.0) * cols + q_c + dst.1, + ); + if q_c + src.1 < cols && q_c + dst.1 < cols && si < g.len() && di < g.len() + { + g[di] = g[si]; + } + }); + }; + macro_rules! square64_inter { + ($at_mi:expr) => {{ + CDEF_TRANSMITTED.with(|c| c.set(false)); + inter_piece!( + $at_mi, SB, + TxbSet::Luma64, TxbSet::Luma64, TxbSet::Chroma32, TX32, TX32, + &scan32, &scan32, 3, SB, SB + ); + }}; + } + macro_rules! half128_inter { + ($at_mi:expr, $bw:expr, $bh:expr, $src:expr, $dst:expr) => {{ + CDEF_TRANSMITTED.with(|c| c.set(false)); + inter_piece!( + $at_mi, SB * 2, + TxbSet::Luma64, TxbSet::Luma64, TxbSet::Chroma32, TX32, TX32, + &scan32, &scan32, 3, $bw, $bh + ); + cdef_copy($src, $dst); + }}; + } + match part128 { + PARTITION_HORZ_A => { + square64_inter!(base_mi); + square64_inter!((base_mi.0, bc_mi)); + half128_inter!((br_mi, base_mi.1), 128, 64, (1, 0), (1, 1)); + } + PARTITION_HORZ_B => { + half128_inter!(base_mi, 128, 64, (0, 0), (0, 1)); + square64_inter!((br_mi, base_mi.1)); + square64_inter!((br_mi, bc_mi)); + } + PARTITION_VERT_A => { + square64_inter!(base_mi); + square64_inter!((br_mi, base_mi.1)); + half128_inter!((base_mi.0, bc_mi), 64, 128, (0, 1), (1, 1)); + } + _ => { + half128_inter!(base_mi, 64, 128, (0, 0), (1, 0)); + square64_inter!((base_mi.0, bc_mi)); + square64_inter!((br_mi, bc_mi)); + } + } + continue; + } if let Some(part128) = sb128_rect { // lane-sb128c r7: libaom `decode_partition` (decodeframe.c:1554) // codes PARTITION_HORZ at the 128 root as `subsize = diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 3b861561..0675e7ea 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -43,7 +43,7 @@ const REFUSALS: &[&str] = &[ "a tx_type symbol outside its CDF's own set: {t}", "an INTER 32x32 partition type this decoder does not code (value={part32})", "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", - "a 128x128 superblock AB partition (HORZ_A/HORZ_B/VERT_A/VERT_B at the 128 root)", + "a 128x128 superblock partition value outside the 8-symbol alphabet", "an inter var-tx tree with a leaf transform larger than 64x64", "CfL, filter intra or a palette on a 128-root HORZ/VERT intra block (every one of their size gates caps at 64x64 or below, so none of these symbols exists there)", "intrabc under a 128x128 superblock (libaom's av1_is_dv_valid derives the block-vector delay from sb_size, which this decoder hardcodes to 64)", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 901357a3..a22ac7c6 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -98,6 +98,13 @@ pub fn intra_sb128_counters() -> (usize, usize, [usize; 3]) { crate::decode::intra_sb128_hits() } +/// lane-sb128c r9: the four AB shapes at the 128 root, in `PARTITION_HORZ_A`, +/// `_HORZ_B`, `_VERT_A`, `_VERT_B` order (key and inter tile paths share the +/// counter -- it is bumped where the root symbol resolves). +pub fn sb128_ab_counters() -> [usize; 4] { + crate::decode::part128_ab_hits() +} + pub fn rect4_32_counters() -> (usize, usize, usize) { ( crate::decode::rect4_32_horz_hits(), @@ -19308,6 +19315,179 @@ mod tests { ); } + /// lane-sb128c r9 GATE: the four AB shapes at the 128 root + /// (`PARTITION_HORZ_A`/`_HORZ_B`/`_VERT_A`/`_VERT_B`), each one + /// 128x64/64x128 half plus two 64x64 quadrants in libaom + /// `decode_partition`'s visit order. The recipe is r8's measured one + /// (`--sb-size=128 --min-partition-size=64 --enable-ab-partitions=1` over + /// a 512x512 `geq` sinusoid), which is what made aomenc pick the shapes at + /// all; arms cover cq 18/45, 8 and 10 bit, and one INTER arm + /// (`--kf-max-dist=100`) so the shapes are exercised on both tile paths. + /// Continue-and-sweep: an arm that stops on ANOTHER lane's named refusal + /// is counted and skipped, a decode failure or a pixel mismatch is a hard + /// failure, and the end-of-sweep assert names which of the four fired. + #[test] + fn a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact() { + const NAME: &str = "a_real_aomenc_sb128_ab_partition_at_the_128_root_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; + } + // (tag, cq, width, height, 10-bit, inter) + let arms: Vec<(u32, &str, usize, usize, bool, bool)> = vec![ + (18, "--cq-level=18", 512, 512, false, false), + (45, "--cq-level=45", 512, 512, false, false), + (32, "--cq-level=32", 512, 512, true, false), + (55, "--cq-level=55", 384, 320, false, false), + (91, "--cq-level=45", 512, 512, false, true), + (92, "--cq-level=18", 512, 512, false, true), + ]; + let (mut matched, mut named_refusals, mut out_of_scope) = (0u32, 0u32, 0u32); + let mut ab_seen = [0usize; 4]; + let mut ab_inter = [0usize; 4]; + for (tag, cq, width, height, ten_bit, inter) in arms { + let pix = if ten_bit { "yuv420p10le" } else { "yuv420p" }; + let y4m = Command::new("ffmpeg") + .args([ + "-v", "error", "-f", "lavfi", "-i", + // Same DETERMINISTIC sinusoid source that made aomenc pick + // the AB shapes in the r8 sweep (lavfi `gradients` ignores + // its seed and is not reproducible -- never use it here). + &format!( + "nullsrc=size={width}x{height}:rate=25,format=yuv420p,\ + geq=lum='128+80*sin((X+3*N)/17)+50*sin(Y/29)+30*sin((X+Y)/13)':\ + cb='128+30*sin(X/23)':cr='128+30*sin((Y+N)/19)'" + ), + "-pix_fmt", pix, "-strict", "-1", "-t", "0.2", + "-f", "yuv4mpegpipe", "-", + ]) + .stdin(Stdio::null()) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .output() + .expect("ffmpeg failed to run"); + assert!( + y4m.status.success(), + "{NAME}: ffmpeg fixture: {}", + String::from_utf8_lossy(&y4m.stderr) + ); + let mut args: Vec<&str> = vec![ + "--codec=av1", "--passes=1", "--end-usage=q", cq, + "--cpu-used=0", "--threads=1", "--row-mt=0", + "--sb-size=128", "--min-partition-size=64", + "--enable-rect-partitions=1", "--enable-ab-partitions=1", + "--enable-1to4-partitions=0", "--enable-palette=0", + "--enable-intrabc=0", "--deltaq-mode=0", "--limit=5", + ]; + // AOMENC FLAG PRECEDENCE: last occurrence wins, so the per-arm + // key-frame cadence goes AFTER the base recipe. + args.push(if inter { "--kf-max-dist=100" } else { "--kf-max-dist=1" }); + if ten_bit { + args.extend_from_slice(&["--input-bit-depth=10", "--bit-depth=10"]); + } + args.extend_from_slice(&["--obu", "-o", "-", "-"]); + let mut child = Command::new(aomenc_path()) + .args(&args) + .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 = sb128_ab_counters(); + if let Err(e) = decode_stream(&stream) { + let msg = e.to_string(); + assert!( + msg.contains("unsupported"), + "{NAME} failed outright, not a named refusal \ + (arm {tag} {width}x{height}): {msg}" + ); + named_refusals += 1; + eprintln!("{NAME}: arm {tag} {width}x{height} refusal: {msg}"); + continue; + } + let (frames, hidden) = decode_all_frames_vs_oracle( + &stream, + &format!("sb128c-ab-{tag}-{width}x{height}"), + ); + assert!(frames > 0, "{NAME}: no frames decoded at {width}x{height}"); + let after = sb128_ab_counters(); + let ab: Vec = (0..4).map(|i| after[i] - before[i]).collect(); + eprintln!( + "{NAME}: arm {tag} cq {cq} {width}x{height} {}bit {}: {frames} frames \ + pixel-exact ({hidden} hidden), AB[HORZ_A,HORZ_B,VERT_A,VERT_B] {ab:?}", + if ten_bit { 10 } else { 8 }, + if inter { "INTER" } else { "KEY" }, + ); + if ab.iter().sum::() == 0 { + out_of_scope += 1; + } + for i in 0..4 { + ab_seen[i] += ab[i]; + if inter { + ab_inter[i] += ab[i]; + } + } + matched += 1; + } + assert!( + matched > 0, + "{NAME}: every attempt refused ({named_refusals}); the gate never \ + decoded a stream" + ); + assert!( + ab_seen.iter().sum::() > 0, + "{NAME}: {matched} stream(s) decoded pixel-exact ({out_of_scope} carried \ + no 128-root AB partition at all) but NOT ONE AB shape fired -- the \ + shapes this gate exists for" + ); + // Which of the four this sweep actually reaches, hard-asserted so a + // later change that stops reaching one of them fails here instead of + // silently narrowing the gate (class `gate-blind-to-feature`). + for (i, name) in ["HORZ_A", "HORZ_B", "VERT_A", "VERT_B"].iter().enumerate() { + if AB_ARMS_REACHED[i] { + assert!( + ab_seen[i] > 0, + "{NAME}: PARTITION_{name} at the 128 root fired in the round that \ + pinned this gate but not now: {ab_seen:?}" + ); + } else { + eprintln!( + "{NAME}: PARTITION_{name} NOT reached by this sweep (aomenc never \ + picked it): {ab_seen:?}" + ); + } + } + assert!( + ab_inter.iter().sum::() > 0, + "{NAME}: the AB shapes fired only on KEY frames -- the inter tile path's \ + own AB arm was never exercised: key {ab_seen:?} inter {ab_inter:?}" + ); + } + + /// Which of the four 128-root AB shapes the gate above MEASURED aomenc + /// picking (lane-sb128c r9). An arm that is `false` is not reachable from + /// this sweep's recipes and stays unasserted rather than weakening the + /// asserts of the ones that are. + const AB_ARMS_REACHED: [bool; 4] = [true, true, true, true]; + #[test] #[ignore = "lane-sb128 r2 diagnostic: is the frame-6 mismatch sb128-specific?"] fn sb128_r2_control_sb64() { diff --git a/lanes/sb128c-r9.report.md b/lanes/sb128c-r9.report.md new file mode 100644 index 00000000..b8e916fa --- /dev/null +++ b/lanes/sb128c-r9.report.md @@ -0,0 +1,81 @@ +# lane-sb128c r9 -- the four AB shapes at the 128 root (key + inter) + +Branch `lane-sb128c`, worktree `edith_codecs-sb128c`, +`CARGO_TARGET_DIR=$HOME/.cache/cargo-target-sb128c`. + +## What changed + +- `crates/ec-av1/src/decode.rs` `read_sb128_root`: the AB refusal is LIFTED. + Values 4..7 now count into `PART128_AB_HITS` (`part128_ab_hits()`), and the + `_` arm refuses only a value outside the 8-symbol alphabet. +- `crates/ec-av1/src/decode.rs` key-frame tile: a new arm decodes each AB + shape as two 64x64 squares (`decode_block`, `SB`, `Luma64`/`Chroma32`) plus + one 128x64/64x128 half (`decode_block_128rect`, r8) in libaom + `decode_partition`'s order -- HORZ_A = TL, TR, bottom half; HORZ_B = top + half, BL, BR; VERT_A = TL, BL, right half; VERT_B = left half, TR, BR -- + with `Reach::vert_ab_partition` live for the two VERT arms (r6 visit order, + class `visit-order-changes-availability`), `CDEF_TRANSMITTED` reset per + piece (one CDEF unit each, so libaom's per-unit `cdef_transmitted[index]`), + and the half's `cdef_idx` copied to the second 64x64 unit it covers. +- `crates/ec-av1/src/decode.rs` inter tile: the same four arms through + `inter_piece!` (`SB`/`SB*2` with `ww`/`wh` = the true footprint). +- `crates/ec-av1/src/stream.rs` `sb128_ab_counters()`; new gate + `a_real_aomenc_sb128_ab_partition_at_the_128_root_decodes_pixel_exact`. +- `crates/ec-av1/src/refusal_inventory.rs`: the 128-root AB string is replaced + by the alphabet-bound one. + +## Gate: RED -- and the divergence is NOT in the AB code + +`cargo test -p ec-av1 --lib ab_partition_at_the_128_root -- --nocapture` +fails on its FIRST arm: `sb128c-ab-18-512x512` decode-order frame 0 differs +from the oracle at byte 319 (ours 105 vs 107), 326839 bytes differ. + +Frame 0 of that stream contains **no AB partition at all** (`EC_AV1_TRACE` +`partition_w128` values for its 16 roots are 2,2,2,0,0,3,3,0,... ; the first +value in 4..7 is the 38th root, i.e. frame 2). The first differing sample is +(x=317..319, y=0), inside the LEFT 64x128 half of the third 128 root, which is +`PARTITION_VERT` -- r8's `decode_block_128rect`, untouched this round. + +Hand sweep of four 512x512/384x320 arms (`$HOME/.cache/sb128c-r9/cmp.sh`, +oracle `aomdec` vs our `decode_probe`, `EC_AV1_FINAL_DUMP` per frame): + +| stream | first differing byte (frame 0) | AB values in stream | +|---|---|---| +| 512x512 cq18 key | 320 (x=319,y=0) | HORZ_A x3 | +| 512x512 cq45 key | 318 | HORZ_B x1, VERT_B x1 | +| 512x512 cq45 inter (`--kf-max-dist=100`) | 319 | HORZ_A x1 | +| 384x320 cq55 key | 95531 (x=299,y=248), frame 2 exact | none | +| 512x512 cq45 key, `--enable-ab-partitions=0` | 318 | (aomenc still emitted one HORZ_B) | + +The last row is the control: the SAME byte-318 divergence with the AB flag +off, so the 512x512 defect is independent of this round's code. + +EVIDENCE: $HOME/.cache/sb128c-gate-r9.log + $HOME/.cache/sb128c-r9/{ab18,ab45,abi45,ab55,noab}.obu | cargo test ab_partition_at_the_128_root --nocapture; cmp.sh per stream | 5/5 512x512 arms differ at byte 317..320 of frame 0, a frame with zero AB partitions + +## Film (1080p 10-bit AV1) + +| stream | r9 stop | +|---|---| +| `~/.cache/reelc-head.obu` | OK, 48 frames decoded, 1920x792 | +| `-ss 900` 2 s | "an inter 16x16-level AB or 1:4 partition" (another lane) | +| `-ss 9000` 2 s | "an inter SB-level AB partition" (the 64 root, another lane) | + +Unchanged vs r8 -- the 128-root AB was not the film's next wall at these +offsets. + +EVIDENCE: $HOME/.cache/sb128c-r9/{x900,x9000}.obu | decode_probe on head + two 2 s extracts | 48/48 frames on the head, two named refusals from OTHER lanes' 16x16/64-root AB gaps + +## Suite + +NOT run this round (60-minute deadline spent on the divergence bisection). +The new gate is RED, so the suite is 388 tests with 1 failure until the +512x512 128-rect defect is fixed. + +## Residue + +- fix-now (next round): the 512x512 `decode_block_128rect` divergence at + (x~317, y=0) of a `PARTITION_VERT` 128 root. Pinned streams above; the + `--enable-ab-partitions=0` control isolates it from this round's work. Class + `refusal-hides-a-defect`: r8's gate only ran 192x256/384x320 VERT sources, + which never reached it. +- deferred: intra `tx_depth` > 0 at the 128 root (r8 residue, unchanged).