Merge pull request #1263 from abidrahmank:pyCLAHE_24
[profile/ivi/opencv.git] / modules / ocl / src / precomp.hpp
1 /*M///////////////////////////////////////////////////////////////////////////////////////
2 //
3 //  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
4 //
5 //  By downloading, copying, installing or using the software you agree to this license.
6 //  If you do not agree to this license, do not download, install,
7 //  copy or use the software.
8 //
9 //
10 //                           License Agreement
11 //                For Open Source Computer Vision Library
12 //
13 // Copyright (C) 2010-2012, Institute Of Software Chinese Academy Of Science, all rights reserved.
14 // Copyright (C) 2010-2012, Advanced Micro Devices, Inc., all rights reserved.
15 // Copyright (C) 2010-2012, Multicoreware, Inc., all rights reserved.
16 // Third party copyrights are property of their respective owners.
17 //
18 // @Authors
19 //    Guoping Long, longguoping@gmail.com
20 //    Yao Wang, bitwangyaoyao@gmail.com
21 //
22 // Redistribution and use in source and binary forms, with or without modification,
23 // are permitted provided that the following conditions are met:
24 //
25 //   * Redistribution's of source code must retain the above copyright notice,
26 //     this list of conditions and the following disclaimer.
27 //
28 //   * Redistribution's in binary form must reproduce the above copyright notice,
29 //     this list of conditions and the following disclaimer in the documentation
30 //     and/or other oclMaterials provided with the distribution.
31 //
32 //   * The name of the copyright holders may not be used to endorse or promote products
33 //     derived from this software without specific prior written permission.
34 //
35 // This software is provided by the copyright holders and contributors "as is" and
36 // any express or implied warranties, including, but not limited to, the implied
37 // warranties of merchantability and fitness for a particular purpose are disclaimed.
38 // In no event shall the Intel Corporation or contributors be liable for any direct,
39 // indirect, incidental, special, exemplary, or consequential damages
40 // (including, but not limited to, procurement of substitute goods or services;
41 // loss of use, data, or profits; or business interruption) however caused
42 // and on any theory of liability, whether in contract, strict liability,
43 // or tort (including negligence or otherwise) arising in any way out of
44 // the use of this software, even if advised of the possibility of such damage.
45 //
46 //M*/
47
48 #ifndef __OPENCV_PRECOMP_H__
49 #define __OPENCV_PRECOMP_H__
50
51 #if defined _MSC_VER && _MSC_VER >= 1200
52 #pragma warning( disable: 4267 4324 4244 4251 4710 4711 4514 4996 )
53 #endif
54
55 #include "cvconfig.h"
56
57 #include <map>
58 #include <iostream>
59 #include <limits>
60 #include <vector>
61 #include <algorithm>
62 #include <sstream>
63 #include <exception>
64 #include <stdio.h>
65
66 #include "opencv2/imgproc/imgproc.hpp"
67 #include "opencv2/imgproc/imgproc_c.h"
68 #include "opencv2/core/core_c.h"
69 #include "opencv2/objdetect/objdetect.hpp"
70 #include "opencv2/ocl/ocl.hpp"
71
72 #include "opencv2/core/internal.hpp"
73 //#include "opencv2/highgui/highgui.hpp"
74
75 #define __ATI__
76
77 #if defined (HAVE_OPENCL)
78
79 #define CL_USE_DEPRECATED_OPENCL_1_1_APIS
80 #include "opencv2/ocl/private/util.hpp"
81 #include "safe_call.hpp"
82
83 #else /* defined(HAVE_OPENCL) */
84
85 static inline void throw_nogpu()
86 {
87     CV_Error(CV_GpuNotSupported, "The library is compilled without OpenCL support.\n");
88 }
89
90 #endif /* defined(HAVE_OPENCL) */
91
92 using namespace std;
93
94 #endif /* __OPENCV_PRECOMP_H__ */