forge
Explore
Log in

Don't you dare go Hollow

Drop added comments from ec-h264/ec-h265 test migration (no-comments rule)

Browse files at this commit

b5a0942ee88775b248159a7ae86eb48daa144ca5Ahmet Kaan GümüşParent: 82c21c8
crates/ec-h264/tests/conformance.rsmodified+0 -3
@@ -1,6 +1,5 @@
11 //! JVT conformance: first IDR picture, bit-exact.
22 //!
3-//! Fixtures come from `scripts/fixtures.sh`; a missing one fails.
43 //!
54 //! Oracles, in order of authority:
65 //! 1. The reference decoder YUV that ships with each JVT vector (first
@@ -77,7 +76,6 @@ fn vectors_dir() -> PathBuf {
7776 ec_testkit::fixture("vectors/h264-jvt")
7877 }
7978
80-/// Every vector directory `scripts/fixtures.sh` has populated, in name
8179 /// order.
8280 ///
8381 /// A hand-written list would only ever record what passed on the day it was
@@ -621,7 +619,6 @@ fn corrupt_sweep(bytes: &[u8]) {
621619 // ffmpeg's own decoder as the oracle.
622620 // ---------------------------------------------------------------------------
623621
624-/// Run the pinned ffmpeg, false when it fails.
625622 fn run(args: &[&str]) -> bool {
626623 ec_testkit::ffmpeg()
627624 .args(args)
crates/ec-h264/tests/it/high10.rsmodified+0 -2
@@ -5,8 +5,6 @@
55 //! 1. Committed fixtures in `tests/data/high10/`: tiny libx264 streams with the
66 //! MD5 of ffmpeg's decode beside them, checked on every run with no ffmpeg.
77 //! 2. A sweep that encodes synthetic sources with libx264 (`-profile:v high10`)
8-//! and compares every frame with ffmpeg's decode. It fails when
9-//! ffmpeg or a 10-bit libx264 is absent.
108
119 use std::path::{Path, PathBuf};
1210
crates/ec-h264/tests/it/high422.rsmodified+0 -2
@@ -4,8 +4,6 @@
44 //! scaling matrices, chroma QP offsets, several slices, progressive and
55 //! MBAFF, at 8 and 10 bits.
66 //!
7-//! Every case is generated in the test (no committed binaries). A case fails when
8-//! ffmpeg or the needed libx264 is absent. The 1920x1080 cases are slow enough to be
97 //! opt-in: set `EC_H264_HI422_HD=1` (the lane gate does).
108
119 use std::path::{Path, PathBuf};
crates/ec-h264/tests/it/high422_jvt.rsmodified+0 -2
@@ -5,8 +5,6 @@
55 //! Where the archive carries a reference YUV (Hi422FR10..15) each frame is
66 //! compared to it; the other streams ship only a trace, so every stream is
77 //! also compared frame by frame with ffmpeg's decode (`yuv422p` or
8-//! `yuv422p10le`). Fixtures come from `scripts/fixtures.sh`; a missing set
9-//! fails. The two 1920x1088 field
108 //! streams are slow in a debug build and are skipped there.
119
1210 use std::path::{Path, PathBuf};
crates/ec-h264/tests/it/high444.rsmodified+0 -2
@@ -10,8 +10,6 @@
1010 //! or 512 at 10 bits). Separate colour planes cannot be written by x264; the
1111 //! JVT vectors (`high444_jvt.rs`) cover them.
1212 //!
13-//! Every case is generated in the test (no committed binaries). A case fails when
14-//! ffmpeg or the needed libx264 is absent. The 1280x720 cases are opt-in:
1513 //! set `EC_H264_HI444_HD=1`.
1614
1715 use std::path::{Path, PathBuf};
crates/ec-h264/tests/it/high444_jvt.rsmodified+0 -2
@@ -8,7 +8,6 @@
88 //! the archive ships a reference YUV, that YUV is used instead of / as well as
99 //! ffmpeg; a stream with neither is reported `unchecked` (and counted as a
1010 //! failure only if it also fails to decode). Fixtures live in the gitignored
11-//! root `fixtures/vectors/h264-jvt-hi444`; a missing set fails. Heavy streams are skipped in
1211 //! debug builds.
1312
1413 use std::io::Read;
@@ -255,7 +254,6 @@ fn jvt_hi444_vectors_bit_exact() {
255254 Err(e) => errors.push(e),
256255 }
257256 }
258- // 9-bit streams are left-aligned to 10 bits by us.
259257 let pix = match probe_pix_fmt(path).as_deref() {
260258 Some("gray") => "gray".to_string(),
261259 Some("gray10le" | "gray12le" | "gray9le") => "gray10le".to_string(),
crates/ec-h264/tests/it/interlaced.rsmodified+0 -2
@@ -2,14 +2,12 @@
22 //! macroblock-adaptive frame/field coding (MBAFF), woven into frames.
33 //!
44 //! The authority is the JVT conformance suite: each vector's reference YUV is
5-//! compared frame by frame. Fixtures come from `scripts/fixtures.sh`; a missing one fails.
65
76 use std::path::{Path, PathBuf};
87
98 use ec_core::frame::{Interlace, VideoFrame};
109 use ec_h264::{Decoder, NalOutcome};
1110
12-/// Where a vector lives: the interlaced set (`scripts/fixtures.sh`), or
1311 /// the general JVT set for the few interlaced streams that were fetched first.
1412 fn vector_dir(name: &str) -> PathBuf {
1513 let own = ec_testkit::root()
crates/ec-h264/tests/it/mbaff_x264.rsmodified+0 -2
@@ -4,8 +4,6 @@
44 //! spatial and temporal direct, weighted prediction, the 8x8 transform,
55 //! several slices, and High 10.
66 //!
7-//! Every case is generated in the test (no committed binaries). A case fails when
8-//! ffmpeg or the needed libx264 is absent. The 1920x1080 cases are slow enough to be
97 //! opt-in: set `EC_H264_MBAFF_HD=1` (the lane gate does).
108
119 use std::path::{Path, PathBuf};
crates/ec-h264/tests/it/no_panic.rsmodified+0 -1
@@ -5,7 +5,6 @@
55 //! fixed-seed positions. Every mutant is decoded end to end. An `Err` is fine;
66 //! a panic fails the test.
77 //!
8-//! Fixtures come from `scripts/fixtures.sh`; a missing one fails.
98
109 use std::path::{Path, PathBuf};
1110
crates/ec-h264/tests/it/refusals.rsmodified+0 -1
@@ -292,7 +292,6 @@ fn different_luma_and_chroma_bit_depth_is_refused_by_name() {
292292 }
293293 }
294294
295-/// Every refused vector in the h264-jvt set in `scripts/fixtures.sh`, against the
296295 /// feature it really uses. A vector that starts refusing for another reason,
297296 /// or stops being refused, changes this table and fails the test.
298297 #[test]
crates/ec-h265-syntax/tests/sei_sweep.rsmodified+0 -4
@@ -1,16 +1,12 @@
11 //! The SEI reader over the JCT-VC conformance streams.
22 //!
33 //! Every prefix and suffix SEI NAL unit of every stream must parse without error,
4-//! and the streams that carry a `decoded_picture_hash` are counted. The sweep fails
5-//! when the vectors are absent.
64
75 use std::path::{Path, PathBuf};
86
97 use ec_h265_syntax::nal::split_annex_b;
108 use ec_h265_syntax::sei::{SeiMessage, parse_sei_rbsp};
119
12-/// Every `.bin` or `.bit` stream under `vectors/hevc-jctvc` in the fixtures root, two
13-/// directory levels deep, sorted by path.
1410 fn streams() -> Vec<PathBuf> {
1511 let root = ec_testkit::fixture("vectors/hevc-jctvc");
1612 fn walk(dir: &Path, depth: u32, out: &mut Vec<PathBuf>) {
crates/ec-h265/tests/it/conformance_intra.rsmodified+0 -1
@@ -24,7 +24,6 @@ struct Row {
2424 decode_secs: f64,
2525 }
2626
27-/// The conformance directory under the fixtures root.
2827 fn jctvc_root() -> PathBuf {
2928 ec_testkit::fixture("vectors/hevc-jctvc")
3029 }
crates/ec-h265/tests/it/conformance_rext.rsmodified+0 -2
@@ -1,5 +1,4 @@
11 //! Checks every output picture of each JCT-VC range extension conformance stream
2-//! (`scripts/fixtures.sh`, `vectors/hevc-rext`) against the hash in its decoded picture hash SEI
32 //! (D.3.19), or against the whole-output MD5 of the package when the stream has no hash.
43 //!
54 //! A stream the decoder refuses must be refused by name: the error text has to be one of
@@ -24,7 +23,6 @@ struct Row {
2423 decode_secs: f64,
2524 }
2625
27-/// The conformance directory under the fixtures root.
2826 fn jctvc_root() -> PathBuf {
2927 ec_testkit::fixture("vectors/hevc-rext")
3028 }
crates/ec-h265/tests/it/conformance_rext422.rsmodified+0 -2
@@ -2,8 +2,6 @@
22 //!
33 //! The committed 64x64 stream is decoded by ffmpeg at run time and compared sample for
44 //! sample. The Sony RExt conformance streams and the generated GOP/intra clips live in the
5-//! fixtures (`vectors/hevc-rext`, with the ffmpeg output of each stream under `ref/` or next
6-//! to it); a missing fixture fails, and every present one must decode byte-exactly.
75
86 use std::path::{Path, PathBuf};
97
crates/ec-h265/tests/it/cu_syntax.rsmodified+0 -1
@@ -7,7 +7,6 @@ use ec_h265::dec::Decoder;
77 use std::path::{Path, PathBuf};
88
99 /// The conformance streams: the first `.bin` or `.bit` bitstream of each directory
10-/// under `vectors/hevc-jctvc` in the fixtures root, sorted.
1110 fn streams() -> Vec<PathBuf> {
1211 let root = ec_testkit::fixture("vectors/hevc-jctvc");
1312 fn bitstreams_in(dir: &Path, depth: u32, out: &mut Vec<PathBuf>) {
crates/ec-h265/tests/it/dec_meta.rsmodified+0 -1
@@ -3,7 +3,6 @@
33 //! NAL units (62, 63) and malformed SEI change nothing.
44 //!
55 //! The streams come from `fixtures/vectors/hevc-jctvc`. Without them the tests
6-//! fail when the fixtures are absent.
76
87 use std::path::{Path, PathBuf};
98
crates/ec-h265/tests/it/dec_shell.rsmodified+0 -2
@@ -4,7 +4,6 @@
44 //! The sweep parses every slice of every stream through the picture-management
55 //! path (pixel decode off) and checks the output order against ffprobe. Streams
66 //! whose slices are all intra are also pixel-decoded and compared with ffmpeg's
7-//! output. The sweep fails when the vectors are absent.
87
98 use std::collections::VecDeque;
109 use std::path::{Path, PathBuf};
@@ -294,7 +293,6 @@ fn numbers(text: &[u8]) -> Vec<u64> {
294293 }
295294
296295 /// The conformance streams: the first `.bin` or `.bit` bitstream of each zip's
297-/// directory under `vectors/hevc-jctvc` in the fixtures root, sorted
298296 /// by name. Some zips extract one directory deeper, so two levels are searched.
299297 fn streams() -> Vec<PathBuf> {
300298 let root = ec_testkit::fixture("vectors/hevc-jctvc");
crates/ec-h265/tests/it/real_library.rsmodified+0 -2
@@ -1,5 +1,3 @@
1-//! HEVC clips from the open media: each is decoded, and its output frames are
2-//! compared sample for sample with ffmpeg's own `hevc` decoder at the same pixel format.
31 //!
42 //! Every file either decodes bit-exactly, is refused by name (a pixel format or
53 //! a bit depth outside 4:2:0 8/10-bit, or a decoder refusal that says