More strict test for MSMF FOURCC (camera).

This commit is contained in:
Alexander Smorkalov 2023-09-07 13:03:41 +03:00
parent d0de575aef
commit 5c9f58e124

View File

@ -130,7 +130,12 @@ TEST(DISABLED_videoio_camera, msmf_read_yuyv)
std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl; std::cout << "Capturing FPS: " << capture.get(CAP_PROP_FPS) << std::endl;
int fourcc = (int)capture.get(CAP_PROP_FOURCC); int fourcc = (int)capture.get(CAP_PROP_FOURCC);
std::cout << "FOURCC code: " << cv::format("0x%8x", fourcc) << std::endl; 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(); capture.release();
} }