diff --git a/crates/ec-h264/tests/conformance.rs b/crates/ec-h264/tests/conformance.rs index 11d0be48..19750f0d 100644 --- a/crates/ec-h264/tests/conformance.rs +++ b/crates/ec-h264/tests/conformance.rs @@ -1,6 +1,5 @@ //! JVT conformance: first IDR picture, bit-exact. //! -//! Fixtures come from `scripts/fixtures.sh`; a missing one fails. //! //! Oracles, in order of authority: //! 1. The reference decoder YUV that ships with each JVT vector (first @@ -77,7 +76,6 @@ fn vectors_dir() -> PathBuf { ec_testkit::fixture("vectors/h264-jvt") } -/// Every vector directory `scripts/fixtures.sh` has populated, in name /// order. /// /// A hand-written list would only ever record what passed on the day it was @@ -621,7 +619,6 @@ fn corrupt_sweep(bytes: &[u8]) { // ffmpeg's own decoder as the oracle. // --------------------------------------------------------------------------- -/// Run the pinned ffmpeg, false when it fails. fn run(args: &[&str]) -> bool { ec_testkit::ffmpeg() .args(args) diff --git a/crates/ec-h264/tests/it/high10.rs b/crates/ec-h264/tests/it/high10.rs index 879d40e8..57823585 100644 --- a/crates/ec-h264/tests/it/high10.rs +++ b/crates/ec-h264/tests/it/high10.rs @@ -5,8 +5,6 @@ //! 1. Committed fixtures in `tests/data/high10/`: tiny libx264 streams with the //! MD5 of ffmpeg's decode beside them, checked on every run with no ffmpeg. //! 2. A sweep that encodes synthetic sources with libx264 (`-profile:v high10`) -//! and compares every frame with ffmpeg's decode. It fails when -//! ffmpeg or a 10-bit libx264 is absent. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/high422.rs b/crates/ec-h264/tests/it/high422.rs index 9a3d0ef5..25aea858 100644 --- a/crates/ec-h264/tests/it/high422.rs +++ b/crates/ec-h264/tests/it/high422.rs @@ -4,8 +4,6 @@ //! scaling matrices, chroma QP offsets, several slices, progressive and //! MBAFF, at 8 and 10 bits. //! -//! Every case is generated in the test (no committed binaries). A case fails when -//! ffmpeg or the needed libx264 is absent. The 1920x1080 cases are slow enough to be //! opt-in: set `EC_H264_HI422_HD=1` (the lane gate does). use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/high422_jvt.rs b/crates/ec-h264/tests/it/high422_jvt.rs index cfb4721f..70b8f6cb 100644 --- a/crates/ec-h264/tests/it/high422_jvt.rs +++ b/crates/ec-h264/tests/it/high422_jvt.rs @@ -5,8 +5,6 @@ //! Where the archive carries a reference YUV (Hi422FR10..15) each frame is //! compared to it; the other streams ship only a trace, so every stream is //! also compared frame by frame with ffmpeg's decode (`yuv422p` or -//! `yuv422p10le`). Fixtures come from `scripts/fixtures.sh`; a missing set -//! fails. The two 1920x1088 field //! streams are slow in a debug build and are skipped there. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/high444.rs b/crates/ec-h264/tests/it/high444.rs index 072c7f85..f001223e 100644 --- a/crates/ec-h264/tests/it/high444.rs +++ b/crates/ec-h264/tests/it/high444.rs @@ -10,8 +10,6 @@ //! or 512 at 10 bits). Separate colour planes cannot be written by x264; the //! JVT vectors (`high444_jvt.rs`) cover them. //! -//! Every case is generated in the test (no committed binaries). A case fails when -//! ffmpeg or the needed libx264 is absent. The 1280x720 cases are opt-in: //! set `EC_H264_HI444_HD=1`. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/high444_jvt.rs b/crates/ec-h264/tests/it/high444_jvt.rs index b23f1cb0..3b541d46 100644 --- a/crates/ec-h264/tests/it/high444_jvt.rs +++ b/crates/ec-h264/tests/it/high444_jvt.rs @@ -8,7 +8,6 @@ //! the archive ships a reference YUV, that YUV is used instead of / as well as //! ffmpeg; a stream with neither is reported `unchecked` (and counted as a //! failure only if it also fails to decode). Fixtures live in the gitignored -//! root `fixtures/vectors/h264-jvt-hi444`; a missing set fails. Heavy streams are skipped in //! debug builds. use std::io::Read; @@ -255,7 +254,6 @@ fn jvt_hi444_vectors_bit_exact() { Err(e) => errors.push(e), } } - // 9-bit streams are left-aligned to 10 bits by us. let pix = match probe_pix_fmt(path).as_deref() { Some("gray") => "gray".to_string(), Some("gray10le" | "gray12le" | "gray9le") => "gray10le".to_string(), diff --git a/crates/ec-h264/tests/it/interlaced.rs b/crates/ec-h264/tests/it/interlaced.rs index eeffd04f..e5a6ff6b 100644 --- a/crates/ec-h264/tests/it/interlaced.rs +++ b/crates/ec-h264/tests/it/interlaced.rs @@ -2,14 +2,12 @@ //! macroblock-adaptive frame/field coding (MBAFF), woven into frames. //! //! The authority is the JVT conformance suite: each vector's reference YUV is -//! compared frame by frame. Fixtures come from `scripts/fixtures.sh`; a missing one fails. use std::path::{Path, PathBuf}; use ec_core::frame::{Interlace, VideoFrame}; use ec_h264::{Decoder, NalOutcome}; -/// Where a vector lives: the interlaced set (`scripts/fixtures.sh`), or /// the general JVT set for the few interlaced streams that were fetched first. fn vector_dir(name: &str) -> PathBuf { let own = ec_testkit::root() diff --git a/crates/ec-h264/tests/it/mbaff_x264.rs b/crates/ec-h264/tests/it/mbaff_x264.rs index 5a692553..302433d6 100644 --- a/crates/ec-h264/tests/it/mbaff_x264.rs +++ b/crates/ec-h264/tests/it/mbaff_x264.rs @@ -4,8 +4,6 @@ //! spatial and temporal direct, weighted prediction, the 8x8 transform, //! several slices, and High 10. //! -//! Every case is generated in the test (no committed binaries). A case fails when -//! ffmpeg or the needed libx264 is absent. The 1920x1080 cases are slow enough to be //! opt-in: set `EC_H264_MBAFF_HD=1` (the lane gate does). use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/no_panic.rs b/crates/ec-h264/tests/it/no_panic.rs index b0027ce5..e2a3f77e 100644 --- a/crates/ec-h264/tests/it/no_panic.rs +++ b/crates/ec-h264/tests/it/no_panic.rs @@ -5,7 +5,6 @@ //! fixed-seed positions. Every mutant is decoded end to end. An `Err` is fine; //! a panic fails the test. //! -//! Fixtures come from `scripts/fixtures.sh`; a missing one fails. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h264/tests/it/refusals.rs b/crates/ec-h264/tests/it/refusals.rs index 59cf4e73..293fd081 100644 --- a/crates/ec-h264/tests/it/refusals.rs +++ b/crates/ec-h264/tests/it/refusals.rs @@ -292,7 +292,6 @@ fn different_luma_and_chroma_bit_depth_is_refused_by_name() { } } -/// Every refused vector in the h264-jvt set in `scripts/fixtures.sh`, against the /// feature it really uses. A vector that starts refusing for another reason, /// or stops being refused, changes this table and fails the test. #[test] diff --git a/crates/ec-h265-syntax/tests/sei_sweep.rs b/crates/ec-h265-syntax/tests/sei_sweep.rs index 2773aa94..e96c8749 100644 --- a/crates/ec-h265-syntax/tests/sei_sweep.rs +++ b/crates/ec-h265-syntax/tests/sei_sweep.rs @@ -1,16 +1,12 @@ //! The SEI reader over the JCT-VC conformance streams. //! //! Every prefix and suffix SEI NAL unit of every stream must parse without error, -//! and the streams that carry a `decoded_picture_hash` are counted. The sweep fails -//! when the vectors are absent. use std::path::{Path, PathBuf}; use ec_h265_syntax::nal::split_annex_b; use ec_h265_syntax::sei::{SeiMessage, parse_sei_rbsp}; -/// Every `.bin` or `.bit` stream under `vectors/hevc-jctvc` in the fixtures root, two -/// directory levels deep, sorted by path. fn streams() -> Vec { let root = ec_testkit::fixture("vectors/hevc-jctvc"); fn walk(dir: &Path, depth: u32, out: &mut Vec) { diff --git a/crates/ec-h265/tests/it/conformance_intra.rs b/crates/ec-h265/tests/it/conformance_intra.rs index 90601919..62b67df6 100644 --- a/crates/ec-h265/tests/it/conformance_intra.rs +++ b/crates/ec-h265/tests/it/conformance_intra.rs @@ -24,7 +24,6 @@ struct Row { decode_secs: f64, } -/// The conformance directory under the fixtures root. fn jctvc_root() -> PathBuf { ec_testkit::fixture("vectors/hevc-jctvc") } diff --git a/crates/ec-h265/tests/it/conformance_rext.rs b/crates/ec-h265/tests/it/conformance_rext.rs index e69259c1..55a994cc 100644 --- a/crates/ec-h265/tests/it/conformance_rext.rs +++ b/crates/ec-h265/tests/it/conformance_rext.rs @@ -1,5 +1,4 @@ //! Checks every output picture of each JCT-VC range extension conformance stream -//! (`scripts/fixtures.sh`, `vectors/hevc-rext`) against the hash in its decoded picture hash SEI //! (D.3.19), or against the whole-output MD5 of the package when the stream has no hash. //! //! A stream the decoder refuses must be refused by name: the error text has to be one of @@ -24,7 +23,6 @@ struct Row { decode_secs: f64, } -/// The conformance directory under the fixtures root. fn jctvc_root() -> PathBuf { ec_testkit::fixture("vectors/hevc-rext") } diff --git a/crates/ec-h265/tests/it/conformance_rext422.rs b/crates/ec-h265/tests/it/conformance_rext422.rs index 9d54be7d..5e4b3e92 100644 --- a/crates/ec-h265/tests/it/conformance_rext422.rs +++ b/crates/ec-h265/tests/it/conformance_rext422.rs @@ -2,8 +2,6 @@ //! //! The committed 64x64 stream is decoded by ffmpeg at run time and compared sample for //! sample. The Sony RExt conformance streams and the generated GOP/intra clips live in the -//! fixtures (`vectors/hevc-rext`, with the ffmpeg output of each stream under `ref/` or next -//! to it); a missing fixture fails, and every present one must decode byte-exactly. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h265/tests/it/cu_syntax.rs b/crates/ec-h265/tests/it/cu_syntax.rs index 5be673ad..cad63cec 100644 --- a/crates/ec-h265/tests/it/cu_syntax.rs +++ b/crates/ec-h265/tests/it/cu_syntax.rs @@ -7,7 +7,6 @@ use ec_h265::dec::Decoder; use std::path::{Path, PathBuf}; /// The conformance streams: the first `.bin` or `.bit` bitstream of each directory -/// under `vectors/hevc-jctvc` in the fixtures root, sorted. fn streams() -> Vec { let root = ec_testkit::fixture("vectors/hevc-jctvc"); fn bitstreams_in(dir: &Path, depth: u32, out: &mut Vec) { diff --git a/crates/ec-h265/tests/it/dec_meta.rs b/crates/ec-h265/tests/it/dec_meta.rs index b5e3d3c5..c7a2bd55 100644 --- a/crates/ec-h265/tests/it/dec_meta.rs +++ b/crates/ec-h265/tests/it/dec_meta.rs @@ -3,7 +3,6 @@ //! NAL units (62, 63) and malformed SEI change nothing. //! //! The streams come from `fixtures/vectors/hevc-jctvc`. Without them the tests -//! fail when the fixtures are absent. use std::path::{Path, PathBuf}; diff --git a/crates/ec-h265/tests/it/dec_shell.rs b/crates/ec-h265/tests/it/dec_shell.rs index f5b4ab84..dfd31621 100644 --- a/crates/ec-h265/tests/it/dec_shell.rs +++ b/crates/ec-h265/tests/it/dec_shell.rs @@ -4,7 +4,6 @@ //! The sweep parses every slice of every stream through the picture-management //! path (pixel decode off) and checks the output order against ffprobe. Streams //! whose slices are all intra are also pixel-decoded and compared with ffmpeg's -//! output. The sweep fails when the vectors are absent. use std::collections::VecDeque; use std::path::{Path, PathBuf}; @@ -294,7 +293,6 @@ fn numbers(text: &[u8]) -> Vec { } /// The conformance streams: the first `.bin` or `.bit` bitstream of each zip's -/// directory under `vectors/hevc-jctvc` in the fixtures root, sorted /// by name. Some zips extract one directory deeper, so two levels are searched. fn streams() -> Vec { let root = ec_testkit::fixture("vectors/hevc-jctvc"); diff --git a/crates/ec-h265/tests/it/real_library.rs b/crates/ec-h265/tests/it/real_library.rs index 293e6f7e..6c939b45 100644 --- a/crates/ec-h265/tests/it/real_library.rs +++ b/crates/ec-h265/tests/it/real_library.rs @@ -1,5 +1,3 @@ -//! HEVC clips from the open media: each is decoded, and its output frames are -//! compared sample for sample with ffmpeg's own `hevc` decoder at the same pixel format. //! //! Every file either decodes bit-exactly, is refused by name (a pixel format or //! a bit depth outside 4:2:0 8/10-bit, or a decoder refusal that says