CLAHE Python bindings
[profile/ivi/opencv.git] / modules / highgui / test / test_precomp.hpp
1 #ifdef __GNUC__
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"
6 #  endif
7 #endif
8
9 #ifndef __OPENCV_TEST_PRECOMP_HPP__
10 #define __OPENCV_TEST_PRECOMP_HPP__
11
12 #ifdef HAVE_CVCONFIG_H
13 # include "cvconfig.h"
14 #endif
15
16 #include "opencv2/ts/ts.hpp"
17 #include "opencv2/imgproc/imgproc.hpp"
18 #include "opencv2/imgproc/imgproc_c.h"
19 #include <iostream>
20
21 #if defined(HAVE_DSHOW)        || \
22     defined(HAVE_TYZX)         || \
23     defined(HAVE_VFW)          || \
24     defined(HAVE_LIBV4L)       || \
25     (defined(HAVE_CAMV4L) && defined(HAVE_CAMV4L2)) || \
26     defined(HAVE_GSTREAMER)    || \
27     defined(HAVE_DC1394_2)     || \
28     defined(HAVE_DC1394)       || \
29     defined(HAVE_CMU1394)      || \
30     defined(HAVE_MIL)          || \
31     defined(HAVE_QUICKTIME)    || \
32     defined(HAVE_UNICAP)       || \
33     defined(HAVE_PVAPI)        || \
34     defined(HAVE_OPENNI)       || \
35     defined(HAVE_XIMEA)        || \
36     defined(HAVE_AVFOUNDATION) || \
37     defined(HAVE_GIGE_API)     || \
38     (0)
39     //defined(HAVE_ANDROID_NATIVE_CAMERA) ||   - enable after #1193
40 #  define BUILD_WITH_CAMERA_SUPPORT 1
41 #else
42 #  define BUILD_WITH_CAMERA_SUPPORT 0
43 #endif
44
45 #if defined(HAVE_XINE)         || \
46     defined(HAVE_GSTREAMER)    || \
47     defined(HAVE_QUICKTIME)    || \
48     defined(HAVE_AVFOUNDATION) || \
49     /*defined(HAVE_OPENNI)     || too specialized */ \
50     defined(HAVE_FFMPEG)
51 #  define BUILD_WITH_VIDEO_INPUT_SUPPORT 1
52 #else
53 #  define BUILD_WITH_VIDEO_INPUT_SUPPORT 0
54 #endif
55
56 #if /*defined(HAVE_XINE)       || */\
57     defined(HAVE_GSTREAMER)    || \
58     defined(HAVE_QUICKTIME)    || \
59     defined(HAVE_AVFOUNDATION) || \
60     defined(HAVE_FFMPEG)
61 #  define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 1
62 #else
63 #  define BUILD_WITH_VIDEO_OUTPUT_SUPPORT 0
64 #endif
65
66 namespace cvtest
67 {
68
69 string fourccToString(int fourcc);
70
71 struct VideoFormat
72 {
73     VideoFormat() { fourcc = -1; }
74     VideoFormat(const string& _ext, int _fourcc) : ext(_ext), fourcc(_fourcc) {}
75     bool empty() const { return ext.empty(); }
76
77     string ext;
78     int fourcc;
79 };
80
81 extern const VideoFormat g_specific_fmt_list[];
82
83 }
84
85 #endif