From f37b96791bb2c429bef3a2fa99d7ba9b46487d9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 13:34:56 +0300 Subject: [PATCH] U4: ec-vp9 delete scratch/probe tests, dump_probe, the transform scratch probe, EC_VP9_DUMP/EC_VP9_ONLY gates and their scratch comments --- crates/ec-vp9/src/decode.rs | 2 -- crates/ec-vp9/src/loopfilter.rs | 2 -- crates/ec-vp9/tests/it/libvpx_vectors.rs | 20 +------------------- crates/ec-vp9/tests/it/main.rs | 13 ------------- 4 files changed, 1 insertion(+), 36 deletions(-) diff --git a/crates/ec-vp9/src/decode.rs b/crates/ec-vp9/src/decode.rs index b4ed9f58..b84f64a2 100644 --- a/crates/ec-vp9/src/decode.rs +++ b/crates/ec-vp9/src/decode.rs @@ -355,8 +355,6 @@ impl Decoder { show_frame: hdr.show_frame, key: true, }; - // [scratch probe] EC_VP9_FORCE_UH / EC_VP9_FORCE_HSZ: override the - // uncompressed-header size / header_size_in_bytes split for diagnosis. let ch = read_compressed_header( compressed_header_slice(frame, &hdr)?, &mut self.ctx, diff --git a/crates/ec-vp9/src/loopfilter.rs b/crates/ec-vp9/src/loopfilter.rs index 8f2af9b7..a7d66a92 100644 --- a/crates/ec-vp9/src/loopfilter.rs +++ b/crates/ec-vp9/src/loopfilter.rs @@ -560,8 +560,6 @@ impl LfGrids { left[i] &= 0xfefefefefefefefe; } } - // [scratch] EC_VP9_LFMASKSY: per-superblock luma masks after - // `vp9_adjust_mask`, in the oracle's `LFMASKSY` field order. (left, above, int4) } diff --git a/crates/ec-vp9/tests/it/libvpx_vectors.rs b/crates/ec-vp9/tests/it/libvpx_vectors.rs index a3426bd7..371e33f8 100644 --- a/crates/ec-vp9/tests/it/libvpx_vectors.rs +++ b/crates/ec-vp9/tests/it/libvpx_vectors.rs @@ -11,7 +11,7 @@ //! difference fails the test and is listed by vector name and frame index. use ec_vp9::decode::{Decoder, Picture}; -use std::path::{Path, PathBuf}; +use std::path::PathBuf; // ------------------------------------------------------------------ MD5 ---- @@ -213,19 +213,6 @@ fn check_vector(name: &str, frames: &[&[u8]], expected: &[String]) -> Vec problems.push(format!("{name}: extra output frame {shown}")), Some(want) => { - if let Some(d) = std::env::var_os("EC_VP9_DUMP") { - let mut raw = Vec::new(); - for plane in [&pic.y, &pic.u, &pic.v] { - for &s in plane.iter() { - if pic.bit_depth > 8 { - raw.extend_from_slice(&s.to_le_bytes()); - } else { - raw.push(s as u8); - } - } - } - let _ = std::fs::write(Path::new(&d).join(format!("{name}.{shown}.yuv")), raw); - } let got = picture_md5(&pic); if &got != want { problems.push(format!("{name}: frame {shown} md5 {got} != {want}")); @@ -270,11 +257,6 @@ fn libvpx_vectors_match_per_frame_md5() { continue; } } - if let Ok(only) = std::env::var("EC_VP9_ONLY") - && !name.contains(&only) - { - continue; - } let vec_path = dir.join(&name); let data = match std::fs::read(&vec_path) { Ok(d) => d, diff --git a/crates/ec-vp9/tests/it/main.rs b/crates/ec-vp9/tests/it/main.rs index 586489ef..7cbd6994 100644 --- a/crates/ec-vp9/tests/it/main.rs +++ b/crates/ec-vp9/tests/it/main.rs @@ -4,7 +4,6 @@ #![forbid(unsafe_code)] mod common; -mod dump_probe; mod fuzz_regressions; mod hbd_exact; mod inter_pixels_exact; @@ -15,16 +14,4 @@ mod libvpx_vectors; mod no_panic; mod odd_dimensions_exact; mod scaledref_exact; -mod scratch_bool; -mod scratch_err; -mod scratch_hdr2; -mod scratch_hdr3; -mod scratch_hdr; -mod scratch_lfdump; -mod scratch_lossless; -mod scratch_pixdump10; -mod scratch_pixdump; -mod scratch_realsweep; -mod scratch_tiledbg; -mod scratch_tok; mod subsampling_exact;