forge
Explore
Log in

Don't you dare go Hollow

U4: ec-vp9 delete scratch/probe tests, dump_probe, the transform scratch probe, EC_VP9_DUMP/EC_VP9_ONLY gates and their scratch comments

Browse files at this commit

f37b96791bb2c429bef3a2fa99d7ba9b46487d9fAhmet Kaan GümüşParent: 289e243
crates/ec-vp9/src/decode.rsmodified+0 -2
@@ -355,8 +355,6 @@ impl Decoder {
355355 show_frame: hdr.show_frame,
356356 key: true,
357357 };
358- // [scratch probe] EC_VP9_FORCE_UH / EC_VP9_FORCE_HSZ: override the
359- // uncompressed-header size / header_size_in_bytes split for diagnosis.
360358 let ch = read_compressed_header(
361359 compressed_header_slice(frame, &hdr)?,
362360 &mut self.ctx,
crates/ec-vp9/src/loopfilter.rsmodified+0 -2
@@ -560,8 +560,6 @@ impl LfGrids {
560560 left[i] &= 0xfefefefefefefefe;
561561 }
562562 }
563- // [scratch] EC_VP9_LFMASKSY: per-superblock luma masks after
564- // `vp9_adjust_mask`, in the oracle's `LFMASKSY` field order.
565563 (left, above, int4)
566564 }
567565
crates/ec-vp9/tests/it/libvpx_vectors.rsmodified+1 -19
@@ -11,7 +11,7 @@
1111 //! difference fails the test and is listed by vector name and frame index.
1212
1313 use ec_vp9::decode::{Decoder, Picture};
14-use std::path::{Path, PathBuf};
14+use std::path::PathBuf;
1515
1616 // ------------------------------------------------------------------ MD5 ----
1717
@@ -213,19 +213,6 @@ fn check_vector(name: &str, frames: &[&[u8]], expected: &[String]) -> Vec<String
213213 match expected.get(shown) {
214214 None => problems.push(format!("{name}: extra output frame {shown}")),
215215 Some(want) => {
216- if let Some(d) = std::env::var_os("EC_VP9_DUMP") {
217- let mut raw = Vec::new();
218- for plane in [&pic.y, &pic.u, &pic.v] {
219- for &s in plane.iter() {
220- if pic.bit_depth > 8 {
221- raw.extend_from_slice(&s.to_le_bytes());
222- } else {
223- raw.push(s as u8);
224- }
225- }
226- }
227- let _ = std::fs::write(Path::new(&d).join(format!("{name}.{shown}.yuv")), raw);
228- }
229216 let got = picture_md5(&pic);
230217 if &got != want {
231218 problems.push(format!("{name}: frame {shown} md5 {got} != {want}"));
@@ -270,11 +257,6 @@ fn libvpx_vectors_match_per_frame_md5() {
270257 continue;
271258 }
272259 }
273- if let Ok(only) = std::env::var("EC_VP9_ONLY")
274- && !name.contains(&only)
275- {
276- continue;
277- }
278260 let vec_path = dir.join(&name);
279261 let data = match std::fs::read(&vec_path) {
280262 Ok(d) => d,
crates/ec-vp9/tests/it/main.rsmodified+0 -13
@@ -4,7 +4,6 @@
44 #![forbid(unsafe_code)]
55
66 mod common;
7-mod dump_probe;
87 mod fuzz_regressions;
98 mod hbd_exact;
109 mod inter_pixels_exact;
@@ -15,16 +14,4 @@ mod libvpx_vectors;
1514 mod no_panic;
1615 mod odd_dimensions_exact;
1716 mod scaledref_exact;
18-mod scratch_bool;
19-mod scratch_err;
20-mod scratch_hdr2;
21-mod scratch_hdr3;
22-mod scratch_hdr;
23-mod scratch_lfdump;
24-mod scratch_lossless;
25-mod scratch_pixdump10;
26-mod scratch_pixdump;
27-mod scratch_realsweep;
28-mod scratch_tiledbg;
29-mod scratch_tok;
3017 mod subsampling_exact;