Drop added comments from ec-h264/ec-h265 test migration (no-comments rule)
Browse files at this commitb5a0942ee88775b248159a7ae86eb48daa144ca5Parent: 82c21c818 changed files +0 -34
- crates/ec-h264/tests/conformance.rs +0 -3
- crates/ec-h264/tests/it/high10.rs +0 -2
- crates/ec-h264/tests/it/high422.rs +0 -2
- crates/ec-h264/tests/it/high422_jvt.rs +0 -2
- crates/ec-h264/tests/it/high444.rs +0 -2
- crates/ec-h264/tests/it/high444_jvt.rs +0 -2
- crates/ec-h264/tests/it/interlaced.rs +0 -2
- crates/ec-h264/tests/it/mbaff_x264.rs +0 -2
- crates/ec-h264/tests/it/no_panic.rs +0 -1
- crates/ec-h264/tests/it/refusals.rs +0 -1
- crates/ec-h265-syntax/tests/sei_sweep.rs +0 -4
- crates/ec-h265/tests/it/conformance_intra.rs +0 -1
- crates/ec-h265/tests/it/conformance_rext.rs +0 -2
- crates/ec-h265/tests/it/conformance_rext422.rs +0 -2
- crates/ec-h265/tests/it/cu_syntax.rs +0 -1
- crates/ec-h265/tests/it/dec_meta.rs +0 -1
- crates/ec-h265/tests/it/dec_shell.rs +0 -2
- crates/ec-h265/tests/it/real_library.rs +0 -2
crates/ec-h264/tests/conformance.rsmodified+0 -3
| @@ -1,6 +1,5 @@ | ||
| 1 | 1 | //! JVT conformance: first IDR picture, bit-exact. |
| 2 | 2 | //! |
| 3 | -//! Fixtures come from `scripts/fixtures.sh`; a missing one fails. | |
| 4 | 3 | //! |
| 5 | 4 | //! Oracles, in order of authority: |
| 6 | 5 | //! 1. The reference decoder YUV that ships with each JVT vector (first |
| @@ -77,7 +76,6 @@ fn vectors_dir() -> PathBuf { | ||
| 77 | 76 | ec_testkit::fixture("vectors/h264-jvt") |
| 78 | 77 | } |
| 79 | 78 | |
| 80 | -/// Every vector directory `scripts/fixtures.sh` has populated, in name | |
| 81 | 79 | /// order. |
| 82 | 80 | /// |
| 83 | 81 | /// A hand-written list would only ever record what passed on the day it was |
| @@ -621,7 +619,6 @@ fn corrupt_sweep(bytes: &[u8]) { | ||
| 621 | 619 | // ffmpeg's own decoder as the oracle. |
| 622 | 620 | // --------------------------------------------------------------------------- |
| 623 | 621 | |
| 624 | -/// Run the pinned ffmpeg, false when it fails. | |
| 625 | 622 | fn run(args: &[&str]) -> bool { |
| 626 | 623 | ec_testkit::ffmpeg() |
| 627 | 624 | .args(args) |
crates/ec-h264/tests/it/high10.rsmodified+0 -2
| @@ -5,8 +5,6 @@ | ||
| 5 | 5 | //! 1. Committed fixtures in `tests/data/high10/`: tiny libx264 streams with the |
| 6 | 6 | //! MD5 of ffmpeg's decode beside them, checked on every run with no ffmpeg. |
| 7 | 7 | //! 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. | |
| 10 | 8 | |
| 11 | 9 | use std::path::{Path, PathBuf}; |
| 12 | 10 |
crates/ec-h264/tests/it/high422.rsmodified+0 -2
| @@ -4,8 +4,6 @@ | ||
| 4 | 4 | //! scaling matrices, chroma QP offsets, several slices, progressive and |
| 5 | 5 | //! MBAFF, at 8 and 10 bits. |
| 6 | 6 | //! |
| 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 | |
| 9 | 7 | //! opt-in: set `EC_H264_HI422_HD=1` (the lane gate does). |
| 10 | 8 | |
| 11 | 9 | use std::path::{Path, PathBuf}; |
crates/ec-h264/tests/it/high422_jvt.rsmodified+0 -2
| @@ -5,8 +5,6 @@ | ||
| 5 | 5 | //! Where the archive carries a reference YUV (Hi422FR10..15) each frame is |
| 6 | 6 | //! compared to it; the other streams ship only a trace, so every stream is |
| 7 | 7 | //! 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 | |
| 10 | 8 | //! streams are slow in a debug build and are skipped there. |
| 11 | 9 | |
| 12 | 10 | use std::path::{Path, PathBuf}; |
crates/ec-h264/tests/it/high444.rsmodified+0 -2
| @@ -10,8 +10,6 @@ | ||
| 10 | 10 | //! or 512 at 10 bits). Separate colour planes cannot be written by x264; the |
| 11 | 11 | //! JVT vectors (`high444_jvt.rs`) cover them. |
| 12 | 12 | //! |
| 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: | |
| 15 | 13 | //! set `EC_H264_HI444_HD=1`. |
| 16 | 14 | |
| 17 | 15 | use std::path::{Path, PathBuf}; |
crates/ec-h264/tests/it/high444_jvt.rsmodified+0 -2
| @@ -8,7 +8,6 @@ | ||
| 8 | 8 | //! the archive ships a reference YUV, that YUV is used instead of / as well as |
| 9 | 9 | //! ffmpeg; a stream with neither is reported `unchecked` (and counted as a |
| 10 | 10 | //! 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 | |
| 12 | 11 | //! debug builds. |
| 13 | 12 | |
| 14 | 13 | use std::io::Read; |
| @@ -255,7 +254,6 @@ fn jvt_hi444_vectors_bit_exact() { | ||
| 255 | 254 | Err(e) => errors.push(e), |
| 256 | 255 | } |
| 257 | 256 | } |
| 258 | - // 9-bit streams are left-aligned to 10 bits by us. | |
| 259 | 257 | let pix = match probe_pix_fmt(path).as_deref() { |
| 260 | 258 | Some("gray") => "gray".to_string(), |
| 261 | 259 | Some("gray10le" | "gray12le" | "gray9le") => "gray10le".to_string(), |
crates/ec-h264/tests/it/interlaced.rsmodified+0 -2
| @@ -2,14 +2,12 @@ | ||
| 2 | 2 | //! macroblock-adaptive frame/field coding (MBAFF), woven into frames. |
| 3 | 3 | //! |
| 4 | 4 | //! 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. | |
| 6 | 5 | |
| 7 | 6 | use std::path::{Path, PathBuf}; |
| 8 | 7 | |
| 9 | 8 | use ec_core::frame::{Interlace, VideoFrame}; |
| 10 | 9 | use ec_h264::{Decoder, NalOutcome}; |
| 11 | 10 | |
| 12 | -/// Where a vector lives: the interlaced set (`scripts/fixtures.sh`), or | |
| 13 | 11 | /// the general JVT set for the few interlaced streams that were fetched first. |
| 14 | 12 | fn vector_dir(name: &str) -> PathBuf { |
| 15 | 13 | let own = ec_testkit::root() |
crates/ec-h264/tests/it/mbaff_x264.rsmodified+0 -2
| @@ -4,8 +4,6 @@ | ||
| 4 | 4 | //! spatial and temporal direct, weighted prediction, the 8x8 transform, |
| 5 | 5 | //! several slices, and High 10. |
| 6 | 6 | //! |
| 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 | |
| 9 | 7 | //! opt-in: set `EC_H264_MBAFF_HD=1` (the lane gate does). |
| 10 | 8 | |
| 11 | 9 | use std::path::{Path, PathBuf}; |
crates/ec-h264/tests/it/no_panic.rsmodified+0 -1
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | //! fixed-seed positions. Every mutant is decoded end to end. An `Err` is fine; |
| 6 | 6 | //! a panic fails the test. |
| 7 | 7 | //! |
| 8 | -//! Fixtures come from `scripts/fixtures.sh`; a missing one fails. | |
| 9 | 8 | |
| 10 | 9 | use std::path::{Path, PathBuf}; |
| 11 | 10 |
crates/ec-h264/tests/it/refusals.rsmodified+0 -1
| @@ -292,7 +292,6 @@ fn different_luma_and_chroma_bit_depth_is_refused_by_name() { | ||
| 292 | 292 | } |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | -/// Every refused vector in the h264-jvt set in `scripts/fixtures.sh`, against the | |
| 296 | 295 | /// feature it really uses. A vector that starts refusing for another reason, |
| 297 | 296 | /// or stops being refused, changes this table and fails the test. |
| 298 | 297 | #[test] |
crates/ec-h265-syntax/tests/sei_sweep.rsmodified+0 -4
| @@ -1,16 +1,12 @@ | ||
| 1 | 1 | //! The SEI reader over the JCT-VC conformance streams. |
| 2 | 2 | //! |
| 3 | 3 | //! 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. | |
| 6 | 4 | |
| 7 | 5 | use std::path::{Path, PathBuf}; |
| 8 | 6 | |
| 9 | 7 | use ec_h265_syntax::nal::split_annex_b; |
| 10 | 8 | use ec_h265_syntax::sei::{SeiMessage, parse_sei_rbsp}; |
| 11 | 9 | |
| 12 | -/// Every `.bin` or `.bit` stream under `vectors/hevc-jctvc` in the fixtures root, two | |
| 13 | -/// directory levels deep, sorted by path. | |
| 14 | 10 | fn streams() -> Vec<PathBuf> { |
| 15 | 11 | let root = ec_testkit::fixture("vectors/hevc-jctvc"); |
| 16 | 12 | 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 { | ||
| 24 | 24 | decode_secs: f64, |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | -/// The conformance directory under the fixtures root. | |
| 28 | 27 | fn jctvc_root() -> PathBuf { |
| 29 | 28 | ec_testkit::fixture("vectors/hevc-jctvc") |
| 30 | 29 | } |
crates/ec-h265/tests/it/conformance_rext.rsmodified+0 -2
| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | //! 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 | |
| 3 | 2 | //! (D.3.19), or against the whole-output MD5 of the package when the stream has no hash. |
| 4 | 3 | //! |
| 5 | 4 | //! A stream the decoder refuses must be refused by name: the error text has to be one of |
| @@ -24,7 +23,6 @@ struct Row { | ||
| 24 | 23 | decode_secs: f64, |
| 25 | 24 | } |
| 26 | 25 | |
| 27 | -/// The conformance directory under the fixtures root. | |
| 28 | 26 | fn jctvc_root() -> PathBuf { |
| 29 | 27 | ec_testkit::fixture("vectors/hevc-rext") |
| 30 | 28 | } |
crates/ec-h265/tests/it/conformance_rext422.rsmodified+0 -2
| @@ -2,8 +2,6 @@ | ||
| 2 | 2 | //! |
| 3 | 3 | //! The committed 64x64 stream is decoded by ffmpeg at run time and compared sample for |
| 4 | 4 | //! 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. | |
| 7 | 5 | |
| 8 | 6 | use std::path::{Path, PathBuf}; |
| 9 | 7 |
crates/ec-h265/tests/it/cu_syntax.rsmodified+0 -1
| @@ -7,7 +7,6 @@ use ec_h265::dec::Decoder; | ||
| 7 | 7 | use std::path::{Path, PathBuf}; |
| 8 | 8 | |
| 9 | 9 | /// The conformance streams: the first `.bin` or `.bit` bitstream of each directory |
| 10 | -/// under `vectors/hevc-jctvc` in the fixtures root, sorted. | |
| 11 | 10 | fn streams() -> Vec<PathBuf> { |
| 12 | 11 | let root = ec_testkit::fixture("vectors/hevc-jctvc"); |
| 13 | 12 | 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 @@ | ||
| 3 | 3 | //! NAL units (62, 63) and malformed SEI change nothing. |
| 4 | 4 | //! |
| 5 | 5 | //! The streams come from `fixtures/vectors/hevc-jctvc`. Without them the tests |
| 6 | -//! fail when the fixtures are absent. | |
| 7 | 6 | |
| 8 | 7 | use std::path::{Path, PathBuf}; |
| 9 | 8 |
crates/ec-h265/tests/it/dec_shell.rsmodified+0 -2
| @@ -4,7 +4,6 @@ | ||
| 4 | 4 | //! The sweep parses every slice of every stream through the picture-management |
| 5 | 5 | //! path (pixel decode off) and checks the output order against ffprobe. Streams |
| 6 | 6 | //! whose slices are all intra are also pixel-decoded and compared with ffmpeg's |
| 7 | -//! output. The sweep fails when the vectors are absent. | |
| 8 | 7 | |
| 9 | 8 | use std::collections::VecDeque; |
| 10 | 9 | use std::path::{Path, PathBuf}; |
| @@ -294,7 +293,6 @@ fn numbers(text: &[u8]) -> Vec<u64> { | ||
| 294 | 293 | } |
| 295 | 294 | |
| 296 | 295 | /// The conformance streams: the first `.bin` or `.bit` bitstream of each zip's |
| 297 | -/// directory under `vectors/hevc-jctvc` in the fixtures root, sorted | |
| 298 | 296 | /// by name. Some zips extract one directory deeper, so two levels are searched. |
| 299 | 297 | fn streams() -> Vec<PathBuf> { |
| 300 | 298 | 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. | |
| 3 | 1 | //! |
| 4 | 2 | //! Every file either decodes bit-exactly, is refused by name (a pixel format or |
| 5 | 3 | //! a bit depth outside 4:2:0 8/10-bit, or a decoder refusal that says |