2 # pragma GCC diagnostic ignored "-Wmissing-declarations"
3 # if defined __clang__ || defined __APPLE__
4 # pragma GCC diagnostic ignored "-Wmissing-prototypes"
5 # pragma GCC diagnostic ignored "-Wextra"
9 #ifndef __OPENCV_PERF_PRECOMP_HPP__
10 #define __OPENCV_PERF_PRECOMP_HPP__
12 #include "opencv2/ts/ts.hpp"
13 #include "opencv2/highgui/highgui.hpp"
15 #ifdef GTEST_CREATE_SHARED_LIBRARY
16 #error no modules except ts should have GTEST_CREATE_SHARED_LIBRARY defined
19 #if defined(HAVE_XINE) || \
20 defined(HAVE_GSTREAMER) || \
21 defined(HAVE_QUICKTIME) || \
22 defined(HAVE_AVFOUNDATION) || \
23 defined(HAVE_FFMPEG) || \
25 /*defined(HAVE_OPENNI) too specialized */ \
27 # define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
29 # define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
32 #if /*defined(HAVE_XINE) || */\
33 defined(HAVE_GSTREAMER) || \
34 defined(HAVE_QUICKTIME) || \
35 defined(HAVE_AVFOUNDATION) || \
36 defined(HAVE_FFMPEG) || \
38 # define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 1
40 # define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 0