From 625392219b253d6e499c9b284343b5ca863497b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Sun, 30 Aug 2026 21:08:03 +0300 Subject: [PATCH] wip(rectx): non-skip TX_16X8/TX_8X16 rect-leaf coefficient decode Uncommitted at the agent's turn cap, committed by the orchestrator. `cargo check -p ec-av1 --lib` clean; NO test run, NO gate, NO pixel-exact proof yet. Adds EOB_PT_128_LUMA and EOB_PT_32_CHROMA (the only tables the size actually needed -- av1_get_ext_tx_set_type puts TX_16X8/TX_8X16 under use_reduced_set in the SAME EXT_TX_SET_DTT4_IDTX the square Luma16 set already reads, so the adapted intra_tx_type_16[mode] table is correct to share and no new tx_type CDF was needed); TxbSet::LumaRect16x8 and ::ChromaRect8x4; SCAN_8X4/SCAN_4X8; an optional tx_type symbol in read_coeffs_rect, which previously hard-refused it; and the non-skip branch of decode_leaf_rect wired to real coefficient decode through the existing around_mi_rect/record_mi_rect machinery. Note for whoever reads the scan constants: this repo's SCAN_WxH naming is axis-swapped from libaom's -- repo SCAN_16X8 is libaom default_scan_8x16 verbatim. The new pair follows that established convention rather than re-deriving it, and it is NOT yet covered by a transposed-pair test. --- crates/ec-av1/src/cdf.rs | 36 +++++ crates/ec-av1/src/cdf_state.rs | 70 +++++++++ crates/ec-av1/src/decode.rs | 209 ++++++++++++++++--------- crates/ec-av1/src/refusal_inventory.rs | 2 - 4 files changed, 245 insertions(+), 72 deletions(-) diff --git a/crates/ec-av1/src/cdf.rs b/crates/ec-av1/src/cdf.rs index a097ea79..1929f374 100644 --- a/crates/ec-av1/src/cdf.rs +++ b/crates/ec-av1/src/cdf.rs @@ -266,6 +266,42 @@ pub const EOB_PT_128_CHROMA_Q3: [u16; 9] = [ 24313, 26062, 28385, 30107, 31217, 31898, 32345, 32768, 0, ]; +/// `av1_default_eob_multi128_cdfs[2][0][0]` (`token_cdfs.h:830-849`, +/// lane-rectx): the end-of-block group of a LUMA transform with 128 coded +/// positions -- what a true 16x8/8x16 rectangular transform has +/// (`decode_leaf_rect`'s own leaf, one level below [`EOB_PT_512_LUMA`]'s +/// 32x16/16x32), distinct from [`EOB_PT_256_LUMA`]'s 256-position group a +/// *square* 16x16 reads. Read straight from the plane-0 half of the same +/// `token_cdfs.h` table [`EOB_PT_128_CHROMA`] reads its plane-1 half from. +pub const EOB_PT_128_LUMA: [u16; 9] = [ + 1366, 1738, 2527, 5016, 9355, 15797, 24643, 32768, 0, +]; +/// [`EOB_PT_128_LUMA`], q-context 0. +pub const EOB_PT_128_LUMA_Q0: [u16; 9] = [ + 219, 482, 1140, 2091, 3680, 6028, 12586, 32768, 0, +]; +/// [`EOB_PT_128_LUMA`], q-context 1. +pub const EOB_PT_128_LUMA_Q1: [u16; 9] = [ + 685, 933, 1488, 2714, 4766, 8562, 19254, 32768, 0, +]; +/// [`EOB_PT_128_LUMA`], q-context 3. +pub const EOB_PT_128_LUMA_Q3: [u16; 9] = [ + 3472, 4885, 7489, 12481, 18517, 24536, 29635, 32768, 0, +]; + +/// `av1_default_eob_multi32_cdfs[2][1][0]` (`token_cdfs.h:792-808`, +/// lane-rectx): the end-of-block group of a CHROMA transform with 32 coded +/// positions -- what a true 8x4/4x8 rectangular transform has (the chroma +/// plane of a [`decode_leaf_rect`] 16x8/8x16 luma strip), distinct from +/// [`EOB_PT_16_CHROMA`]'s 16-position group a *square* 4x4 reads. +pub const EOB_PT_32_CHROMA: [u16; 7] = [13468, 16303, 20361, 25105, 29281, 32768, 0]; +/// [`EOB_PT_32_CHROMA`], q-context 0. +pub const EOB_PT_32_CHROMA_Q0: [u16; 7] = [2636, 4273, 7588, 11794, 20401, 32768, 0]; +/// [`EOB_PT_32_CHROMA`], q-context 1. +pub const EOB_PT_32_CHROMA_Q1: [u16; 7] = [8394, 10352, 13932, 18855, 26014, 32768, 0]; +/// [`EOB_PT_32_CHROMA`], q-context 3. +pub const EOB_PT_32_CHROMA_Q3: [u16; 7] = [22086, 24282, 27010, 29770, 31743, 32768, 0]; + /// `av1_default_eob_multi512_cdfs[*][1][*]` (`token_cdfs.h:874-901`, /// lane-sbpart): the end-of-block group of a CHROMA transform with 512 coded /// positions -- what a 32x16/16x32 chroma transform has (the chroma plane of diff --git a/crates/ec-av1/src/cdf_state.rs b/crates/ec-av1/src/cdf_state.rs index 330dcad8..c9b37ff5 100644 --- a/crates/ec-av1/src/cdf_state.rs +++ b/crates/ec-av1/src/cdf_state.rs @@ -117,6 +117,30 @@ pub(crate) enum TxbSet { /// different existing sets is why this variant exists at all rather than /// reusing [`LumaRect32x16`](TxbSet::LumaRect32x16)'s chroma sibling. ChromaRect32x16, + /// The luma 16x8/8x16 transform of a `PARTITION_HORZ`/`VERT` intra strip + /// below 16x16 (lane-rectx, `decode_leaf_rect`'s own leaf, one level + /// under [`LumaRect32x16`](TxbSet::LumaRect32x16)): `get_txsize_entropy_ctx` + /// reduces this 2:1 rect size to `TX_16X16` too, so this shares every + /// table [`Luma16`](TxbSet::Luma16) does -- INCLUDING its mode-indexed + /// `tx_type` CDF, the same adapted table object -- except `eob_pt`, which + /// reads the true 128-position [`crate::cdf::EOB_PT_128_LUMA`] rather + /// than `Luma16`'s 256-position one. Unlike + /// [`LumaRect32x16`](TxbSet::LumaRect32x16), this size DOES carry a + /// `tx_type` symbol: `av1_get_ext_tx_set_type`'s `use_reduced_set` branch + /// returns `EXT_TX_SET_DTT4_IDTX` for every `tx_size_sqr_up == TX_16X16` + /// regardless of the real (non-square) `tx_size`, the same set + /// `Luma16`'s own read already uses -- confirmed against + /// `av1/common/blockd.h`'s `av1_get_ext_tx_set_type` before landing, + /// see `decode_block_rect`'s own doc comment for the desync this gap + /// left when it was still unhandled. + LumaRect16x8, + /// The chroma 8x4/4x8 transform under the same leaf (lane-rectx): + /// [`Chroma8`](TxbSet::Chroma8)'s tables except `eob_pt`, which reads the + /// true 32-position [`crate::cdf::EOB_PT_32_CHROMA`] instead of + /// `Chroma8`'s 64-position one -- the same square-up relationship + /// [`ChromaRect16x8`](TxbSet::ChromaRect16x8) has to `Chroma16`, one size + /// class down. + ChromaRect8x4, } /// The tables one transform block is coded with, borrowed from the state for @@ -269,6 +293,12 @@ pub(crate) struct Cdfs { /// The end-of-block group of a true 32x16/16x32 rect CHROMA transform /// (lane-sbpart), see [`TxbSet::ChromaRect32x16`]. pub eob_pt_512_chroma: [u16; 11], + /// The end-of-block group of a true 16x8/8x16 rect LUMA transform + /// (lane-rectx), see [`TxbSet::LumaRect16x8`]. + pub eob_pt_128_luma: [u16; 9], + /// The end-of-block group of a true 8x4/4x8 rect CHROMA transform + /// (lane-rectx), see [`TxbSet::ChromaRect8x4`]. + pub eob_pt_32_chroma: [u16; 7], /// The end-of-block offset bit, per table set. pub eob_extra_luma_32: [[u16; 3]; 9], /// The same, for a 64x64 luma transform. @@ -624,6 +654,8 @@ impl Cdfs { reset1(&mut self.eob_pt_512_luma); reset1(&mut self.eob_pt_128_chroma); reset1(&mut self.eob_pt_512_chroma); + reset1(&mut self.eob_pt_128_luma); + reset1(&mut self.eob_pt_32_chroma); reset2(&mut self.eob_extra_luma_32); reset2(&mut self.eob_extra_luma_64); reset2(&mut self.eob_extra_chroma_16); @@ -1010,6 +1042,20 @@ impl Cdfs { cdf::EOB_PT_128_CHROMA, cdf::EOB_PT_128_CHROMA_Q3, ), + eob_pt_128_luma: pick( + q_ctx, + cdf::EOB_PT_128_LUMA_Q0, + cdf::EOB_PT_128_LUMA_Q1, + cdf::EOB_PT_128_LUMA, + cdf::EOB_PT_128_LUMA_Q3, + ), + eob_pt_32_chroma: pick( + q_ctx, + cdf::EOB_PT_32_CHROMA_Q0, + cdf::EOB_PT_32_CHROMA_Q1, + cdf::EOB_PT_32_CHROMA, + cdf::EOB_PT_32_CHROMA_Q3, + ), // Flat default at every q-context (see the constant's own doc // comment) -- no `pick()` needed. eob_pt_512_chroma: cdf::EOB_PT_512_CHROMA, @@ -1421,6 +1467,30 @@ impl Cdfs { tx_type: None, eob_pt_class1: None, }, + TxbSet::LumaRect16x8 => TxbTables { + side: 16, + txb_skip: &mut self.txb_skip_luma_16, + eob_pt: &mut self.eob_pt_128_luma, + eob_extra: &mut self.eob_extra_luma_16, + base: &mut self.base_luma_16, + base_eob: &mut self.base_eob_luma_16, + br: &mut self.br_luma_16, + dc_sign: &mut self.dc_sign_luma, + tx_type: Some(self.intra_tx_type_16[mode].as_mut_slice()), + eob_pt_class1: None, + }, + TxbSet::ChromaRect8x4 => TxbTables { + side: 8, + txb_skip: &mut self.txb_skip_chroma_8, + eob_pt: &mut self.eob_pt_32_chroma, + eob_extra: &mut self.eob_extra_chroma_8, + base: &mut self.base_chroma_8, + base_eob: &mut self.base_eob_chroma_8, + br: &mut self.br_chroma_8, + dc_sign: &mut self.dc_sign_chroma, + tx_type: None, + eob_pt_class1: None, + }, } } } diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index be8f124f..e68954fe 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -744,6 +744,19 @@ pub(crate) fn rect_coeff_hits() -> usize { RECT_COEFF_HITS.with(|c| c.get()) } +// lane-rectx r1: how many below-16x16 HORZ/VERT leaves ([`decode_leaf_rect`]) +// decoded real (non-skip) TX_16X8/TX_8X16 coefficients -- the counter the +// charter's real-aomenc gate hard-asserts. +thread_local! { + static RECT_LEAF_COEFF_HITS: std::cell::Cell = + const { std::cell::Cell::new(0) }; +} + +/// Current value of [`RECT_LEAF_COEFF_HITS`]. +pub(crate) fn rect_leaf_coeff_hits() -> usize { + RECT_LEAF_COEFF_HITS.with(|c| c.get()) +} + // lane-sbpart r2: how many superblock-level `PARTITION_HORZ`/`PARTITION_VERT` // blocks (two true 64x32/32x64 strips, [`decode_block_rect64`]) fired -- the // gate's proof this round's arms actually reached a real block, not just @@ -1236,6 +1249,26 @@ const SCAN_8X16: [u16; 128] = [ 123, 103, 110, 117, 124, 111, 118, 125, 119, 126, 127, ]; +/// `Default_Scan_8x4` (lane-rectx, see [`SCAN_32X16`]'s doc comment for the +/// transposition rule this repo's `SCAN_WxH` names follow): this repo's +/// `(w=8, h=4)` reads libaom's own `default_scan_4x8` verbatim -- the same +/// axis swap [`SCAN_16X8`]/[`SCAN_8X16`] already carry one size class up +/// (repo `SCAN_16X8` == libaom `default_scan_8x16`, repo `SCAN_8X16` == +/// libaom `default_scan_16x8`), checked against `scan.c` before landing +/// rather than re-deriving the zigzag formula. +const SCAN_8X4: [u16; 32] = [ + 0, 8, 1, 16, 9, 2, 24, 17, 10, 3, 25, 18, 11, 4, 26, 19, 12, 5, 27, 20, 13, 6, 28, 21, 14, 7, + 29, 22, 15, 30, 23, 31, +]; + +/// `Default_Scan_4x8` (lane-rectx): this repo's `(w=4, h=8)` reads libaom's +/// own `default_scan_8x4` verbatim, the same transposition [`SCAN_8X4`]'s +/// doc comment explains. +const SCAN_4X8: [u16; 32] = [ + 0, 1, 4, 2, 5, 8, 3, 6, 9, 12, 7, 10, 13, 16, 11, 14, 17, 20, 15, 18, 21, 24, 19, 22, 25, 28, + 23, 26, 29, 27, 30, 31, +]; + /// [`neighbour`] with independent `w` (row stride)/`h` (row-bound) extents /// (lane-rectwire, mirrors [`record_rect`](Neighbours::record_rect)'s /// asymmetric-extent pattern). @@ -1599,12 +1632,14 @@ fn read_coeffs( Ok((grid, tx_type)) } -/// [`read_coeffs`] widened to `(w, h)` (lane-rectwire), restricted to -/// `TxClass::TwoD` -- the only class either rect size pair this decoder codes -/// can ever produce (see [`decode_block_rect`]'s doc comment): refuses by -/// name rather than guess-decode if a `tx_type` symbol or non-2D class ever -/// shows up here, since neither `base_ctx_rect`/`br_ctx_rect` nor -/// [`class_scan_table`] have a rect form for those. +/// [`read_coeffs`] widened to `(w, h)` (lane-rectwire; lane-rectx added the +/// `tx_type` read [`TxbSet::LumaRect16x8`] needs), restricted to +/// `TxClass::TwoD` -- the only class any rect size pair this decoder codes +/// can ever produce, since every `tx_type` this decoder's rect sets can read +/// (`EXT_TX_SET_DTT4_IDTX`'s five members) is itself 2D: refuses by name +/// rather than guess-decode if a non-2D class ever shows up here, since +/// neither `base_ctx_rect`/`br_ctx_rect` nor [`class_scan_table`] have a rect +/// form for those. fn read_coeffs_rect( dec: &mut SymbolDecoder, coding: &mut TxbTables, @@ -1620,12 +1655,21 @@ fn read_coeffs_rect( if all_zero { return Ok((grid, TxType::DctDct)); } - if coding.tx_type.is_some() { - return Err(unsupported( - "a tx_type symbol on a rectangular transform (never expected at this size)", - )); + let mut tx_type = default_tx_type; + if let Some(tx_type_cdf) = coding.tx_type.as_deref_mut() { + // Mirrors [`read_coeffs`]'s own `tx_type` read: the CDF row's width + // names its set (lane-rectx, `TxbSet::LumaRect16x8` -- the one rect + // set here that carries a `tx_type` symbol at all). + let len = tx_type_cdf.len(); + let t = dec.symbol(tx_type_cdf); + tx_type = match len { + 17 => TxType::from_symbol_all16(t), + 13 => TxType::from_symbol_set2_12(t), + 8 => TxType::from_symbol_set1(t), + _ => TxType::from_symbol(t), + } + .ok_or_else(|| unsupported(format!("a tx_type symbol outside its CDF's own set: {t}")))?; } - let tx_type = default_tx_type; if TxClass::of(tx_type) != TxClass::TwoD { return Err(unsupported( "a non-2D tx class on a rectangular transform (never expected at this size)", @@ -3469,9 +3513,10 @@ fn decode_block_rect( /// writers (`record_mi_rect`, `fill_skip_grid_rect`, `fill_lf_grid_rect`) at /// this strip's real position, never the coarse `record_rect` (which the /// caller uses once, after both strips, exactly like the `VERT_B` arm next -/// to it). Only the skip case is ported -- see [`decode_block_rect`]'s own -/// doc for why a coded rect strip below 16x16 has no coefficient tables here -/// yet. +/// to it). The non-skip case (lane-rectx) reads real `TX_16X8`/`TX_8X16` +/// luma coefficients (`TxbSet::LumaRect16x8`) and their `TX_8X4`/`TX_4X8` +/// chroma half (`TxbSet::ChromaRect8x4`), the two size classes one level +/// under [`decode_block_rect`]'s own 32x16/16x32 strip. #[allow(clippy::too_many_arguments)] fn decode_leaf_rect( dec: &mut SymbolDecoder, @@ -3540,66 +3585,90 @@ fn decode_leaf_rect( prediction is not ported)", )); } - if !skip { - return Err(unsupported( - "a coded (non-skip) HORZ/VERT rect strip below 16x16 (this decoder ports only \ - the skip case at this size)", - )); - } let (px, py) = (leaf_mi.1 * MI, leaf_mi.0 * MI); let reach = Reach::of_rect(bw, bh, px, py, y.width, y.height); let (cpx, cpy) = (px / 2, py / 2); let (chroma_w, chroma_h) = (bw / 2, bh / 2); - y.reconstruct_rect( - px, - py, - bw, - bh, - mode, - angle_delta_y, - reach, - &vec![0i32; bw * bh], - None, - filter_intra, - smooth_neighbor, - ); - let ac = alpha.map(|_| cfl_ac_q3_rect(y, px, py, bw, bh)); - u.reconstruct_rect( - cpx, - cpy, - chroma_w, - chroma_h, - uv_predict_mode, - angle_delta_uv, - reach, - &vec![0i32; chroma_w * chroma_h], - alpha.zip(ac.as_deref()).map(|((au, _), ac)| (au, ac)), - None, - false, - ); - v.reconstruct_rect( - cpx, - cpy, - chroma_w, - chroma_h, - uv_predict_mode, - angle_delta_uv, - reach, - &vec![0i32; chroma_w * chroma_h], - alpha.zip(ac.as_deref()).map(|((_, av), ac)| (av, ac)), - None, - false, - ); - neighbours.record_mi_rect( - leaf_mi, - bw, - bh, - &[ - vec![0i32; bw * bh], - vec![0i32; chroma_w * chroma_h], - vec![0i32; chroma_w * chroma_h], - ], - ); + let (luma_levels, u_levels, v_levels); + if skip { + luma_levels = vec![0i32; bw * bh]; + u_levels = vec![0i32; chroma_w * chroma_h]; + v_levels = vec![0i32; chroma_w * chroma_h]; + y.reconstruct_rect( + px, py, bw, bh, mode, angle_delta_y, reach, &luma_levels, None, filter_intra, + smooth_neighbor, + ); + let ac = alpha.map(|_| cfl_ac_q3_rect(y, px, py, bw, bh)); + u.reconstruct_rect( + cpx, cpy, chroma_w, chroma_h, uv_predict_mode, angle_delta_uv, reach, &u_levels, + alpha.zip(ac.as_deref()).map(|((au, _), ac)| (au, ac)), None, false, + ); + v.reconstruct_rect( + cpx, cpy, chroma_w, chroma_h, uv_predict_mode, angle_delta_uv, reach, &v_levels, + alpha.zip(ac.as_deref()).map(|((_, av), ac)| (av, ac)), None, false, + ); + } else { + // lane-rectx: a genuine 16x8/8x16 luma transform (`TxbSet::LumaRect16x8`, + // real `EOB_PT_128_LUMA` alphabet + the same mode-indexed `tx_type` + // symbol the square `Luma16` set reads -- `get_ext_tx_set_type`'s + // `use_reduced_set` branch returns `EXT_TX_SET_DTT4_IDTX` at + // `tx_size_sqr_up == TX_16X16` regardless of the true, non-square + // `tx_size`) and its chroma half (8x4/4x8, `TxbSet::ChromaRect8x4`). + let (luma_scan, chroma_scan): (&[u16], &[u16]) = if bw == 16 { + (&SCAN_16X8, &SCAN_8X4) + } else { + (&SCAN_8X16, &SCAN_4X8) + }; + let around = neighbours.around_mi_rect(leaf_mi, bw, bh); + let mut luma_coding = cdfs.txb(TxbSet::LumaRect16x8, mode); + let (l_levels, luma_tx_type) = read_coeffs_rect( + dec, &mut luma_coding, luma_scan, bw, bh, 0, dc_sign_ctx(around[0].2), TxType::DctDct, + )?; + luma_levels = l_levels; + let luma_residual = dequant_and_inverse_typed_wh( + &luma_levels, bw, bh, crate::decode::bit_depth(), + CURRENT_Q_IDX.with(|c| c.get()), plane_q_delta(0).0, plane_q_delta(0).1, luma_tx_type, + ); + y.reconstruct_rect( + px, py, bw, bh, mode, angle_delta_y, reach, &luma_residual, None, filter_intra, + smooth_neighbor, + ); + let ac = alpha.map(|_| cfl_ac_q3_rect(y, px, py, bw, bh)); + let u_default_tx = default_intra_tx_type(uv_predict_mode as u8); + let u_skip_ctx = usize::from(around[1].0) + usize::from(around[1].1); + let mut u_coding = cdfs.txb(TxbSet::ChromaRect8x4, uv_predict_mode); + let (u_l, u_tx_type) = read_coeffs_rect( + dec, &mut u_coding, chroma_scan, chroma_w, chroma_h, u_skip_ctx, + dc_sign_ctx(around[1].2), u_default_tx, + )?; + u_levels = u_l; + let u_residual = dequant_and_inverse_typed_wh( + &u_levels, chroma_w, chroma_h, crate::decode::bit_depth(), + CURRENT_Q_IDX.with(|c| c.get()), plane_q_delta(1).0, plane_q_delta(1).1, u_tx_type, + ); + u.reconstruct_rect( + cpx, cpy, chroma_w, chroma_h, uv_predict_mode, angle_delta_uv, reach, &u_residual, + alpha.zip(ac.as_deref()).map(|((au, _), ac)| (au, ac)), None, false, + ); + let v_default_tx = default_intra_tx_type(uv_predict_mode as u8); + let v_skip_ctx = usize::from(around[2].0) + usize::from(around[2].1); + let mut v_coding = cdfs.txb(TxbSet::ChromaRect8x4, uv_predict_mode); + let (v_l, v_tx_type) = read_coeffs_rect( + dec, &mut v_coding, chroma_scan, chroma_w, chroma_h, v_skip_ctx, + dc_sign_ctx(around[2].2), v_default_tx, + )?; + v_levels = v_l; + let v_residual = dequant_and_inverse_typed_wh( + &v_levels, chroma_w, chroma_h, crate::decode::bit_depth(), + CURRENT_Q_IDX.with(|c| c.get()), plane_q_delta(2).0, plane_q_delta(2).1, v_tx_type, + ); + v.reconstruct_rect( + cpx, cpy, chroma_w, chroma_h, uv_predict_mode, angle_delta_uv, reach, &v_residual, + alpha.zip(ac.as_deref()).map(|((_, av), ac)| (av, ac)), None, false, + ); + RECT_LEAF_COEFF_HITS.with(|c| c.set(c.get() + 1)); + } + neighbours.record_mi_rect(leaf_mi, bw, bh, &[luma_levels, u_levels, v_levels]); neighbours.fill_skip_grid_rect(leaf_mi, mi_w, mi_h, skip); neighbours.fill_lf_grid_rect(leaf_mi, mi_w, mi_h, bw as u8, bh as u8, 0); Ok(mode) diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index fb771602..a87765e0 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -29,14 +29,12 @@ const CAPABILITY_CLAIMS: &[&str] = &[ "a non-DC chroma mode on an 8x8 inter-frame leaf (this encoder never writes one)", "a nonzero angle delta (this encoder never writes one)", "a partition below 8x8 (this decoder codes no leaf smaller than 8x8)", - "a tx_type symbol on a rectangular transform (never expected at this size)", ]; #[cfg(test)] const REFUSALS: &[&str] = &[ "GLOBALMV (round 3)", "a coded (non-skip) HORZ_B/VERT_B rect strip below 16x16 (this decoder ports only the skip case at this size)", - "a coded (non-skip) HORZ/VERT rect strip below 16x16 (this decoder ports only the skip case at this size)", "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 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",