Merge pull request #22942 from alalek:videoio_test_update_hw_checks
authorAlexander Alekhin <alexander.a.alekhin@gmail.com>
Mon, 12 Dec 2022 12:38:14 +0000 (15:38 +0300)
committerGitHub <noreply@github.com>
Mon, 12 Dec 2022 12:38:14 +0000 (12:38 +0000)
* videoio(test): update PSNR check for H264/265

* videoio(test): reduce size for ffmpeg tests on 32-bit platforms

modules/videoio/test/test_ffmpeg.cpp
modules/videoio/test/test_video_io.cpp

index 5fb50ef4e4e214a2274e5ebe2fec707621920dc8..e60b1b69d995167da04ddb8a53532f6de2dc478e 100644 (file)
@@ -55,7 +55,11 @@ TEST_P(videoio_ffmpeg, write_big)
     remove(filename.c_str());
 }
 
+#if defined(OPENCV_32BIT_CONFIGURATION)
+static const Size bigSize(1920, 1080);
+#else
 static const Size bigSize(4096, 4096);
+#endif
 
 const FourCC_Ext_Size entries[] =
 {
index 3df9d82aad53a3c21852f75cb7bb1edf658bfe6f..63f48fbf9b2e366a6659e9059290c22e0e9cd915 100644 (file)
@@ -793,8 +793,8 @@ static const VideoCaptureAccelerationInput hw_filename[] = {
         { "sample_322x242_15frames.yuv420p.libxvid.mp4", 28.0 },
         { "sample_322x242_15frames.yuv420p.mjpeg.mp4", 20.0 },
         { "sample_322x242_15frames.yuv420p.mpeg2video.mp4", 24.0 },  // GSTREAMER on Ubuntu 18.04
-        { "sample_322x242_15frames.yuv420p.libx264.mp4", 23.0 },  // D3D11 on GHA/Windows, GSTREAMER on Ubuntu 18.04
-        { "sample_322x242_15frames.yuv420p.libx265.mp4", 23.0 },  // D3D11 on GHA/Windows
+        { "sample_322x242_15frames.yuv420p.libx264.mp4", 20.0 },  // 20 - D3D11 (i7-11800H), 23 - D3D11 on GHA/Windows, GSTREAMER on Ubuntu 18.04
+        { "sample_322x242_15frames.yuv420p.libx265.mp4", 20.0 },  // 20 - D3D11 (i7-11800H), 23 - D3D11 on GHA/Windows
         { "sample_322x242_15frames.yuv420p.libvpx-vp9.mp4", 30.0 },
         { "sample_322x242_15frames.yuv420p.libaom-av1.mp4", 30.0 }
 };