@@ -46,23 +46,10 @@ using namespace std;
46
46
using namespace testing ;
47
47
using namespace perf ;
48
48
49
- #if defined(HAVE_XINE) || \
50
- defined (HAVE_GSTREAMER) || \
51
- defined(HAVE_QUICKTIME) || \
52
- defined(HAVE_QTKIT) || \
53
- defined(HAVE_AVFOUNDATION) || \
54
- defined(HAVE_FFMPEG) || \
55
- defined(WIN32) /* assume that we have ffmpeg */
56
-
57
- # define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
58
- #else
59
- # define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
60
- #endif
61
-
62
49
// ////////////////////////////////////////////////////
63
50
// MOG
64
51
65
- #if BUILD_WITH_VIDEO_INPUT_SUPPORT
52
+ #ifdef HAVE_VIDEO_INPUT
66
53
67
54
DEF_PARAM_TEST (Video_Cn_LearningRate, string, MatCn, double );
68
55
@@ -167,7 +154,7 @@ PERF_TEST_P(Video_Cn_LearningRate, MOG,
167
154
// ////////////////////////////////////////////////////
168
155
// MOG2
169
156
170
- #if BUILD_WITH_VIDEO_INPUT_SUPPORT
157
+ #ifdef HAVE_VIDEO_INPUT
171
158
172
159
DEF_PARAM_TEST (Video_Cn, string, int );
173
160
@@ -324,7 +311,7 @@ PERF_TEST_P(Video_Cn, DISABLED_MOG2,
324
311
// ////////////////////////////////////////////////////
325
312
// MOG2GetBackgroundImage
326
313
327
- #if BUILD_WITH_VIDEO_INPUT_SUPPORT
314
+ #ifdef HAVE_VIDEO_INPUT
328
315
329
316
PERF_TEST_P (Video_Cn, MOG2GetBackgroundImage,
330
317
Combine (Values(" gpu/video/768x576.avi" , " gpu/video/1920x1080.avi" ),
0 commit comments