From 07a92458473465cb36f1ee96f807167bbe9570a4 Mon Sep 17 00:00:00 2001 From: Suleyman TURKMEN Date: Sat, 25 Sep 2021 23:32:14 +0300 Subject: [PATCH] Update perf_video.cpp --- modules/cudabgsegm/perf/perf_bgsegm.cpp | 6 +++--- modules/cudacodec/perf/perf_video.cpp | 9 ++++----- modules/cudacodec/test/test_video.cpp | 6 +++--- modules/cudalegacy/perf/perf_bgsegm.cpp | 4 ++-- 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/modules/cudabgsegm/perf/perf_bgsegm.cpp b/modules/cudabgsegm/perf/perf_bgsegm.cpp index e99c26d56..c37e411fd 100644 --- a/modules/cudabgsegm/perf/perf_bgsegm.cpp +++ b/modules/cudabgsegm/perf/perf_bgsegm.cpp @@ -52,7 +52,7 @@ namespace opencv_test { namespace { DEF_PARAM_TEST(Video_Cn_LearningRate, string, MatCn, double); PERF_TEST_P(Video_Cn_LearningRate, MOG, - Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"), + Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"), CUDA_CHANNELS_1_3_4, Values(0.0, 0.01))) { @@ -157,7 +157,7 @@ PERF_TEST_P(Video_Cn_LearningRate, MOG, DEF_PARAM_TEST(Video_Cn, string, int); PERF_TEST_P(Video_Cn, DISABLED_MOG2, - Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"), + Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"), CUDA_CHANNELS_1_3_4)) { const int numIters = 10; @@ -312,7 +312,7 @@ PERF_TEST_P(Video_Cn, DISABLED_MOG2, #ifdef HAVE_VIDEO_INPUT PERF_TEST_P(Video_Cn, MOG2GetBackgroundImage, - Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"), + Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"), CUDA_CHANNELS_1_3_4)) { const string inputFile = perf::TestBase::getDataPath(GET_PARAM(0)); diff --git a/modules/cudacodec/perf/perf_video.cpp b/modules/cudacodec/perf/perf_video.cpp index 9305b4bdf..712565919 100644 --- a/modules/cudacodec/perf/perf_video.cpp +++ b/modules/cudacodec/perf/perf_video.cpp @@ -41,18 +41,17 @@ //M*/ #include "perf_precomp.hpp" -#include "opencv2/highgui/highgui_c.h" -#include "opencv2/videoio/videoio_c.h" +#include "opencv2/videoio.hpp" namespace opencv_test { namespace { #if defined(HAVE_NVCUVID) #if defined(HAVE_FFMPEG_WRAPPER) // should this be set in preprocessor or in cvconfig.h -#define VIDEO_SRC Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi") +#define VIDEO_SRC Values("cv/video/768x576.avi", "cv/video/1920x1080.avi") #else -// CUDA demuxer has to fall back to ffmpeg to process "gpu/video/768x576.avi" -#define VIDEO_SRC Values( "gpu/video/1920x1080.avi") +// CUDA demuxer has to fall back to ffmpeg to process "cv/video/768x576.avi" +#define VIDEO_SRC Values( "cv/video/1920x1080.avi") #endif DEF_PARAM_TEST_1(FileName, string); diff --git a/modules/cudacodec/test/test_video.cpp b/modules/cudacodec/test/test_video.cpp index 155152860..31a001f9d 100644 --- a/modules/cudacodec/test/test_video.cpp +++ b/modules/cudacodec/test/test_video.cpp @@ -57,8 +57,8 @@ CUDA_TEST_P(Video, Reader) { cv::cuda::setDevice(GET_PARAM(0).deviceID()); - // CUDA demuxer has to fall back to ffmpeg to process "gpu/video/768x576.avi" - if (GET_PARAM(1) == "gpu/video/768x576.avi" && !videoio_registry::hasBackend(CAP_FFMPEG)) + // CUDA demuxer has to fall back to ffmpeg to process "cv/video/768x576.avi" + if (GET_PARAM(1) == "cv/video/768x576.avi" && !videoio_registry::hasBackend(CAP_FFMPEG)) throw SkipTestException("FFmpeg backend not found"); std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "../" + GET_PARAM(1); @@ -125,7 +125,7 @@ CUDA_TEST_P(Video, Writer) #endif // _WIN32, HAVE_NVCUVENC -#define VIDEO_SRC "gpu/video/768x576.avi", "gpu/video/1920x1080.avi", "highgui/video/big_buck_bunny.avi", \ +#define VIDEO_SRC "cv/video/768x576.avi", "cv/video/1920x1080.avi", "highgui/video/big_buck_bunny.avi", \ "highgui/video/big_buck_bunny.h264", "highgui/video/big_buck_bunny.h265", "highgui/video/big_buck_bunny.mpg" INSTANTIATE_TEST_CASE_P(CUDA_Codec, Video, testing::Combine( ALL_DEVICES, diff --git a/modules/cudalegacy/perf/perf_bgsegm.cpp b/modules/cudalegacy/perf/perf_bgsegm.cpp index fb3aabd1d..48d9adb36 100644 --- a/modules/cudalegacy/perf/perf_bgsegm.cpp +++ b/modules/cudalegacy/perf/perf_bgsegm.cpp @@ -56,7 +56,7 @@ namespace opencv_test { namespace { DEF_PARAM_TEST_1(Video, string); PERF_TEST_P(Video, FGDStatModel, - Values(string("gpu/video/768x576.avi"))) + Values(string("cv/video/768x576.avi"))) { const int numIters = 10; @@ -126,7 +126,7 @@ PERF_TEST_P(Video, FGDStatModel, DEF_PARAM_TEST(Video_Cn_MaxFeatures, string, MatCn, int); PERF_TEST_P(Video_Cn_MaxFeatures, GMG, - Combine(Values(string("gpu/video/768x576.avi")), + Combine(Values(string("cv/video/768x576.avi")), CUDA_CHANNELS_1_3_4, Values(20, 40, 60))) {