|
5 | 5 | <!-- The OpenCV library is typically included by '#include <opencv2/*>' or --> |
6 | 6 | <!-- '#include "opencv2/*"'. --> |
7 | 7 | <!-- ########## OpenCV Types ########## --> |
| 8 | + <podtype name="cv::int8_t" sign="s" size="1"/> |
| 9 | + <podtype name="cv::int16_t" sign="s" size="2"/> |
| 10 | + <podtype name="cv::int32_t" sign="s" size="4"/> |
| 11 | + <podtype name="cv::int64_t" sign="s" size="8"/> |
| 12 | + <podtype name="cv::uint8_t" sign="u" size="1"/> |
| 13 | + <podtype name="cv::uint16_t" sign="u" size="2"/> |
| 14 | + <podtype name="cv::uint32_t" sign="u" size="4"/> |
| 15 | + <podtype name="cv::uint64_t" sign="u" size="8"/> |
| 16 | + <smart-pointer class-name="cv::Ptr"/> |
8 | 17 | <!-- ########## OpenCV Macros / Defines ########## --> |
| 18 | + <define name="CV_ALWAYS_INLINE" value="inline"/> |
| 19 | + <define name="CV_EXTERN_C" value="extern "C""/> |
| 20 | + <define name="CV_OVERRIDE" value="override"/> |
9 | 21 | <define name="CV_PI" value="3.1415926535897932384626433832795"/> |
10 | 22 | <define name="CV_2PI" value="6.283185307179586476925286766559"/> |
11 | 23 | <define name="CV_LOG2" value="0.69314718055994530941723212145818"/> |
|
22 | 34 | <define name="CV_IS_SUBMAT(flags)" value="((flags) & CV_MAT_SUBMAT_FLAG)"/> |
23 | 35 | <define name="MIN(a,b)" value="((a) > (b) ? (b) : (a))"/> |
24 | 36 | <define name="MAX(a,b)" value="((a) < (b) ? (b) : (a))"/> |
| 37 | + <define name="CV_Error(code,msg)" value="cv::error( code, msg, CV_Func, __FILE__, __LINE__ )"/> |
| 38 | + <define name="CV_Assert(expr)" value="do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0)"/> |
25 | 39 | <!-- ########## OpenCV containers ########## --> |
26 | 40 | <!-- OpenCV containers that are similar to std containers --> |
27 | 41 | <container id="cvString" startPattern="cv :: String" inherits="stdString"/> |
28 | 42 | <!-- ########## OpenCV Allocation / Deallocation ########## --> |
| 43 | + <memory> |
| 44 | + <alloc init="false" buffer-size="malloc">cv::fastMalloc</alloc> |
| 45 | + <dealloc>cv::fastFree</dealloc> |
| 46 | + </memory> |
29 | 47 | <!-- ########## OpenCV Functions ########## --> |
| 48 | + <!-- void cv::errorNoReturn (int _code, const String & _err, const char * _func, const char * _file, int _line) --> |
| 49 | + <function name="cv::errorNoReturn"> |
| 50 | + <noreturn>true</noreturn> |
| 51 | + <arg nr="1" direction="in"> |
| 52 | + <not-uninit/> |
| 53 | + </arg> |
| 54 | + <arg nr="2" direction="in"> |
| 55 | + <not-uninit/> |
| 56 | + </arg> |
| 57 | + <arg nr="3" direction="in"> |
| 58 | + <not-uninit/> |
| 59 | + </arg> |
| 60 | + <arg nr="4" direction="in"> |
| 61 | + <not-uninit/> |
| 62 | + </arg> |
| 63 | + <arg nr="5" direction="in"> |
| 64 | + <not-uninit/> |
| 65 | + </arg> |
| 66 | + </function> |
| 67 | + <!-- void cv::fastFree (void *ptr) --> |
| 68 | + <function name="cv::fastFree"> |
| 69 | + <noreturn>false</noreturn> |
| 70 | + <returnValue type="void"/> |
| 71 | + <arg nr="1"> |
| 72 | + <not-uninit indirect="1"/> |
| 73 | + </arg> |
| 74 | + </function> |
| 75 | + <!-- void * cv::fastMalloc (size_t bufSize) --> |
| 76 | + <function name="cv::fastMalloc"> |
| 77 | + <noreturn>false</noreturn> |
| 78 | + <returnValue type="void *"/> |
| 79 | + <use-retval/> |
| 80 | + <arg nr="1" direction="in"> |
| 81 | + <not-uninit/> |
| 82 | + <valid>0:</valid> |
| 83 | + </arg> |
| 84 | + </function> |
30 | 85 | <!-- Mat cv::imread ( const String & filename, int flags = IMREAD_COLOR ) --> |
31 | 86 | <function name="cv::imread"> |
32 | 87 | <noreturn>false</noreturn> |
|
0 commit comments