From 5c9f58e124bc1bc208b47d5745c58291b1a17b16 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Thu, 7 Sep 2023 13:03:41 +0300 Subject: [PATCH] More strict test for MSMF FOURCC (camera). --- modules/videoio/test/test_camera.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/videoio/test/test_camera.cpp b/modules/videoio/test/test_camera.cpp index 8b0f0efe83..4466919f50 100644 --- a/modules/videoio/test/test_camera.cpp +++ b/modules/videoio/test/test_camera.cpp @@ -130,7 +130,12 @@ TEST(DISABLED_videoio_camera, msmf_read_yuyv) std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl; int fourcc = (int)capture.get(CAP_PROP_FOURCC); std::cout << "FOURCC code: " << cv::format("0x%8x", fourcc) << std::endl; - test_readFrames(capture); + cv::Mat frame; + for (int i = 0; i < 10; i++) + { + capture >> frame; + EXPECT_EQ(2, frame.channels()); + } capture.release(); }