mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 08:44:11 +08:00
Merge pull request #3052 from kuloPo-com:fix-cudacodec-perf_video.cpp
This commit is contained in:
@@ -140,7 +140,7 @@ PERF_TEST_P(FileName, VideoWriter, VIDEO_SRC)
|
|||||||
ASSERT_FALSE(frame.empty());
|
ASSERT_FALSE(frame.empty());
|
||||||
|
|
||||||
if (!writer.isOpened())
|
if (!writer.isOpened())
|
||||||
writer.open(outputFile, CV_FOURCC('X', 'V', 'I', 'D'), FPS, frame.size());
|
writer.open(outputFile, VideoWriter::fourcc('X', 'V', 'I', 'D'), FPS, frame.size());
|
||||||
|
|
||||||
startTimer(); next();
|
startTimer(); next();
|
||||||
writer.write(frame);
|
writer.write(frame);
|
||||||
|
Reference in New Issue
Block a user