2012-06-08 22:54:17 +08:00
|
|
|
#ifdef __GNUC__
|
|
|
|
# pragma GCC diagnostic ignored "-Wmissing-declarations"
|
2012-11-09 15:29:52 +08:00
|
|
|
# if defined __clang__ || defined __APPLE__
|
2012-10-25 00:36:30 +08:00
|
|
|
# pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
|
|
|
# pragma GCC diagnostic ignored "-Wextra"
|
|
|
|
# endif
|
2012-06-08 22:54:17 +08:00
|
|
|
#endif
|
|
|
|
|
2011-02-10 04:55:11 +08:00
|
|
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
|
|
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
|
|
|
|
2013-03-15 00:10:54 +08:00
|
|
|
#include <iostream>
|
2013-03-13 20:22:44 +08:00
|
|
|
#include "opencv2/ts.hpp"
|
|
|
|
#include "opencv2/imgproc.hpp"
|
2014-07-04 22:48:15 +08:00
|
|
|
#include "opencv2/imgcodecs.hpp"
|
2013-04-08 02:45:38 +08:00
|
|
|
#include "opencv2/highgui.hpp"
|
2011-06-01 22:23:55 +08:00
|
|
|
#include "opencv2/imgproc/imgproc_c.h"
|
2011-02-10 04:55:11 +08:00
|
|
|
|
2013-04-01 21:29:10 +08:00
|
|
|
#include "opencv2/core/private.hpp"
|
|
|
|
|
2013-04-03 09:01:20 +08:00
|
|
|
#if defined(HAVE_DSHOW) || \
|
2012-04-30 22:33:52 +08:00
|
|
|
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) || \
|
2013-08-14 19:40:50 +08:00
|
|
|
defined(HAVE_QTKIT) || \
|
2012-04-30 22:33:52 +08:00
|
|
|
defined(HAVE_UNICAP) || \
|
|
|
|
defined(HAVE_PVAPI) || \
|
|
|
|
defined(HAVE_OPENNI) || \
|
|
|
|
defined(HAVE_XIMEA) || \
|
|
|
|
defined(HAVE_AVFOUNDATION) || \
|
2013-04-03 09:01:20 +08:00
|
|
|
defined(HAVE_GIGE_API) || \
|
2013-12-13 21:25:16 +08:00
|
|
|
defined(HAVE_INTELPERC) || \
|
2012-04-30 22:33:52 +08:00
|
|
|
(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) || \
|
2013-08-14 19:40:50 +08:00
|
|
|
defined(HAVE_QTKIT) || \
|
2012-04-30 22:33:52 +08:00
|
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
|
|
/*defined(HAVE_OPENNI) || too specialized */ \
|
2013-05-19 04:04:31 +08:00
|
|
|
defined(HAVE_FFMPEG) || \
|
|
|
|
defined(HAVE_MSMF)
|
2012-04-30 22:33:52 +08:00
|
|
|
# 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) || \
|
2013-08-14 19:40:50 +08:00
|
|
|
defined(HAVE_QTKIT) || \
|
2012-04-30 22:33:52 +08:00
|
|
|
defined(HAVE_AVFOUNDATION) || \
|
2013-05-19 04:04:31 +08:00
|
|
|
defined(HAVE_FFMPEG) || \
|
|
|
|
defined(HAVE_MSMF)
|
2012-04-30 22:33:52 +08:00
|
|
|
# define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 1
|
|
|
|
#else
|
|
|
|
# define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
namespace cvtest
|
|
|
|
{
|
|
|
|
|
|
|
|
string fourccToString(int fourcc);
|
2012-06-08 22:54:17 +08:00
|
|
|
|
2012-04-30 22:33:52 +08:00
|
|
|
struct VideoFormat
|
|
|
|
{
|
|
|
|
VideoFormat() { fourcc = -1; }
|
|
|
|
VideoFormat(const string& _ext, int _fourcc) : ext(_ext), fourcc(_fourcc) {}
|
|
|
|
bool empty() const { return ext.empty(); }
|
2012-06-08 22:54:17 +08:00
|
|
|
|
2012-04-30 22:33:52 +08:00
|
|
|
string ext;
|
|
|
|
int fourcc;
|
|
|
|
};
|
2012-06-08 22:54:17 +08:00
|
|
|
|
2012-04-30 22:33:52 +08:00
|
|
|
extern const VideoFormat g_specific_fmt_list[];
|
2012-06-08 22:54:17 +08:00
|
|
|
|
2012-04-30 22:33:52 +08:00
|
|
|
}
|
|
|
|
|
2011-02-10 04:55:11 +08:00
|
|
|
#endif
|