forked from danmar/cppcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopencv2.cfg
132 lines (132 loc) · 5.16 KB
/
opencv2.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?xml version="1.0"?>
<def format="2">
<!-- OpenCV (Open Source Computer Vision Library) Library Configuration http://opencv.org) -->
<!-- This configuration is for the OpenCV 2.x API (The C++ API, not the older C API) -->
<!-- The OpenCV library is typically included by '#include <opencv2/*>' or -->
<!-- '#include "opencv2/*"'. -->
<!-- ########## OpenCV Types ########## -->
<podtype name="cv::int8_t" sign="s" size="1"/>
<podtype name="cv::int16_t" sign="s" size="2"/>
<podtype name="cv::int32_t" sign="s" size="4"/>
<podtype name="cv::int64_t" sign="s" size="8"/>
<podtype name="cv::uint8_t" sign="u" size="1"/>
<podtype name="cv::uint16_t" sign="u" size="2"/>
<podtype name="cv::uint32_t" sign="u" size="4"/>
<podtype name="cv::uint64_t" sign="u" size="8"/>
<smart-pointer class-name="cv::Ptr"/>
<!-- ########## OpenCV Macros / Defines ########## -->
<define name="CV_ALWAYS_INLINE" value="inline"/>
<define name="CV_EXTERN_C" value="extern "C""/>
<define name="CV_OVERRIDE" value="override"/>
<define name="CV_PI" value="3.1415926535897932384626433832795"/>
<define name="CV_2PI" value="6.283185307179586476925286766559"/>
<define name="CV_LOG2" value="0.69314718055994530941723212145818"/>
<define name="CV_MAT_CN_MASK" value="((CV_CN_MAX - 1) << CV_CN_SHIFT)"/>
<define name="CV_MAT_CN(flags)" value="((((flags) & CV_MAT_CN_MASK) >> CV_CN_SHIFT) + 1)"/>
<define name="CV_MAT_TYPE_MASK" value="(CV_DEPTH_MAX*CV_CN_MAX - 1)"/>
<define name="CV_MAT_TYPE(flags)" value="((flags) & CV_MAT_TYPE_MASK)"/>
<define name="CV_MAT_CONT_FLAG_SHIFT" value="14"/>
<define name="CV_MAT_CONT_FLAG" value="(1 << CV_MAT_CONT_FLAG_SHIFT)"/>
<define name="CV_IS_MAT_CONT(flags)" value="((flags) & CV_MAT_CONT_FLAG)"/>
<define name="CV_IS_CONT_MAT" value="CV_IS_MAT_CONT"/>
<define name="CV_SUBMAT_FLAG_SHIFT" value="15"/>
<define name="CV_SUBMAT_FLAG" value="(1 << CV_SUBMAT_FLAG_SHIFT)"/>
<define name="CV_IS_SUBMAT(flags)" value="((flags) & CV_MAT_SUBMAT_FLAG)"/>
<define name="MIN(a,b)" value="((a) > (b) ? (b) : (a))"/>
<define name="MAX(a,b)" value="((a) < (b) ? (b) : (a))"/>
<define name="CV_Error(code,msg)" value="cv::error( code, msg, CV_Func, __FILE__, __LINE__ )"/>
<define name="CV_Assert(expr)" value="do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)"/>
<!-- ########## OpenCV containers ########## -->
<!-- OpenCV containers that are similar to std containers -->
<container id="cvString" startPattern="cv :: String" inherits="stdString"/>
<!-- ########## OpenCV Allocation / Deallocation ########## -->
<memory>
<alloc init="false" buffer-size="malloc">cv::fastMalloc</alloc>
<dealloc>cv::fastFree</dealloc>
</memory>
<!-- ########## OpenCV Functions ########## -->
<!-- void cv::errorNoReturn (int _code, const String & _err, const char * _func, const char * _file, int _line) -->
<function name="cv::errorNoReturn">
<noreturn>true</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
</arg>
<arg nr="5" direction="in">
<not-uninit/>
</arg>
</function>
<!-- void cv::fastFree (void *ptr) -->
<function name="cv::fastFree">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1">
<not-uninit indirect="1"/>
</arg>
</function>
<!-- void * cv::fastMalloc (size_t bufSize) -->
<function name="cv::fastMalloc">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<!-- Mat cv::imread ( const String & filename, int flags = IMREAD_COLOR ) -->
<function name="cv::imread">
<noreturn>false</noreturn>
<returnValue type="cv::Mat"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="cv::IMREAD_COLOR">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void cv::imshow ( const String & winname, InputArray mat ) -->
<!-- void cv::imshow ( const String & winname, const ogl::Texture2D & tex ) -->
<function name="cv::imshow">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void cv::namedWindow ( const String & winname, int flags = WINDOW_AUTOSIZE ) -->
<function name="cv::namedWindow">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="cv::WINDOW_AUTOSIZE">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- int cv::waitKey ( int delay = 0 ) -->
<function name="cv::waitKey">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1" direction="in" default="0">
<not-uninit/>
<not-bool/>
</arg>
</function>
</def>