From 231663ed27875fd28c44872ee5987f01d935ae8a 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 06:25:15 +0300 Subject: [PATCH] test(av1): inventory the three 128x128-superblock refusals --- crates/ec-av1/src/decode.rs | 8 +++----- crates/ec-av1/src/refusal_inventory.rs | 3 +++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/crates/ec-av1/src/decode.rs b/crates/ec-av1/src/decode.rs index 77c08675..e82a9091 100644 --- a/crates/ec-av1/src/decode.rs +++ b/crates/ec-av1/src/decode.rs @@ -100,10 +100,6 @@ pub(crate) fn part128_split_hits() -> usize { PART128_SPLIT_HITS.with(|c| c.get()) } -/// The one 128-level partition arm this decoder codes so far. -const PART128_NON_SPLIT_REFUSAL: &str = - "a 128x128 superblock partition other than SPLIT (NONE/HORZ/VERT/HORZ_A/HORZ_B/VERT_A/VERT_B at the 128 root are not decoded)"; - /// [`gather`] over an alphabet of any length -- the 128-level partition CDF /// has 8 symbols (no `PARTITION_HORZ_4`/`_VERT_4` at `BLOCK_128X128`, spec /// `partition_cdf_length`), so its forced-split gather sums 5 elements where @@ -11011,7 +11007,9 @@ pub(crate) fn decode_key_frame_tile_with_cdfs( PARTITION_SPLIT }; if part128 != PARTITION_SPLIT { - return Err(unsupported(PART128_NON_SPLIT_REFUSAL)); + return Err(unsupported( + "a 128x128 superblock partition other than SPLIT (NONE/HORZ/VERT and the four AB arms at the 128 root are not decoded)", + )); } PART128_SPLIT_HITS.with(|c| c.set(c.get() + 1)); } diff --git a/crates/ec-av1/src/refusal_inventory.rs b/crates/ec-av1/src/refusal_inventory.rs index 5247d19a..a146f745 100644 --- a/crates/ec-av1/src/refusal_inventory.rs +++ b/crates/ec-av1/src/refusal_inventory.rs @@ -45,6 +45,9 @@ 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 partition other than SPLIT (NONE/HORZ/VERT and the four AB arms at the 128 root are not decoded)", + "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)", + "an inter frame under a 128x128 superblock (this decoder's inter tile path recurses a 64x64 superblock root only)", "a palette block on a HORZ/VERT intra strip below 16x16 (reconstruction not ported)", "a palette block with a real transform on a superblock-level HORZ/VERT strip (corner-cropped luma coefficients not ported for palette)", "a block that actually uses a palette (UV) -- reconstruction is out of scope",