Enumerate the superblock-root partition alphabet against its arms
Browse files at this commit00c1b3ff2d80d84fef71bb6208110dedbbd95fc4Parent: 93b8225- test
- enumerate the superblock-root partition alphabet against its arms
1 changed file +15 -1
crates/ec-av1/src/refusal_inventory.rsmodified+15 -1
| @@ -235,6 +235,12 @@ const PROVEN: &[(&str, &str)] = &[ | |||
| 235 | "a 128x128 superblock partition value outside the 8-symbol alphabet", | 235 | "a 128x128 superblock partition value outside the 8-symbol alphabet", |
| 236 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | 236 | "every_partition_value_of_an_enumerated_alphabet_has_an_arm", |
| 237 | ), | 237 | ), |
| 238 | + // lane-t900 r24, enumeration: the key-frame superblock root's own `match` | ||
| 239 | + // has an arm for all ten `partition_w64` values. | ||
| 240 | + ( | ||
| 241 | + "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", | ||
| 242 | + "every_partition_value_of_an_enumerated_alphabet_has_an_arm", | ||
| 243 | + ), | ||
| 238 | ( | 244 | ( |
| 239 | "a bit depth of 12 (this decoder is gated at 8 and 10 only: warp/MC/wiener rounding shifts change at 12-bit and no 12-bit gate exists)", | 245 | "a bit depth of 12 (this decoder is gated at 8 and 10 only: warp/MC/wiener rounding shifts change at 12-bit and no 12-bit gate exists)", |
| 240 | "a_twelve_bit_sequence_header_is_refused_by_name", | 246 | "a_twelve_bit_sequence_header_is_refused_by_name", |
| @@ -456,10 +462,18 @@ mod tests { | |||
| 456 | "PARTITION_VERT_4", | 462 | "PARTITION_VERT_4", |
| 457 | ]; | 463 | ]; |
| 458 | // (the refusal in the fallback arm, the alphabet its CDF codes) | 464 | // (the refusal in the fallback arm, the alphabet its CDF codes) |
| 459 | - let blocks: [(&str, usize); 3] = [ | 465 | + let blocks: [(&str, usize); 4] = [ |
| 460 | ("a 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), | 466 | ("a 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), |
| 461 | ("an INTER 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), | 467 | ("an INTER 32x32 partition type this decoder does not code", crate::cdf::PARTITION_W32[0].len() - 1), |
| 462 | ("a 128x128 superblock partition value outside the 8-symbol alphabet", crate::cdf::PARTITION_W128[0].len() - 1), | 468 | ("a 128x128 superblock partition value outside the 8-symbol alphabet", crate::cdf::PARTITION_W128[0].len() - 1), |
| 469 | + // lane-t900 r24: the key-frame superblock root. Its `part` is | ||
| 470 | + // either a `partition_w64` symbol or, at a frame edge, one of the | ||
| 471 | + // three gathered outcomes (PARTITION_HORZ, PARTITION_VERT, | ||
| 472 | + // PARTITION_SPLIT) -- all inside the same ten-value alphabet. | ||
| 473 | + ( | ||
| 474 | + "a superblock-level partition value outside PARTITION_NONE..PARTITION_VERT_4", | ||
| 475 | + crate::cdf::PARTITION_W64[0].len() - 1, | ||
| 476 | + ), | ||
| 463 | ]; | 477 | ]; |
| 464 | // A pattern's own tokens, plus every value of an inclusive range | 478 | // A pattern's own tokens, plus every value of an inclusive range |
| 465 | // (`p if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&p)` is four | 479 | // (`p if (PARTITION_HORZ_A..=PARTITION_VERT_B).contains(&p)` is four |