wave-3c-a: route the lm444loss-corr gate's oracle arm through aomdec_available
Browse files at this commitd48c08a53634a85ffa218a07f1fe96917fe2379bParent: 3bf8d881 changed file +17 -8
- crates/ec-av1/src/stream.rs +17 -8
crates/ec-av1/src/stream.rsmodified+17 -8
| @@ -7266,9 +7266,18 @@ pub(crate) mod tests { | ||
| 7266 | 7266 | "{NAME}: U extent must be luma-sized at 4:4:4 -- the replay steps mi \ |
| 7267 | 7267 | cells through this grid" |
| 7268 | 7268 | ); |
| 7269 | - assert_eq!(f.v.len(), W * H, "{NAME}: V extent must be luma-sized at 4:4:4"); | |
| 7269 | + assert_eq!( | |
| 7270 | + f.v.len(), | |
| 7271 | + W * H, | |
| 7272 | + "{NAME}: V extent must be luma-sized at 4:4:4" | |
| 7273 | + ); | |
| 7270 | 7274 | } |
| 7271 | - if aomdec_path().is_file() { | |
| 7275 | + // lane-3c-a: the oracle-presence scan (wave 3b, 7a865ee7) rejects a | |
| 7276 | + // bare `aomdec_path().is_file()` outside the probe that owns it -- this | |
| 7277 | + // gate would otherwise report green under EC_AV1_REQUIRE_AOMENC=1 with | |
| 7278 | + // the pixel compare never run. `aomdec_available` carries both the | |
| 7279 | + // env-escape assertion and the SKIP line, so the else-arm is dropped. | |
| 7280 | + if aomdec_available(NAME) { | |
| 7272 | 7281 | let (decoded, hidden) = decode_all_frames_vs_oracle(&stream, NAME); |
| 7273 | 7282 | assert_eq!( |
| 7274 | 7283 | decoded, FRAMES, |
| @@ -7278,17 +7287,17 @@ pub(crate) mod tests { | ||
| 7278 | 7287 | "{NAME}: {decoded} frames byte-exact vs aomdec ({hidden} hidden), \ |
| 7279 | 7288 | {walked} lossless chroma replays" |
| 7280 | 7289 | ); |
| 7281 | - } else { | |
| 7282 | - eprintln!( | |
| 7283 | - "SKIP {NAME} aomdec arm: no oracle aomdec at {}", | |
| 7284 | - aomdec_path().display() | |
| 7285 | - ); | |
| 7286 | 7290 | } |
| 7287 | 7291 | |
| 7288 | 7292 | // Control: whole square blocks have no multi-unit plane block to step. |
| 7289 | 7293 | let ctrl = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR")) |
| 7290 | 7294 | .join("fixtures/ll444_128root_lossless.obu"); |
| 7291 | - let ctrl_stream = read_pin(&ctrl, 63429, 0xf07d_47fc_fd51_2658, &format!("{NAME} control")); | |
| 7295 | + let ctrl_stream = read_pin( | |
| 7296 | + &ctrl, | |
| 7297 | + 63429, | |
| 7298 | + 0xf07d_47fc_fd51_2658, | |
| 7299 | + &format!("{NAME} control"), | |
| 7300 | + ); | |
| 7292 | 7301 | crate::decode::reset_intrabc_rect_lossless_chroma4_hits(); |
| 7293 | 7302 | let _ = decode_stream(&ctrl_stream) |
| 7294 | 7303 | .unwrap_or_else(|e| panic!("{NAME}: the control arm no longer decodes cleanly: {e}")); |