1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #24239 from asmorkalov:as/msmf_returned_fourcc

More strict test for MSMF FOURCC (camera)
This commit is contained in:
Alexander Smorkalov
2023-09-11 11:00:54 +03:00
committed by GitHub
+6 -1
View File
@@ -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();
}