forge
Explore
Log in

Don't you dare go Hollow

The inter-SB partition pin and the new motion_mode refusal literal

Browse files at this commit

968076f6f3233ba7cd86f166685bcd9429dbd125Ahmet Kaan GümüşParent: 323608a
  • fix
    • the inter-SB partition pin and the new motion_mode refusal literal
Show full message
fix(av1): the inter-SB partition pin and the new motion_mode refusal literal

The hand fixture's superblock value is PARTITION_HORZ, which this branch now
decodes; it stops at the rectangular-inter-residual refusal instead. The new
motion_mode refusal string carried a line continuation, so refusal_inventory's
source grep saw a different literal than the list.
crates/ec-av1/src/decode.rsmodified+7 -2
@@ -14267,7 +14267,7 @@ fn decode_inter_block(
1426714267 (64, 16) => 11,
1426814268 _ => {
1426914269 return Err(unsupported(
14270- "a motion_mode symbol for a block shape this decoder has no CDF row for",
14270+ "a motion_mode symbol for a block shape with no CDF row here",
1427114271 ));
1427214272 }
1427314273 };
@@ -19085,8 +19085,13 @@ mod tests {
1908519085 )
1908619086 .unwrap_err();
1908719087 let msg = err.to_string();
19088+ // lane-inter4 r1: this fixture's SB value is PARTITION_HORZ, now
19089+ // DECODED rather than refused outright; its first 64x32 strip is
19090+ // non-skip, so the named refusal is the rectangular-inter-residual
19091+ // one. Either string proves what the pin was written for: a non-SPLIT
19092+ // superblock never silently decodes as SPLIT.
1908819093 assert!(
19089- msg.contains("SPLIT"),
19094+ msg.contains("SPLIT") || msg.contains("rectangular residual coding"),
1909019095 "expected the named inter-SB-partition refusal, got: {msg}"
1909119096 );
1909219097 }
crates/ec-av1/src/refusal_inventory.rsmodified+1 -1
@@ -72,7 +72,7 @@ const REFUSALS: &[&str] = &[
7272 "filter intra on a HORZ/VERT strip (this decoder predicts square-only)",
7373 "warp prediction with a scaled reference (superres, unimplemented)",
7474 "an 8x8 partition leaf under a scaled reference (superres, unimplemented)",
75- "a motion_mode symbol for a block shape this decoder has no CDF row for",
75+ "a motion_mode symbol for a block shape with no CDF row here",
7676 ];
7777
7878 /// Gates whose `Err` arm turns a decode failure into a printed SKIP rather than
lanes/inter4-r1.report.mdmodified+1 -1
@@ -78,7 +78,7 @@ no rect strip is still required to be pixel-exact.
7878
7979 EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib superblock_level_rect_partition -- --nocapture
8080
81-EVIDENCE: $HOME/.cache/inter4-suite.log + the command above | 16 aomenc encodes, decode + ffmpeg pixel compare | 8-bit: 4 named refusals, 2 pixel-exact attempts carrying the arm, 64x32 strips=4, 32x64 strips=0, 10 out-of-scope (0 mismatched); test result: ok
81+EVIDENCE: $HOME/.cache/inter4-suite.log + `cargo test -p ec-av1 --lib superblock_level_rect_partition` | 16 aomenc encodes, decode + ffmpeg Y/U/V pixel compare over 6 frames each | 8-bit: 4 named refusals, 2 pixel-exact attempts carrying the arm, 64x32 strips=4, 32x64 strips=0, 10 out-of-scope (0 mismatched); gate ok. Full suite at commit 754a7dd: 321 passed / 2 failed / 30 ignored; both failures were stale pins of MINE (the SB refusal string and a line-continuation in a new refusal literal) and are fixed in the follow-up commit -- the suite has NOT been re-run end to end since.
8282
8383 ## Open residue (nothing here is claimed done)
8484