forge
Explore
Log in

Don't you dare go Hollow

Restore ec-hw gpu.rs, fixtures.sha256, video.sh to simplify/w0 exactly

Browse files at this commit

52d836819dacf0ab52025f961453df79b31b8bb4Ahmet Kaan GümüşParent: 0a2e69b
crates/ec-hw/tests/gpu.rsmodified+4 -4
@@ -1312,7 +1312,7 @@ fn av1_encode_rate_control_lands() {
13121312 }
13131313 for (mode_name, mode, ask) in [
13141314 ("CBR", RateControlMode::ConstantBitrate, Ask::Within(0.15)),
1315- ("VBR", RateControlMode::VariableBitrate, Ask::Within(0.25)),
1315+ ("VBR", RateControlMode::VariableBitrate, Ask::Ceiling),
13161316 ("QVBR", RateControlMode::Qvbr { quality: 100 }, Ask::Ceiling),
13171317 ] {
13181318 let mut table: Vec<(u32, f64, f64)> = Vec::new();
@@ -1608,7 +1608,7 @@ fn ffmpeg_psnr(coded: &Path, source: &Path, raw_obu: bool) -> Option<f64> {
16081608 fn extract_y4m(source: &Path, out: &Path, width: u32, height: u32, frames: u32) -> bool {
16091609 let _ = std::fs::remove_file(out);
16101610 ec_testkit::ffmpeg()
1611- .args(["-nostdin", "-v", "error", "-y", "-ss", "60", "-i"])
1611+ .args(["-nostdin", "-v", "error", "-y", "-ss", "20", "-i"])
16121612 .arg(source)
16131613 .args([
16141614 "-frames:v",
@@ -2154,7 +2154,7 @@ fn sdr_h264_colour_never_panics() {
21542154 #[test]
21552155 fn hevc_seek_matches_linear_mkv() {
21562156 let Some(display) = display() else { return };
2157- let path = ec_testkit::fixture("bitstreams/test_hevc.mkv");
2157+ let path = ec_testkit::fixture("video/hevc-open-gop.mkv");
21582158 let data = elementary(&path, Codec::H265, 45).expect("elementary stream");
21592159 let units = split_access_units(&data, Codec::H265);
21602160
@@ -2224,7 +2224,7 @@ fn hevc_seek_matches_linear_mkv() {
22242224 #[test]
22252225 fn h264_seek_matches_linear_open_gop() {
22262226 let Some(display) = display() else { return };
2227- let path = ec_testkit::fixture("bitstreams/h264-open-gop.mp4");
2227+ let path = ec_testkit::fixture("video/h264-open-gop.mp4");
22282228 let data = elementary(&path, Codec::H264, 60).expect("elementary stream");
22292229 let units = split_access_units(&data, Codec::H264);
22302230
scripts/fixtures.d/video.shmodified+1 -0
@@ -25,6 +25,7 @@ fam_video() {
2525 esac
2626 done
2727 mk video/h264-open-gop.mp4 -f lavfi -i "testsrc2=size=320x240:rate=30:duration=4" -pix_fmt yuv420p -c:v libx264 -threads 1 -x264-params keyint=30:min-keyint=30:open-gop=1:bframes=3:b-pyramid=normal:scenecut=0:cpu-independent=1
28+ mk video/hevc-open-gop.mkv -f lavfi -i "testsrc2=size=320x240:rate=30:duration=3" -pix_fmt yuv420p -c:v libx265 -preset ultrafast -x265-params log-level=error:$X265P:keyint=30:min-keyint=30:open-gop=1:bframes=3:scenecut=0
2829 }
2930
3031 fam_bitstreams() {
scripts/fixtures.sha256modified+1 -0
@@ -3011,6 +3011,7 @@ c1e93e01b7af301010b92d4bbdc81bd2c182d18724e5b0773ad0f5beaf61baf7 video/hevc-108
30113011 f43cbaba04c680eac3a966693faec2ab356ea22caa49387327d58170ce3935f9 video/hevc-1080p-60-8bit.mp4
30123012 661639622969568fe49ffb2d93291ccf4fe9d0ef528aef95ea2f379edb7ae0f2 video/hevc-1916x1080-23.976-8bit.mp4
30133013 8b763b1ea4bbb042e4b4b38a6c3d121c8dfb329cb88deb470a3585bfc4e3f9f2 video/hevc-2160p-23.976-8bit.mp4
3014+8fe61853d3e164cde86db5056a97cde4962048dbb06ffcc7761d03d9c1151c78 video/hevc-open-gop.mkv
30143015 473bf16c9820c891c39881f8732dd62fb50b7ccf38a9cbabd2558e79a53647ee video/vp9-1080p-23.976-10bit.mkv
30153016 7e387390d992335750c0148572ec69f9cb90a0b738a2fdc551c75bca5dc78201 video/vp9-1080p-23.976-10bit.mp4
30163017 3c5a5e03f2d6294a80d08fdb79ae98a0affbbc7abeea7122f1638a416363fe46 video/vp9-1080p-23.976-8bit.mkv