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 {
355 show_frame: hdr.show_frame,355 show_frame: hdr.show_frame,
356 key: true,356 key: true,
357 };357 };
358- // [scratch probe] EC_VP9_FORCE_UH / EC_VP9_FORCE_HSZ: override the
359- // uncompressed-header size / header_size_in_bytes split for diagnosis.
360 let ch = read_compressed_header(358 let ch = read_compressed_header(
361 compressed_header_slice(frame, &hdr)?,359 compressed_header_slice(frame, &hdr)?,
362 &mut self.ctx,360 &mut self.ctx,
crates/ec-vp9/src/loopfilter.rsmodified+0 -2
@@ -560,8 +560,6 @@ impl LfGrids {
560 left[i] &= 0xfefefefefefefefe;560 left[i] &= 0xfefefefefefefefe;
561 }561 }
562 }562 }
563- // [scratch] EC_VP9_LFMASKSY: per-superblock luma masks after
564- // `vp9_adjust_mask`, in the oracle's `LFMASKSY` field order.
565 (left, above, int4)563 (left, above, int4)
566 }564 }
567 565
crates/ec-vp9/tests/it/libvpx_vectors.rsmodified+1 -19
@@ -11,7 +11,7 @@
11 //! difference fails the test and is listed by vector name and frame index.11 //! difference fails the test and is listed by vector name and frame index.
12 12
13 use ec_vp9::decode::{Decoder, Picture};13 use ec_vp9::decode::{Decoder, Picture};
14-use std::path::{Path, PathBuf};14+use std::path::PathBuf;
15 15
16 // ------------------------------------------------------------------ MD5 ----16 // ------------------------------------------------------------------ MD5 ----
17 17
@@ -213,19 +213,6 @@ fn check_vector(name: &str, frames: &[&[u8]], expected: &[String]) -> Vec<String
213 match expected.get(shown) {213 match expected.get(shown) {
214 None => problems.push(format!("{name}: extra output frame {shown}")),214 None => problems.push(format!("{name}: extra output frame {shown}")),
215 Some(want) => {215 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- }
229 let got = picture_md5(&pic);216 let got = picture_md5(&pic);
230 if &got != want {217 if &got != want {
231 problems.push(format!("{name}: frame {shown} md5 {got} != {want}"));218 problems.push(format!("{name}: frame {shown} md5 {got} != {want}"));
@@ -270,11 +257,6 @@ fn libvpx_vectors_match_per_frame_md5() {
270 continue;257 continue;
271 }258 }
272 }259 }
273- if let Ok(only) = std::env::var("EC_VP9_ONLY")
274- && !name.contains(&only)
275- {
276- continue;
277- }
278 let vec_path = dir.join(&name);260 let vec_path = dir.join(&name);
279 let data = match std::fs::read(&vec_path) {261 let data = match std::fs::read(&vec_path) {
280 Ok(d) => d,262 Ok(d) => d,
crates/ec-vp9/tests/it/main.rsmodified+0 -13
@@ -4,7 +4,6 @@
4 #![forbid(unsafe_code)]4 #![forbid(unsafe_code)]
5 5
6 mod common;6 mod common;
7-mod dump_probe;
8 mod fuzz_regressions;7 mod fuzz_regressions;
9 mod hbd_exact;8 mod hbd_exact;
10 mod inter_pixels_exact;9 mod inter_pixels_exact;
@@ -15,16 +14,4 @@ mod libvpx_vectors;
15 mod no_panic;14 mod no_panic;
16 mod odd_dimensions_exact;15 mod odd_dimensions_exact;
17 mod scaledref_exact;16 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;
30 mod subsampling_exact;17 mod subsampling_exact;