Skip to content

Commit 9278ed8

Browse files
committed
Merge pull request #3049 from sturkmen72:clean_up_test_data
2 parents 9358d75 + 07a9245 commit 9278ed8

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

modules/cudabgsegm/perf/perf_bgsegm.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace opencv_test { namespace {
5252
DEF_PARAM_TEST(Video_Cn_LearningRate, string, MatCn, double);
5353

5454
PERF_TEST_P(Video_Cn_LearningRate, MOG,
55-
Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"),
55+
Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"),
5656
CUDA_CHANNELS_1_3_4,
5757
Values(0.0, 0.01)))
5858
{
@@ -157,7 +157,7 @@ PERF_TEST_P(Video_Cn_LearningRate, MOG,
157157
DEF_PARAM_TEST(Video_Cn, string, int);
158158

159159
PERF_TEST_P(Video_Cn, DISABLED_MOG2,
160-
Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"),
160+
Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"),
161161
CUDA_CHANNELS_1_3_4))
162162
{
163163
const int numIters = 10;
@@ -312,7 +312,7 @@ PERF_TEST_P(Video_Cn, DISABLED_MOG2,
312312
#ifdef HAVE_VIDEO_INPUT
313313

314314
PERF_TEST_P(Video_Cn, MOG2GetBackgroundImage,
315-
Combine(Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi"),
315+
Combine(Values("cv/video/768x576.avi", "cv/video/1920x1080.avi"),
316316
CUDA_CHANNELS_1_3_4))
317317
{
318318
const string inputFile = perf::TestBase::getDataPath(GET_PARAM(0));

modules/cudacodec/perf/perf_video.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,17 @@
4141
//M*/
4242

4343
#include "perf_precomp.hpp"
44-
#include "opencv2/highgui/highgui_c.h"
45-
#include "opencv2/videoio/videoio_c.h"
44+
#include "opencv2/videoio.hpp"
4645

4746
namespace opencv_test { namespace {
4847

4948
#if defined(HAVE_NVCUVID)
5049

5150
#if defined(HAVE_FFMPEG_WRAPPER) // should this be set in preprocessor or in cvconfig.h
52-
#define VIDEO_SRC Values("gpu/video/768x576.avi", "gpu/video/1920x1080.avi")
51+
#define VIDEO_SRC Values("cv/video/768x576.avi", "cv/video/1920x1080.avi")
5352
#else
54-
// CUDA demuxer has to fall back to ffmpeg to process "gpu/video/768x576.avi"
55-
#define VIDEO_SRC Values( "gpu/video/1920x1080.avi")
53+
// CUDA demuxer has to fall back to ffmpeg to process "cv/video/768x576.avi"
54+
#define VIDEO_SRC Values( "cv/video/1920x1080.avi")
5655
#endif
5756

5857
DEF_PARAM_TEST_1(FileName, string);

modules/cudacodec/test/test_video.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ CUDA_TEST_P(Video, Reader)
5757
{
5858
cv::cuda::setDevice(GET_PARAM(0).deviceID());
5959

60-
// CUDA demuxer has to fall back to ffmpeg to process "gpu/video/768x576.avi"
61-
if (GET_PARAM(1) == "gpu/video/768x576.avi" && !videoio_registry::hasBackend(CAP_FFMPEG))
60+
// CUDA demuxer has to fall back to ffmpeg to process "cv/video/768x576.avi"
61+
if (GET_PARAM(1) == "cv/video/768x576.avi" && !videoio_registry::hasBackend(CAP_FFMPEG))
6262
throw SkipTestException("FFmpeg backend not found");
6363

6464
std::string inputFile = std::string(cvtest::TS::ptr()->get_data_path()) + "../" + GET_PARAM(1);
@@ -125,7 +125,7 @@ CUDA_TEST_P(Video, Writer)
125125

126126
#endif // _WIN32, HAVE_NVCUVENC
127127

128-
#define VIDEO_SRC "gpu/video/768x576.avi", "gpu/video/1920x1080.avi", "highgui/video/big_buck_bunny.avi", \
128+
#define VIDEO_SRC "cv/video/768x576.avi", "cv/video/1920x1080.avi", "highgui/video/big_buck_bunny.avi", \
129129
"highgui/video/big_buck_bunny.h264", "highgui/video/big_buck_bunny.h265", "highgui/video/big_buck_bunny.mpg"
130130
INSTANTIATE_TEST_CASE_P(CUDA_Codec, Video, testing::Combine(
131131
ALL_DEVICES,

modules/cudalegacy/perf/perf_bgsegm.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace opencv_test { namespace {
5656
DEF_PARAM_TEST_1(Video, string);
5757

5858
PERF_TEST_P(Video, FGDStatModel,
59-
Values(string("gpu/video/768x576.avi")))
59+
Values(string("cv/video/768x576.avi")))
6060
{
6161
const int numIters = 10;
6262

@@ -126,7 +126,7 @@ PERF_TEST_P(Video, FGDStatModel,
126126
DEF_PARAM_TEST(Video_Cn_MaxFeatures, string, MatCn, int);
127127

128128
PERF_TEST_P(Video_Cn_MaxFeatures, GMG,
129-
Combine(Values(string("gpu/video/768x576.avi")),
129+
Combine(Values(string("cv/video/768x576.avi")),
130130
CUDA_CHANNELS_1_3_4,
131131
Values(20, 40, 60)))
132132
{

0 commit comments

Comments
 (0)