More strict test for MSMF FOURCC (camera).

pull/24239/head
Alexander Smorkalov 1 year ago
parent d0de575aef
commit 5c9f58e124
  1. 7
      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();
}

Loading…
Cancel
Save