From 82cde78566da21b7efae64bbd87076a4cf2012ea 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 04:41:17 +0300 Subject: [PATCH] ec-av1: drop stale references to removed skip env vars and library_fixture helpers in comments; no doc comments in real_library --- crates/ec-av1/src/encoder/tests.rs | 24 ------------------------ crates/ec-av1/src/stream/mod.rs | 9 ++++----- crates/ec-av1/tests/real_library.rs | 13 ------------- 3 files changed, 4 insertions(+), 42 deletions(-) diff --git a/crates/ec-av1/src/encoder/tests.rs b/crates/ec-av1/src/encoder/tests.rs index 60cde6c0..c0b7fac1 100644 --- a/crates/ec-av1/src/encoder/tests.rs +++ b/crates/ec-av1/src/encoder/tests.rs @@ -668,16 +668,6 @@ /// to this facade's own input size, and re-coded through the facade so the /// rate-target surface is exercised at the entry point a caller actually /// drives. - /// - /// lane-av1clipprobe: the ABSENCE of this clip used to be a bare - /// `clip.exists()` -> `None`, and every caller turned that into a `SKIP` - /// line and a return -- so a tree with no root `fixtures/` printed - /// `SKIP the 1080p tile round trip: no fixture` and libtest reported `ok`: - /// green with nothing asserted, and no env that made it RED. The presence - /// check now lives in the crate's one library-fixture probe - /// (`library_fixture::require_at`), which fails under `EC_REQUIRE_FIXTURES` / - /// `EC_AV1_REQUIRE_FFMPEG` / `EC_AV1_REQUIRE_AOMENC` and otherwise prints - /// that ONE line. fn h264_clip_frames( width: usize, height: usize, @@ -3636,20 +3626,6 @@ /// first-differing-luma-sample comparison, not a length or non-empty /// smoke. /// - /// The two skippable halves both route through the crate's EXISTING - /// presence probes, not a new shape: `h264_clip_frames` (which itself asks - /// `have_ffmpeg()` and `library_fixture::require_at`) and `have_ffmpeg()` - /// for the ffmpeg arm. No bare presence check was added. - /// - /// lane-av1clipprobe: with the root `fixtures/` absent this gate printed - /// `SKIP the 1080p tile round trip: no fixture` and libtest reported `ok` - /// — a 1080p gate that asserts nothing on every linked worktree, and no - /// env that made it RED. `library_fixture::require_at` now fails under - /// `EC_REQUIRE_FIXTURES` / `EC_AV1_REQUIRE_FFMPEG` / `EC_AV1_REQUIRE_AOMENC` - /// and otherwise prints exactly ONE line naming the resolved path, and the - /// path it resolves honours `EC_FIXTURES` — the root - /// `scripts/verify-fixture-library.sh` validates — so the preflight's - /// verdict and these bytes cannot be different trees again. #[test] fn a_1080p_multi_tile_stream_decodes_sample_exact_through_both_decoders() { let _knobs = crate::speed::knob_read(); diff --git a/crates/ec-av1/src/stream/mod.rs b/crates/ec-av1/src/stream/mod.rs index e8e565fe..d63c7432 100644 --- a/crates/ec-av1/src/stream/mod.rs +++ b/crates/ec-av1/src/stream/mod.rs @@ -1997,11 +1997,10 @@ fn decode_frame( // lane-gm r2 STEP-8 ATTEMPT (reverted): removing this refusal // exposed a real pixel mismatch -- // a_real_aomenc_stream_with_interintra_wedge_decodes_pixel_exact - // seed 43, frame 1 luma, with EC_WEDGE_GATE_ATTEMPTS=20 - // EC_AV1_REQUIRE_AOMENC=1 -- so the single-ref/compound MV wiring - // is not yet provably correct end to end; keeping the refusal - // until that seed is captured (EC_AV1_GATE_DUMP), self-pinned, and - // root-caused rather than shipping a wrong decode. + // seed 43, frame 1 luma, with EC_WEDGE_GATE_ATTEMPTS=20 -- so the + // single-ref/compound MV wiring is not yet provably correct end to end; + // keeping the refusal until that seed is root-caused rather than + // shipping a wrong decode. // // lane-gm r3 ROOT CAUSE (pinned, range-ladder-confirmed, still not // fixed): the mismatch is NOT an mv/mvstack/entropy bug -- msac diff --git a/crates/ec-av1/tests/real_library.rs b/crates/ec-av1/tests/real_library.rs index 0c446ea0..d474843c 100644 --- a/crates/ec-av1/tests/real_library.rs +++ b/crates/ec-av1/tests/real_library.rs @@ -1,17 +1,11 @@ -//! The open-media AV1 check: the first `FRAMES` shown pictures of the sintel -//! trailer as an SVT-AV1 IVF stream are decoded and compared sample for sample with -//! ffmpeg's `libdav1d` decoder. - use std::io::Read; use std::path::{Path, PathBuf}; use std::process::{Child, ChildStdout, Stdio}; use ec_av1::encode::Picture; -/// Shown pictures compared per file. const FRAMES: usize = 300; -/// Pixel formats inside the decoder's scope: 4:2:0 at 8 or 10 bits. const IN_SCOPE_PIX_FMTS: [&str; 2] = ["yuv420p", "yuv420p10le"]; fn scratch(tag: &str) -> PathBuf { @@ -21,7 +15,6 @@ fn scratch(tag: &str) -> PathBuf { dir } -/// One input clip: the columns the sweep reads. struct Entry { path: PathBuf, container: String, @@ -40,8 +33,6 @@ fn open_entries() -> Vec { }] } -/// The planes of a picture as the bytes of a planar rawvideo frame: one byte per -/// sample at 8 bits, little-endian u16 above. fn frame_bytes(pic: &Picture, bps: usize) -> Vec { let mut out = Vec::with_capacity((pic.y.len() + pic.u.len() + pic.v.len()) * bps); for plane in [&pic.y, &pic.u, &pic.v] { @@ -56,7 +47,6 @@ fn frame_bytes(pic: &Picture, bps: usize) -> Vec { out } -/// Where byte `offset` of a frame lies: plane name, x and y in that plane. fn locate(offset: usize, bps: usize, pic: &Picture) -> (&'static str, usize, usize) { let s = offset / bps; let (w, cw) = (pic.width, pic.u.len() / pic.height.div_ceil(2).max(1)); @@ -72,7 +62,6 @@ fn locate(offset: usize, bps: usize, pic: &Picture) -> (&'static str, usize, usi } } -/// Running comparison of decoded frames against the oracle's rawvideo stream. struct Sweep { out: ChildStdout, child: Child, @@ -149,7 +138,6 @@ fn short_name(path: &Path) -> String { .unwrap_or_default() } -/// Extracts the first `FRAMES` pictures of the video as a low-overhead OBU stream. fn extract(src: &Path, dst: &Path) -> bool { ec_testkit::ffmpeg() .args(["-v", "error", "-y", "-i"]) @@ -169,7 +157,6 @@ fn extract(src: &Path, dst: &Path) -> bool { .is_ok_and(|s| s.success()) } -/// Decodes one OBU stream and compares it with ffmpeg's libdav1d output. fn sweep_file(es: &Path, pix_fmt: &str, bit_depth: u32) -> Result { let bps = if bit_depth > 8 { 2 } else { 1 }; let mut child = ec_testkit::ffmpeg()