diff --git a/crates/ec-hw/examples/hw_decode.rs b/crates/ec-hw/examples/hw_decode.rs index 1a49dc33..1a69046d 100644 --- a/crates/ec-hw/examples/hw_decode.rs +++ b/crates/ec-hw/examples/hw_decode.rs @@ -2,7 +2,6 @@ //! The 10-bit H.265 and AV1 streams run on Vulkan and are compared with the VA-API decode of the same stream. //! //! ```text -//! cargo run -p ec-hw --example hw_decode //! ``` use std::collections::HashSet; diff --git a/crates/ec-hw/examples/hw_decode_rgb.rs b/crates/ec-hw/examples/hw_decode_rgb.rs index da83a48d..f02a2f39 100644 --- a/crates/ec-hw/examples/hw_decode_rgb.rs +++ b/crates/ec-hw/examples/hw_decode_rgb.rs @@ -3,7 +3,6 @@ //! Streams are assumed untagged, so the matrix is BT.709 from 720 lines up and BT.601 below. //! //! ```text -//! cargo run --release -p ec-hw --example hw_decode_rgb //! ``` use std::fs; diff --git a/crates/ec-hw/examples/hw_parity.rs b/crates/ec-hw/examples/hw_parity.rs index be37871c..ca73fe40 100644 --- a/crates/ec-hw/examples/hw_parity.rs +++ b/crates/ec-hw/examples/hw_parity.rs @@ -3,7 +3,6 @@ //! Every encode and decode runs in a child process of this binary, because the driver's state outlives a display: within one process the same encode lands at different sizes depending on what ran before it. //! //! ```text -//! cargo run --release -p ec-hw --example hw_parity //! ``` use std::fmt::Display; diff --git a/crates/ec-hw/tests/gpu.rs b/crates/ec-hw/tests/gpu.rs index b4fa6245..32f30614 100644 --- a/crates/ec-hw/tests/gpu.rs +++ b/crates/ec-hw/tests/gpu.rs @@ -2,7 +2,6 @@ //! //! They are not `#[ignore]`d — a hardware crate whose tests do not touch the //! hardware tests nothing — but they *skip* (print and return) when there is no -//! VA display. Missing fixtures and ffmpeg fail. //! //! The oracle is ffmpeg's software decoder: every fixture is decoded here and //! by `ffmpeg -f rawvideo`, and the two are compared frame by frame. @@ -1007,7 +1006,6 @@ fn av1_encode_agrees_between_two_decoders() { // encoder does not serve his files. // --------------------------------------------------------------------------- -/// A 10-bit gradient with real dynamic range: 64..940 across the frame with a moving highlight, so the /// stream is neither flat nor 8-bit content dressed up as 10. fn source_frame_16(width: u32, height: u32, t: u32) -> I420_16 { let (w, h) = (width as usize, height as usize); @@ -1040,8 +1038,6 @@ fn source_frame_16(width: u32, height: u32, t: u32) -> I420_16 { f } -/// The 10-bit source the 10-bit gates encode, and the y4m every reference -/// encoder and every PSNR reads. fn ten_bit_source(dir: &Path, frames: u32) -> (String, PathBuf, Vec) { let y4m = dir.join("source-10bit.y4m"); let (w, h) = (1920u32, 1024u32); @@ -1654,7 +1650,6 @@ fn raw_frames(y4m: &Path, width: u32, height: u32, frames: u32) -> Option Vec<(&'static str, PathBuf)> { vec![ ("sintel 1080p", ec_testkit::fixture("open/sintel_trailer-1080p.mp4")), @@ -1958,8 +1953,6 @@ fn elementary(path: &Path, codec: Codec, frames: usize) -> Option> { (!out.stdout.is_empty()).then_some(out.stdout) } -/// Decode the open trailers and the 10-bit HEVC clip and compare with ffmpeg, -/// per file. #[test] fn real_library_spot_check() { let Some(display) = display() else { return }; @@ -2062,7 +2055,6 @@ fn plane_psnr(a: &[u16], b: &[u16], peak: f64) -> f64 { } } -/// P010 correctness on the 10-bit HEVC clip, plane by plane. /// /// `real_library_spot_check` already pins the whole-frame PSNR at >= 40 dB /// for a mix of files; this isolates Y from U/V on this specific 10-bit film, diff --git a/crates/ec-hw/tests/intra_rate.rs b/crates/ec-hw/tests/intra_rate.rs index 26d5bafd..6990bb7e 100644 --- a/crates/ec-hw/tests/intra_rate.rs +++ b/crates/ec-hw/tests/intra_rate.rs @@ -69,7 +69,6 @@ fn scratch() -> PathBuf { dir } -/// The testsrc2 clip as raw 4:2:0, generated by ffmpeg. fn testsrc2_raw(dir: &Path) -> PathBuf { let path = dir.join("testsrc2-720p.yuv"); let status = ec_testkit::ffmpeg() diff --git a/tools/ec-bench/src/main.rs b/tools/ec-bench/src/main.rs index 87f99abb..5ac6f3aa 100644 --- a/tools/ec-bench/src/main.rs +++ b/tools/ec-bench/src/main.rs @@ -80,7 +80,6 @@ fn fixtures() -> PathBuf { Path::new(env!("CARGO_MANIFEST_DIR")).join("../../fixtures") } -/// The open clip the bench uses as the source for a codec. fn real_video(codec: &str) -> Option { let name = match codec { "h264" => "open/sintel_trailer-1080p.mp4",