forge
Explore
Log in

Don't you dare go Hollow

Let the leaf8 straddle-sequence test dump its stream (EC_AV1_DUMP)

Browse files at this commit

fd613514e3dfa360994f96a0bb3271bd14dc2a05Ahmet Kaan GümüşParent: cc290f5
  • test
    • let the leaf8 straddle-sequence test dump its stream (EC_AV1_DUMP)
Show full message
test(av1): let the leaf8 straddle-sequence test dump its stream (EC_AV1_DUMP)

Same pattern as the single-frame round-trip test, needed to feed the
sequence's frame 2 to an instrumented aomdec for lane-av1inter8 r4's
real-decoder mv comparison.
crates/ec-av1/src/encode.rsmodified+3 -0
@@ -3459,6 +3459,9 @@ mod tests {
34593459 .collect();
34603460 let encoded = encode_sequence(&pictures, 100, 0.5).unwrap();
34613461 assert_eq!(encoded.frames.len(), 4);
3462+ if let Ok(path) = std::env::var("EC_AV1_DUMP") {
3463+ std::fs::write(&path, &encoded.stream).expect("dump the raw stream");
3464+ }
34623465 let decoded = ffmpeg_decode_sequence(&encoded.stream, width, height, 4);
34633466 assert_eq!(decoded.len(), 4, "decoded frame count");
34643467 for (i, (frame, decoded)) in encoded.frames.iter().zip(&decoded).enumerate() {