|
|
|
@ -1011,10 +1011,6 @@ struct H264ToH265 : SetDevice
@@ -1011,10 +1011,6 @@ struct H264ToH265 : SetDevice
|
|
|
|
|
{ |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
#if defined(WIN32) // remove when FFmpeg wrapper includes PR25874
|
|
|
|
|
#define WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
CUDA_TEST_P(H264ToH265, Transcode) |
|
|
|
|
{ |
|
|
|
|
const std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "../highgui/video/big_buck_bunny.h264"; |
|
|
|
@ -1054,10 +1050,8 @@ CUDA_TEST_P(H264ToH265, Transcode)
@@ -1054,10 +1050,8 @@ CUDA_TEST_P(H264ToH265, Transcode)
|
|
|
|
|
for (int i = 0; i < nFrames; ++i) { |
|
|
|
|
cap >> frame; |
|
|
|
|
ASSERT_FALSE(frame.empty()); |
|
|
|
|
#if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE) |
|
|
|
|
const int pts = static_cast<int>(cap.get(CAP_PROP_PTS)); |
|
|
|
|
ASSERT_EQ(i, pts > 0 ? pts : 0); // FFmpeg back end returns dts if pts is zero.
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ASSERT_EQ(0, remove(outputFile.c_str())); |
|
|
|
@ -1201,10 +1195,8 @@ CUDA_TEST_P(Write, Writer)
@@ -1201,10 +1195,8 @@ CUDA_TEST_P(Write, Writer)
|
|
|
|
|
for (int i = 0; i < nFrames; ++i) { |
|
|
|
|
cap >> frame; |
|
|
|
|
ASSERT_FALSE(frame.empty()); |
|
|
|
|
#if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE) |
|
|
|
|
const int pts = static_cast<int>(cap.get(CAP_PROP_PTS)); |
|
|
|
|
ASSERT_EQ(i, pts > 0 ? pts : 0); // FFmpeg back end returns dts if pts is zero.
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
ASSERT_EQ(0, remove(outputFile.c_str())); |
|
|
|
@ -1299,10 +1291,8 @@ CUDA_TEST_P(EncoderParams, Writer)
@@ -1299,10 +1291,8 @@ CUDA_TEST_P(EncoderParams, Writer)
|
|
|
|
|
const bool keyFrameActual = capRaw.get(CAP_PROP_LRF_HAS_KEY_FRAME) == 1.0; |
|
|
|
|
const bool keyFrameReference = i % idrPeriod == 0; |
|
|
|
|
ASSERT_EQ(keyFrameActual, keyFrameReference); |
|
|
|
|
#if !defined(WIN32_WAIT_FOR_FFMPEG_WRAPPER_UPDATE) |
|
|
|
|
const int pts = static_cast<int>(cap.get(CAP_PROP_PTS)); |
|
|
|
|
ASSERT_EQ(i, pts > 0 ? pts : 0); // FFmpeg back end returns dts if pts is zero.
|
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|