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() {
1312 }1312 }
1313 for (mode_name, mode, ask) in [1313 for (mode_name, mode, ask) in [
1314 ("CBR", RateControlMode::ConstantBitrate, Ask::Within(0.15)),1314 ("CBR", RateControlMode::ConstantBitrate, Ask::Within(0.15)),
1315- ("VBR", RateControlMode::VariableBitrate, Ask::Within(0.25)),1315+ ("VBR", RateControlMode::VariableBitrate, Ask::Ceiling),
1316 ("QVBR", RateControlMode::Qvbr { quality: 100 }, Ask::Ceiling),1316 ("QVBR", RateControlMode::Qvbr { quality: 100 }, Ask::Ceiling),
1317 ] {1317 ] {
1318 let mut table: Vec<(u32, f64, f64)> = Vec::new();1318 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> {
1608 fn extract_y4m(source: &Path, out: &Path, width: u32, height: u32, frames: u32) -> bool {1608 fn extract_y4m(source: &Path, out: &Path, width: u32, height: u32, frames: u32) -> bool {
1609 let _ = std::fs::remove_file(out);1609 let _ = std::fs::remove_file(out);
1610 ec_testkit::ffmpeg()1610 ec_testkit::ffmpeg()
1611- .args(["-nostdin", "-v", "error", "-y", "-ss", "60", "-i"])1611+ .args(["-nostdin", "-v", "error", "-y", "-ss", "20", "-i"])
1612 .arg(source)1612 .arg(source)
1613 .args([1613 .args([
1614 "-frames:v",1614 "-frames:v",
@@ -2154,7 +2154,7 @@ fn sdr_h264_colour_never_panics() {
2154 #[test]2154 #[test]
2155 fn hevc_seek_matches_linear_mkv() {2155 fn hevc_seek_matches_linear_mkv() {
2156 let Some(display) = display() else { return };2156 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");
2158 let data = elementary(&path, Codec::H265, 45).expect("elementary stream");2158 let data = elementary(&path, Codec::H265, 45).expect("elementary stream");
2159 let units = split_access_units(&data, Codec::H265);2159 let units = split_access_units(&data, Codec::H265);
2160 2160
@@ -2224,7 +2224,7 @@ fn hevc_seek_matches_linear_mkv() {
2224 #[test]2224 #[test]
2225 fn h264_seek_matches_linear_open_gop() {2225 fn h264_seek_matches_linear_open_gop() {
2226 let Some(display) = display() else { return };2226 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");
2228 let data = elementary(&path, Codec::H264, 60).expect("elementary stream");2228 let data = elementary(&path, Codec::H264, 60).expect("elementary stream");
2229 let units = split_access_units(&data, Codec::H264);2229 let units = split_access_units(&data, Codec::H264);
2230 2230
scripts/fixtures.d/video.shmodified+1 -0
@@ -25,6 +25,7 @@ fam_video() {
25 esac25 esac
26 done26 done
27 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=127 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
28 }29 }
29 30
30 fam_bitstreams() {31 fam_bitstreams() {
scripts/fixtures.sha256modified+1 -0
@@ -3011,6 +3011,7 @@ c1e93e01b7af301010b92d4bbdc81bd2c182d18724e5b0773ad0f5beaf61baf7 video/hevc-108
3011 f43cbaba04c680eac3a966693faec2ab356ea22caa49387327d58170ce3935f9 video/hevc-1080p-60-8bit.mp43011 f43cbaba04c680eac3a966693faec2ab356ea22caa49387327d58170ce3935f9 video/hevc-1080p-60-8bit.mp4
3012 661639622969568fe49ffb2d93291ccf4fe9d0ef528aef95ea2f379edb7ae0f2 video/hevc-1916x1080-23.976-8bit.mp43012 661639622969568fe49ffb2d93291ccf4fe9d0ef528aef95ea2f379edb7ae0f2 video/hevc-1916x1080-23.976-8bit.mp4
3013 8b763b1ea4bbb042e4b4b38a6c3d121c8dfb329cb88deb470a3585bfc4e3f9f2 video/hevc-2160p-23.976-8bit.mp43013 8b763b1ea4bbb042e4b4b38a6c3d121c8dfb329cb88deb470a3585bfc4e3f9f2 video/hevc-2160p-23.976-8bit.mp4
3014+8fe61853d3e164cde86db5056a97cde4962048dbb06ffcc7761d03d9c1151c78 video/hevc-open-gop.mkv
3014 473bf16c9820c891c39881f8732dd62fb50b7ccf38a9cbabd2558e79a53647ee video/vp9-1080p-23.976-10bit.mkv3015 473bf16c9820c891c39881f8732dd62fb50b7ccf38a9cbabd2558e79a53647ee video/vp9-1080p-23.976-10bit.mkv
3015 7e387390d992335750c0148572ec69f9cb90a0b738a2fdc551c75bca5dc78201 video/vp9-1080p-23.976-10bit.mp43016 7e387390d992335750c0148572ec69f9cb90a0b738a2fdc551c75bca5dc78201 video/vp9-1080p-23.976-10bit.mp4
3016 3c5a5e03f2d6294a80d08fdb79ae98a0affbbc7abeea7122f1638a416363fe46 video/vp9-1080p-23.976-8bit.mkv3017 3c5a5e03f2d6294a80d08fdb79ae98a0affbbc7abeea7122f1638a416363fe46 video/vp9-1080p-23.976-8bit.mkv