forge
Explore
Log in

Don't you dare go Hollow

Inventory the three 128x128-superblock refusals

Browse files at this commit

231663ed27875fd28c44872ee5987f01d935ae8aAhmet Kaan GümüşParent: e749a4d
  • test
    • inventory the three 128x128-superblock refusals
Show full message
test(av1): inventory the three 128x128-superblock refusals
crates/ec-av1/src/decode.rsmodified+3 -5
@@ -100,10 +100,6 @@ pub(crate) fn part128_split_hits() -> usize {
100 PART128_SPLIT_HITS.with(|c| c.get())100 PART128_SPLIT_HITS.with(|c| c.get())
101 }101 }
102 102
103-/// The one 128-level partition arm this decoder codes so far.
104-const PART128_NON_SPLIT_REFUSAL: &str =
105- "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)";
106-
107 /// [`gather`] over an alphabet of any length -- the 128-level partition CDF103 /// [`gather`] over an alphabet of any length -- the 128-level partition CDF
108 /// has 8 symbols (no `PARTITION_HORZ_4`/`_VERT_4` at `BLOCK_128X128`, spec104 /// has 8 symbols (no `PARTITION_HORZ_4`/`_VERT_4` at `BLOCK_128X128`, spec
109 /// `partition_cdf_length`), so its forced-split gather sums 5 elements where105 /// `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(
11011 PARTITION_SPLIT11007 PARTITION_SPLIT
11012 };11008 };
11013 if part128 != PARTITION_SPLIT {11009 if part128 != PARTITION_SPLIT {
11014- return Err(unsupported(PART128_NON_SPLIT_REFUSAL));11010+ return Err(unsupported(
11011+ "a 128x128 superblock partition other than SPLIT (NONE/HORZ/VERT and the four AB arms at the 128 root are not decoded)",
11012+ ));
11015 }11013 }
11016 PART128_SPLIT_HITS.with(|c| c.set(c.get() + 1));11014 PART128_SPLIT_HITS.with(|c| c.set(c.get() + 1));
11017 }11015 }
crates/ec-av1/src/refusal_inventory.rsmodified+3 -0
@@ -45,6 +45,9 @@ const REFUSALS: &[&str] = &[
45 "a tx_type symbol outside its CDF's own set: {t}",45 "a tx_type symbol outside its CDF's own set: {t}",
46 "an INTER 32x32 partition type this decoder does not code (value={part32})",46 "an INTER 32x32 partition type this decoder does not code (value={part32})",
47 "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4",47 "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4",
48+ "a 128x128 superblock partition other than SPLIT (NONE/HORZ/VERT and the four AB arms at the 128 root are not decoded)",
49+ "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)",
50+ "an inter frame under a 128x128 superblock (this decoder's inter tile path recurses a 64x64 superblock root only)",
48 "a palette block on a HORZ/VERT intra strip below 16x16 (reconstruction not ported)",51 "a palette block on a HORZ/VERT intra strip below 16x16 (reconstruction not ported)",
49 "a palette block with a real transform on a superblock-level HORZ/VERT strip (corner-cropped luma coefficients not ported for palette)",52 "a palette block with a real transform on a superblock-level HORZ/VERT strip (corner-cropped luma coefficients not ported for palette)",
50 "a block that actually uses a palette (UV) -- reconstruction is out of scope",53 "a block that actually uses a palette (UV) -- reconstruction is out of scope",