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(
14267 (64, 16) => 11,14267 (64, 16) => 11,
14268 _ => {14268 _ => {
14269 return Err(unsupported(14269 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",
14271 ));14271 ));
14272 }14272 }
14273 };14273 };
@@ -19085,8 +19085,13 @@ mod tests {
19085 )19085 )
19086 .unwrap_err();19086 .unwrap_err();
19087 let msg = err.to_string();19087 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.
19088 assert!(19093 assert!(
19089- msg.contains("SPLIT"),19094+ msg.contains("SPLIT") || msg.contains("rectangular residual coding"),
19090 "expected the named inter-SB-partition refusal, got: {msg}"19095 "expected the named inter-SB-partition refusal, got: {msg}"
19091 );19096 );
19092 }19097 }
crates/ec-av1/src/refusal_inventory.rsmodified+1 -1
@@ -72,7 +72,7 @@ const REFUSALS: &[&str] = &[
72 "filter intra on a HORZ/VERT strip (this decoder predicts square-only)",72 "filter intra on a HORZ/VERT strip (this decoder predicts square-only)",
73 "warp prediction with a scaled reference (superres, unimplemented)",73 "warp prediction with a scaled reference (superres, unimplemented)",
74 "an 8x8 partition leaf under a scaled reference (superres, unimplemented)",74 "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",
76 ];76 ];
77 77
78 /// Gates whose `Err` arm turns a decode failure into a printed SKIP rather than78 /// 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.
78 78
79 EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib superblock_level_rect_partition -- --nocapture79 EC_AV1_REQUIRE_AOMENC=1 cargo test -p ec-av1 --lib superblock_level_rect_partition -- --nocapture
80 80
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: ok81+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.
82 82
83 ## Open residue (nothing here is claimed done)83 ## Open residue (nothing here is claimed done)
84 84