From c3fc1741d11f584f26667d8c3f0c7e4b00f6168e 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 09:26:30 +0300 Subject: [PATCH] fix(av1): 8x4/4x8 INTER var-tx leaves (a split 16x4/4x16 strip) had no table set and panicked; three side-keyed CDF rows on rect blocks The lane-r14 merge made read_var_tx_size general, so sub_tx_size_map[TX_16X4] == TX_8X4 now reaches rect_inter_residual_supported(8,4) == false and rect_inter_luma_set's unreachable!(). That panic was live: the 10-bit directional-angle-delta gate failed the r3 suite at decode.rs:11799, not on this lane's own gate. - TxbSet::LumaRect8x4Inter{,1}: LumaRect4x8's shape (Luma8 coefficient tables, true 32-position eob_pt) with the INTER tx_type table at txsize_sqr_map[TX_8X4] = TX_4X4 -- av1_get_ext_tx_set_type (blockd.h:1097) at tx_size_sqr_up == TX_8X8 returns DCT_IDTX reduced / ALL16 unreduced. - rect_inter_residual_supported += (8,4)|(4,8) (split leaves only; an 8x4 inter BLOCK is still refused as "an inter partition below 8x8"). - rect_inter_luma_set / rect_inter_chroma_set / rect_scan return Result: every remaining unreachable!() on a stream-derived shape in that path is now a named refusal (3 new refusal_inventory entries). - Class sweep of the r3 root cause (a CDF row taken from the enclosing square side on a rectangular block): is_any_masked_compound_used_here now takes (bw,bh) -- is_comp_ref_allowed is min(w,h) >= 8, so a 16x4/4x16 strip must read NO comp_group_idx symbol; the intra-in-inter branch's palette ctx (palette_bsize_ctx_wh) and filter-intra class (filter_intra_size_class_rect) likewise come from write_w/write_h. - New counter vartx_rect_leaf4_hits() [8x4, 4x8] + a 5th gate arm for it. --- crates/ec-av1/examples/decode_probe.rs | 2 + crates/ec-av1/src/cdf_state.rs | 41 ++++++++++ crates/ec-av1/src/decode.rs | 105 ++++++++++++++++++------- crates/ec-av1/src/refusal_inventory.rs | 3 + crates/ec-av1/src/stream.rs | 36 +++++++-- 5 files changed, 152 insertions(+), 35 deletions(-) diff --git a/crates/ec-av1/examples/decode_probe.rs b/crates/ec-av1/examples/decode_probe.rs index 20c59892..0289c52f 100644 --- a/crates/ec-av1/examples/decode_probe.rs +++ b/crates/ec-av1/examples/decode_probe.rs @@ -46,6 +46,8 @@ fn main() { println!("inter16_1to4: horz4={h4} vert4={v4} chroma_pairs={pairs} sub8_pieces={sub8}"); let leaf = ec_av1::stream::vartx_rect_leaf_hits(); println!("vartx_rect_leaf: 32x16={} 16x32={}", leaf[0], leaf[1]); + let leaf4 = ec_av1::stream::vartx_rect_leaf4_hits(); + println!("vartx_rect_leaf4: 8x4={} 4x8={}", leaf4[0], leaf4[1]); let ir = ec_av1::stream::inter_rect_counters(); println!( "inter_rect: 32x8={} 8x32={} 64x32={} 32x64={} 64x16={} 16x64={}", diff --git a/crates/ec-av1/src/cdf_state.rs b/crates/ec-av1/src/cdf_state.rs index 27e4bee9..9e185338 100644 --- a/crates/ec-av1/src/cdf_state.rs +++ b/crates/ec-av1/src/cdf_state.rs @@ -243,6 +243,23 @@ pub(crate) enum TxbSet { /// TX_16X16, so `av1_get_ext_tx_set_type` returns `EXT_TX_SET_ALL16` -- /// sixteen symbols, `inter_tx_type_4_set1`. LumaRect16x4Inter1, + /// The luma 8x4/4x8 INTER transform of a `sub_tx_size_map` SPLIT LEAF of + /// a 16x4/4x16 strip (lane-inter16ab r4): `sub_tx_size_map[TX_16X4] == + /// TX_8X4`. Shape = [`LumaRect4x8`](TxbSet::LumaRect4x8)'s -- + /// `get_txsize_entropy_ctx(TX_8X4)` ((`txsize_sqr_map` TX_4X4 + + /// `txsize_sqr_up_map` TX_8X8 + 1) >> 1) resolves to TX_8X8 so every + /// coefficient table is [`Luma8`](TxbSet::Luma8)'s, with the true + /// 32-position `eob_pt` -- but the `tx_type` table is the INTER one at + /// `txsize_sqr_map[TX_8X4]` = TX_4X4. `av1_get_ext_tx_set_type` + /// (`blockd.h:1097`) with `tx_size_sqr_up == TX_8X8` (not > TX_32X32), + /// inter and `use_reduced_set` returns `EXT_TX_SET_DCT_IDTX` -- + /// `inter_tx_type_4`. + LumaRect8x4Inter, + /// [`LumaRect8x4Inter`](TxbSet::LumaRect8x4Inter)'s `reduced_tx_set: + /// false` counterpart: `tx_size_sqr` is TX_4X4, so + /// `av1_get_ext_tx_set_type` returns `EXT_TX_SET_ALL16` -- + /// `inter_tx_type_4_set1`. + LumaRect8x4Inter1, } /// The tables one transform block is coded with, borrowed from the state for @@ -1901,6 +1918,30 @@ impl Cdfs { tx_type: Some(self.inter_tx_type_4_set1.as_mut_slice()), eob_pt_class1: Some(&mut self.eob_pt_64_luma_class1), }, + TxbSet::LumaRect8x4Inter => TxbTables { + side: 8, + txb_skip: &mut self.txb_skip_luma_8, + eob_pt: &mut self.eob_pt_32_luma, + eob_extra: &mut self.eob_extra_luma_8, + base: &mut self.base_luma_8, + base_eob: &mut self.base_eob_luma_8, + br: &mut self.br_luma_8, + dc_sign: &mut self.dc_sign_luma, + tx_type: Some(self.inter_tx_type_4.as_mut_slice()), + eob_pt_class1: Some(&mut self.eob_pt_32_luma_class1), + }, + TxbSet::LumaRect8x4Inter1 => TxbTables { + side: 8, + txb_skip: &mut self.txb_skip_luma_8, + eob_pt: &mut self.eob_pt_32_luma, + eob_extra: &mut self.eob_extra_luma_8, + base: &mut self.base_luma_8, + base_eob: &mut self.base_eob_luma_8, + br: &mut self.br_luma_8, + dc_sign: &mut self.dc_sign_luma, + tx_type: Some(self.inter_tx_type_4_set1.as_mut_slice()), + eob_pt_class1: Some(&mut self.eob_pt_32_luma_class1), + }, TxbSet::LumaRect16x8Inter => TxbTables { side: 16, txb_skip: &mut self.txb_skip_luma_16, diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index c22ea97e..48c4b1d2 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -999,6 +999,9 @@ thread_local! { static RECT64_INTER_TU_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; // lane-r14 r3: rectangular var-tx LEAVES, [32x16, 16x32]. static VARTX_RECT_LEAF_HITS: std::cell::Cell<[usize; 2]> = const { std::cell::Cell::new([0; 2]) }; + // lane-inter16ab r4: rectangular var-tx leaves with a 4-px axis, [8x4, 4x8] + // -- the `sub_tx_size_map[TX_16X4]` split leaves of a 16x16-level 1:4 strip. + static VARTX_RECT_LEAF4_HITS: std::cell::Cell<[usize; 2]> = const { std::cell::Cell::new([0; 2]) }; // lane-inter4 r3: 16x16-level PARTITION_HORZ / PARTITION_VERT on an inter // frame -- 16x8 and 8x16 inter leaves. static INTER_LEAF16_HORZ_HITS: std::cell::Cell = const { std::cell::Cell::new(0) }; @@ -1057,9 +1060,16 @@ pub(crate) fn vartx_rect_leaf_hits() -> [usize; 2] { VARTX_RECT_LEAF_HITS.with(|c| c.get()) } +/// Current value of [`VARTX_RECT_LEAF4_HITS`] (lane-inter16ab r4): 8x4/4x8 +/// split leaves of a 16x4/4x16 strip, `[8x4, 4x8]`. +pub(crate) fn vartx_rect_leaf4_hits() -> [usize; 2] { + VARTX_RECT_LEAF4_HITS.with(|c| c.get()) +} + /// Records one rectangular var-tx leaf. fn vartx_rect_leaf_hit(tw: usize, th: usize) { - VARTX_RECT_LEAF_HITS.with(|c| { + let cell = if tw.min(th) == 4 { &VARTX_RECT_LEAF4_HITS } else { &VARTX_RECT_LEAF_HITS }; + cell.with(|c| { let mut h = c.get(); h[usize::from(th > tw)] += 1; c.set(h); @@ -11761,6 +11771,11 @@ fn rect_inter_residual_supported(w: usize, h: usize) -> bool { // `TX_64X64`, so `av1_get_ext_tx_set_type` is `DCT_ONLY` and no // `tx_type` symbol is coded at all. | (64, 32) | (32, 64) | (64, 16) | (16, 64) + // lane-inter16ab r4: `sub_tx_size_map[TX_16X4] == TX_8X4`, so a + // split-transform 16x4/4x16 strip has RECTANGULAR 8x4/4x8 leaves. + // Only reachable as a var-tx LEAF -- an 8x4/4x8 inter BLOCK is + // refused earlier ("an inter partition below 8x8"). + | (8, 4) | (4, 8) ) } @@ -11772,9 +11787,20 @@ fn rect_inter_residual_supported(w: usize, h: usize) -> bool { /// `tx_size_sqr == TX_8X8`, so it reads `EXT_TX_SET_DCT_IDTX` when reduced /// and the 16-symbol `EXT_TX_SET_ALL16` otherwise -- both at the *8x8* CDF /// row (`txsize_sqr_map`), never the 16x16 one. -fn rect_inter_luma_set(w: usize, h: usize) -> TxbSet { - match (w, h) { +fn rect_inter_luma_set(w: usize, h: usize) -> Result { + Ok(match (w, h) { (32, 16) | (16, 32) => TxbSet::LumaRect32x16Inter, + // lane-inter16ab r4: the 8x4/4x8 split leaf of a 16x4/4x16 strip. + // `av1_get_ext_tx_set_type` (blockd.h:1097) at `tx_size_sqr_up == + // TX_8X8`, `tx_size_sqr == TX_4X4`, inter: DCT_IDTX when reduced, + // ALL16 otherwise -- both at the TX_4X4 row. + (8, 4) | (4, 8) => { + if REDUCED_TX_SET_INTER.with(std::cell::Cell::get) { + TxbSet::LumaRect8x4Inter + } else { + TxbSet::LumaRect8x4Inter1 + } + } (16, 4) | (4, 16) => { if REDUCED_TX_SET_INTER.with(std::cell::Cell::get) { TxbSet::LumaRect16x4Inter @@ -11796,16 +11822,20 @@ fn rect_inter_luma_set(w: usize, h: usize) -> TxbSet { // `tx_type` table (DCT_ONLY above), so the intra/inter split is moot. (64, 32) | (32, 64) => TxbSet::Luma64, (64, 16) | (16, 64) => TxbSet::LumaRect32x16, - _ => unreachable!("rect_inter_residual_supported gates every shape that reaches here"), - } + _ => { + return Err(unsupported( + "a rectangular inter luma transform unit whose shape has no coefficient table set here", + )); + } + }) } /// The chroma table set of the same block's single rectangular chroma unit /// (`av1_get_max_uv_txsize`): 16x8/8x16 under a 32x16/16x32 strip, 8x4/4x8 /// under a 16x8/8x16 one. Neither codes a `tx_type` symbol -- both inherit /// the luma unit's. -fn rect_inter_chroma_set(w: usize, h: usize) -> TxbSet { - match (w, h) { +fn rect_inter_chroma_set(w: usize, h: usize) -> Result { + Ok(match (w, h) { (16, 8) | (8, 16) => TxbSet::ChromaRect16x8, (8, 4) | (4, 8) => TxbSet::ChromaRect8x4, // lane-r14 r2: chroma of a 64-axis strip -- 32x16/16x32 under a @@ -11815,8 +11845,12 @@ fn rect_inter_chroma_set(w: usize, h: usize) -> TxbSet { // `txsize_log2_minus4` = 4), same as the intra strip path uses. (32, 16) | (16, 32) => TxbSet::ChromaRect32x16, (32, 8) | (8, 32) => TxbSet::Chroma16, - _ => unreachable!("rect_inter_residual_supported gates every shape that reaches here"), - } + _ => { + return Err(unsupported( + "a rectangular inter chroma transform unit whose shape has no coefficient table set here", + )); + } + }) } /// libaom `size_group_lookup[bsize]` for the block shapes this decoder's @@ -11852,8 +11886,8 @@ fn size_group_wh_matches_libaom_size_group_lookup() { } /// The default (2D) coefficient scan of a rectangular transform. -fn rect_scan(w: usize, h: usize) -> &'static [u16] { - match (w, h) { +fn rect_scan(w: usize, h: usize) -> Result<&'static [u16]> { + Ok(match (w, h) { (32, 16) => &SCAN_32X16, (16, 32) => &SCAN_16X32, (16, 8) => &SCAN_16X8, @@ -11864,8 +11898,12 @@ fn rect_scan(w: usize, h: usize) -> &'static [u16] { (4, 8) => &SCAN_4X8, (32, 8) => &SCAN_32X8, (8, 32) => &SCAN_8X32, - _ => unreachable!("rect_inter_residual_supported gates every shape that reaches here"), - } + _ => { + return Err(unsupported( + "a rectangular transform unit whose shape has no coefficient scan table here", + )); + } + }) } /// [`read_block_tx_size`] for a rectangular inter block (lane-inter4 r2): @@ -12027,7 +12065,7 @@ fn read_inter_plane_rect( read_coeffs_rect( dec, &mut coding, - rect_scan(cw, ch), + rect_scan(cw, ch)?, cw, ch, skip_ctx, @@ -16047,8 +16085,13 @@ fn obmc_blend( /// always `is_interinter_compound_used`, so the function is always `true` /// for `side` -- kept as a named call (rather than inlined `true`) so a /// future sub-8 block size does not silently misdecode a real stream. -fn is_any_masked_compound_used_here(side: usize) -> bool { - side.min(side) >= 8 +fn is_any_masked_compound_used_here(bw: usize, bh: usize) -> bool { + // lane-inter16ab r4 (class sweep of the r3 CDF-row defect): + // `is_comp_ref_allowed(bsize)` is `AOMMIN(block_size_wide, block_size_high) + // >= 8` on the block's TRUE footprint -- a 16x4/4x16 strip is NOT allowed, + // so libaom writes no `comp_group_idx` symbol there at all. Keyed off the + // square `side` we read one the reference never wrote. + bw.min(bh) >= 8 } /// The `BLOCK_SIZES_ALL` index of a `bw x bh` block (libaom `enum BLOCK_SIZE`, @@ -16916,7 +16959,7 @@ fn decode_inter_block( let group_ctx = get_comp_group_idx_context(neighbours, (rmi, cmi), side); let comp_group_idx = if !skip_mode && enable_masked_compound - && is_any_masked_compound_used_here(side) + && is_any_masked_compound_used_here(write_w, write_h) { dec.symbol(&mut cdfs.comp_group_idx[group_ctx]) } else { @@ -17588,7 +17631,7 @@ fn decode_inter_block( read_inter_plane_rect( dec, cdfs, - rect_inter_luma_set(tw, th), + rect_inter_luma_set(tw, th)?, (tw, th), side, 0, @@ -17618,7 +17661,7 @@ fn decode_inter_block( let (grid, tx_type) = read_inter_plane_rect( dec, cdfs, - rect_inter_luma_set(write_w, write_h), + rect_inter_luma_set(write_w, write_h)?, (write_w, write_h), side, 0, @@ -17662,7 +17705,7 @@ fn decode_inter_block( &read_inter_plane_rect( dec, cdfs, - rect_inter_chroma_set(write_chroma_w, write_chroma_h), + rect_inter_chroma_set(write_chroma_w, write_chroma_h)?, (uw, uh), chroma_side, 1, @@ -17684,7 +17727,7 @@ fn decode_inter_block( &read_inter_plane_rect( dec, cdfs, - rect_inter_chroma_set(write_chroma_w, write_chroma_h), + rect_inter_chroma_set(write_chroma_w, write_chroma_h)?, (uw, uh), chroma_side, 2, @@ -18673,7 +18716,7 @@ fn decode_inter_block( read_inter_plane_rect( dec, cdfs, - rect_inter_luma_set(tw, th), + rect_inter_luma_set(tw, th)?, (tw, th), side, 0, @@ -18703,7 +18746,7 @@ fn decode_inter_block( let (grid, tx_type) = read_inter_plane_rect( dec, cdfs, - rect_inter_luma_set(write_w, write_h), + rect_inter_luma_set(write_w, write_h)?, (write_w, write_h), side, 0, @@ -18756,7 +18799,7 @@ fn decode_inter_block( &read_inter_plane_rect( dec, cdfs, - rect_inter_chroma_set(write_chroma_w, write_chroma_h), + rect_inter_chroma_set(write_chroma_w, write_chroma_h)?, (uw, uh), chroma_side, 1, @@ -18778,7 +18821,7 @@ fn decode_inter_block( &read_inter_plane_rect( dec, cdfs, - rect_inter_chroma_set(write_chroma_w, write_chroma_h), + rect_inter_chroma_set(write_chroma_w, write_chroma_h)?, (uw, uh), chroma_side, 2, @@ -18983,8 +19026,12 @@ fn decode_inter_block( // -- `palette_mode_ctx`/`palette_uv_mode_ctx` hardcoded 0, provably // safe since a nonzero neighbour `palette_size` would already have // refused the decode that produced it. + // lane-inter16ab r4 (class sweep): `av1_get_palette_bsize_ctx` is keyed + // by the block's TRUE footprint -- a rect strip's row is not its + // enclosing square's, and a 16x4 strip (64 pixels) reads no palette + // symbol at all. if allow_screen_content_tools - && let Some(bsize_ctx) = palette_bsize_ctx(side) + && let Some(bsize_ctx) = palette_bsize_ctx_wh(write_w, write_h) { if mode == DC_PRED && dec.symbol(&mut cdfs.palette_y_mode[bsize_ctx][0]) != 0 { return Err(unsupported( @@ -19008,7 +19055,9 @@ fn decode_inter_block( let mut filter_intra = None; if mode == DC_PRED && ENABLE_FILTER_INTRA_INTER.with(std::cell::Cell::get) - && let Some(class) = filter_intra_size_class(side) + // lane-inter16ab r4 (class sweep): `cdf::FILTER_INTRA`'s row is the + // true `BLOCK_SIZES_ALL` class of this strip, not its square side's. + && let Some(class) = filter_intra_size_class_rect(write_w, write_h) && dec.symbol(&mut cdfs.filter_intra[class]) != 0 { FILTER_INTRA_HITS.with(|c| c.set(c.get() + 1)); @@ -19705,7 +19754,7 @@ fn decode_inter_block8( let group_ctx = get_comp_group_idx_context(neighbours, leaf_mi, SIDE); let comp_group_idx = if !skip_mode && enable_masked_compound - && is_any_masked_compound_used_here(SIDE) + && is_any_masked_compound_used_here(SIDE, SIDE) { dec.symbol(&mut cdfs.comp_group_idx[group_ctx]) } else { diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index c40f8db1..7f98b94a 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -34,6 +34,9 @@ const REFUSALS: &[&str] = &[ "a coded HORZ/VERT strip whose chroma transform has no rect coefficient tables here", "a split intra strip whose transform unit is {tx_w}x{tx_h} (no luma coefficient tables for that shape here)", "an inter partition below 8x8 (this decoder codes no inter leaf smaller than 8x8; lane-sub8 scoped to intra)", + "a rectangular inter luma transform unit whose shape has no coefficient table set here", + "a rectangular inter chroma transform unit whose shape has no coefficient table set here", + "a rectangular transform unit whose shape has no coefficient scan table here", "a 1:4 rect strip that actually uses a palette (reconstruction is not ported at this shape)", "a 16x16 block whose true edge cuts through both axes needs a rectangular transform this decoder does not code yet", "a 16x16 inter block whose true edge cuts through both axes needs a rectangular transform this decoder does not code yet", diff --git a/crates/ec-av1/src/stream.rs b/crates/ec-av1/src/stream.rs index 333a33b5..209b36c0 100644 --- a/crates/ec-av1/src/stream.rs +++ b/crates/ec-av1/src/stream.rs @@ -81,6 +81,13 @@ pub fn vartx_rect_leaf_hits() -> [usize; 2] { crate::decode::vartx_rect_leaf_hits() } +/// lane-inter16ab r4: RECTANGULAR var-tx leaves with a 4-px axis, `[8x4, 4x8]` +/// -- what `sub_tx_size_map[TX_16X4] == TX_8X4` produces when a 16x16-level +/// 1:4 inter strip splits its transform. +pub fn vartx_rect_leaf4_hits() -> [usize; 2] { + crate::decode::vartx_rect_leaf4_hits() +} + pub fn rect4_32_counters() -> (usize, usize, usize) { ( crate::decode::rect4_32_horz_hits(), @@ -8025,11 +8032,18 @@ mod tests { let (width, height, frame_count) = (192usize, 128usize, 6usize); // Per arm, over both bit depths: how many pixel-exact attempts fired // it at least once. - let mut arms_total = [0u32; 4]; + let mut arms_total = [0u32; 5]; for bit_depth in [8u32, 10u32] { let (mut named_refusals, mut matched, mut out_of_scope, mut oos_mismatch) = (0u32, 0u32, 0u32, 0u32); - let mut arms_proved = [0u32; 4]; + let mut arms_proved = [0u32; 5]; + // lane-inter16ab r4: a 4-recipe widening (fine `sin(X/3)` stripes + // at cq 8..14, both depths) was measured and REMOVED again -- every + // extra 1:4 partition it produced is in the KEY frame, and this + // gate's arms count INTER-frame strips. Frame-aware histogram + // script + table in lanes/inter16ab-r4.report.md; the only recipe + // in the whole sweep with an inter-frame `PARTITION_VERT_4` is + // attempt 1's, which refuses on the rect wedge-interintra mask. for attempt in 0..32u32 { // Two sources (structure along X vs along Y -- an AB // partition needs an L/T-shaped feature, so both orientations @@ -8136,6 +8150,7 @@ mod tests { ); let stream = out.stdout; let before = decode::inter16_rect4_counters(); + let leaf4_before = crate::stream::vartx_rect_leaf4_hits(); let frames = match decode_stream(&stream) { Err(e) => { let msg = e.to_string(); @@ -8151,6 +8166,7 @@ mod tests { Ok(frames) => frames, }; let after = decode::inter16_rect4_counters(); + let leaf4_after = crate::stream::vartx_rect_leaf4_hits(); // [16x4 strips, 4x16 strips, chroma pairs closed, chroma // pairs built from two strips' motion vectors]. let fired = [ @@ -8158,6 +8174,11 @@ mod tests { after.1 - before.1, after.2 - before.2, after.3 - before.3, + // lane-inter16ab r4: the SPLIT-transform arm -- + // `sub_tx_size_map[TX_16X4] == TX_8X4`, so a 1:4 strip + // that splits its transform codes 8x4/4x8 RECTANGULAR + // var-tx leaves (`--enable-tx-size-search=1`). + (leaf4_after[0] - leaf4_before[0]) + (leaf4_after[1] - leaf4_before[1]), ]; let ffmpeg_frames = if bit_depth == 10 { ffmpeg_decode_sequence_10bit(&stream, width, height, frame_count) @@ -8204,7 +8225,7 @@ mod tests { assert_eq!(got.u, want.u, "{NAME} frame {i} U vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); assert_eq!(got.v, want.v, "{NAME} frame {i} V vs ffmpeg (attempt {attempt}, {bit_depth}-bit, arms {fired:?})"); } - for a in 0..4 { + for a in 0..5 { if fired[a] > 0 { arms_proved[a] += 1; arms_total[a] += 1; @@ -8215,7 +8236,7 @@ mod tests { eprintln!( "{NAME} ({bit_depth}-bit): {named_refusals} named refusals, {matched} pixel-exact \ attempts carrying a 16-level inter 1:4 partition, per-arm attempts \ - HORZ_4/VERT_4/chroma-pair/sub8x8-chroma={arms_proved:?}, {out_of_scope} attempts carried \ + HORZ_4/VERT_4/chroma-pair/sub8x8-chroma/split-tx-8x4={arms_proved:?}, {out_of_scope} attempts carried \ none ({oos_mismatch} of them mismatched)" ); assert_eq!( @@ -8227,9 +8248,10 @@ mod tests { assert!( arms_total.iter().all(|&n| n > 0), "{NAME}: a 16-level inter 1:4 arm never fired on a pixel-exact attempt \ - (HORZ_4/VERT_4/chroma-pairs/sub8x8-chroma-pairs={arms_total:?}) -- an arm at 0 is \ - unproven; the last two are the odd-strip `is_chroma_reference` pair and the \ - `build_inter_predictors_sub8x8` two-mv chroma build" + (HORZ_4/VERT_4/chroma-pairs/sub8x8-chroma-pairs/split-tx-8x4={arms_total:?}) -- an \ + arm at 0 is unproven; arms 3/4 are the odd-strip `is_chroma_reference` pair and the \ + `build_inter_predictors_sub8x8` two-mv chroma build, arm 5 the \ + `sub_tx_size_map[TX_16X4] == TX_8X4` split-transform leaf" ); }