mirror of
https://github.com/opencv/opencv.git
synced 2024-12-26 18:58:16 +08:00
f76dd99299
Conflicts: cmake/OpenCVModule.cmake doc/tutorials/calib3d/camera_calibration/camera_calibration.rst doc/tutorials/features2d/feature_detection/feature_detection.rst doc/tutorials/features2d/feature_flann_matcher/feature_flann_matcher.rst doc/tutorials/features2d/feature_homography/feature_homography.rst modules/core/include/opencv2/core/operations.hpp modules/core/src/arithm.cpp modules/gpu/perf/perf_video.cpp modules/imgproc/include/opencv2/imgproc/imgproc.hpp modules/java/generator/gen_java.py modules/java/generator/src/cpp/VideoCapture.cpp modules/nonfree/src/opencl/surf.cl modules/ocl/include/opencv2/ocl/ocl.hpp modules/ocl/perf/perf_haar.cpp modules/ocl/perf/perf_precomp.hpp modules/ocl/src/color.cpp modules/ocl/src/filtering.cpp modules/ocl/test/test_color.cpp modules/ocl/test/test_objdetect.cpp modules/python/src2/cv2.cpp samples/gpu/CMakeLists.txt samples/gpu/super_resolution.cpp
90 lines
2.3 KiB
C++
90 lines
2.3 KiB
C++
#ifdef __GNUC__
|
|
# pragma GCC diagnostic ignored "-Wmissing-declarations"
|
|
# if defined __clang__ || defined __APPLE__
|
|
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
|
# pragma GCC diagnostic ignored "-Wextra"
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
|
|
|
#include <iostream>
|
|
#include "opencv2/ts.hpp"
|
|
#include "opencv2/imgproc.hpp"
|
|
#include "opencv2/highgui.hpp"
|
|
#include "opencv2/imgproc/imgproc_c.h"
|
|
|
|
#include "opencv2/core/private.hpp"
|
|
|
|
#if defined(HAVE_DSHOW) || \
|
|
defined(HAVE_TYZX) || \
|
|
defined(HAVE_VFW) || \
|
|
defined(HAVE_LIBV4L) || \
|
|
(defined(HAVE_CAMV4L) && defined(HAVE_CAMV4L2)) || \
|
|
defined(HAVE_GSTREAMER) || \
|
|
defined(HAVE_DC1394_2) || \
|
|
defined(HAVE_DC1394) || \
|
|
defined(HAVE_CMU1394) || \
|
|
defined(HAVE_MIL) || \
|
|
defined(HAVE_QUICKTIME) || \
|
|
defined(HAVE_QTKIT) || \
|
|
defined(HAVE_UNICAP) || \
|
|
defined(HAVE_PVAPI) || \
|
|
defined(HAVE_OPENNI) || \
|
|
defined(HAVE_XIMEA) || \
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
defined(HAVE_GIGE_API) || \
|
|
(0)
|
|
//defined(HAVE_ANDROID_NATIVE_CAMERA) || - enable after #1193
|
|
# define BUILD_WITH_CAMERA_SUPPORT 1
|
|
#else
|
|
# define BUILD_WITH_CAMERA_SUPPORT 0
|
|
#endif
|
|
|
|
#if defined(HAVE_XINE) || \
|
|
defined(HAVE_GSTREAMER) || \
|
|
defined(HAVE_QUICKTIME) || \
|
|
defined(HAVE_QTKIT) || \
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
/*defined(HAVE_OPENNI) || too specialized */ \
|
|
defined(HAVE_FFMPEG) || \
|
|
defined(HAVE_MSMF)
|
|
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
|
|
#else
|
|
# define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
|
|
#endif
|
|
|
|
#if /*defined(HAVE_XINE) || */\
|
|
defined(HAVE_GSTREAMER) || \
|
|
defined(HAVE_QUICKTIME) || \
|
|
defined(HAVE_QTKIT) || \
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
defined(HAVE_FFMPEG) || \
|
|
defined(HAVE_MSMF)
|
|
# define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 1
|
|
#else
|
|
# define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 0
|
|
#endif
|
|
|
|
namespace cvtest
|
|
{
|
|
|
|
string fourccToString(int fourcc);
|
|
|
|
struct VideoFormat
|
|
{
|
|
VideoFormat() { fourcc = -1; }
|
|
VideoFormat(const string& _ext, int _fourcc) : ext(_ext), fourcc(_fourcc) {}
|
|
bool empty() const { return ext.empty(); }
|
|
|
|
string ext;
|
|
int fourcc;
|
|
};
|
|
|
|
extern const VideoFormat g_specific_fmt_list[];
|
|
|
|
}
|
|
|
|
#endif
|