~paparazzi-uav/paparazzi/v5.0-manual

« back to all changes in this revision

Viewing changes to sw/ext/opencv_bebop/opencv/modules/core/src/hal_replacement.hpp

  • Committer: Paparazzi buildbot
  • Date: 2016-05-18 15:00:29 UTC
  • Revision ID: felix.ruess+docbot@gmail.com-20160518150029-e8lgzi5kvb4p7un9
Manual import commit 4b8bbb730080dac23cf816b98908dacfabe2a8ec from v5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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) 2000-2008, Intel Corporation, all rights reserved.
 
14
// Copyright (C) 2009, Willow Garage Inc., all rights reserved.
 
15
// Copyright (C) 2013, OpenCV Foundation, all rights reserved.
 
16
// Copyright (C) 2015, Itseez Inc., all rights reserved.
 
17
// Third party copyrights are property of their respective owners.
 
18
//
 
19
// Redistribution and use in source and binary forms, with or without modification,
 
20
// are permitted provided that the following conditions are met:
 
21
//
 
22
//   * Redistribution's of source code must retain the above copyright notice,
 
23
//     this list of conditions and the following disclaimer.
 
24
//
 
25
//   * Redistribution's in binary form must reproduce the above copyright notice,
 
26
//     this list of conditions and the following disclaimer in the documentation
 
27
//     and/or other materials provided with the distribution.
 
28
//
 
29
//   * The name of the copyright holders may not be used to endorse or promote products
 
30
//     derived from this software without specific prior written permission.
 
31
//
 
32
// This software is provided by the copyright holders and contributors "as is" and
 
33
// any express or implied warranties, including, but not limited to, the implied
 
34
// warranties of merchantability and fitness for a particular purpose are disclaimed.
 
35
// In no event shall the Intel Corporation or contributors be liable for any direct,
 
36
// indirect, incidental, special, exemplary, or consequential damages
 
37
// (including, but not limited to, procurement of substitute goods or services;
 
38
// loss of use, data, or profits; or business interruption) however caused
 
39
// and on any theory of liability, whether in contract, strict liability,
 
40
// or tort (including negligence or otherwise) arising in any way out of
 
41
// the use of this software, even if advised of the possibility of such damage.
 
42
//
 
43
//M*/
 
44
 
 
45
#ifndef __OPENCV_CORE_HAL_REPLACEMENT_HPP__
 
46
#define __OPENCV_CORE_HAL_REPLACEMENT_HPP__
 
47
 
 
48
#include "opencv2/core/hal/interface.h"
 
49
 
 
50
inline int hal_ni_add8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
51
inline int hal_ni_add8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
52
inline int hal_ni_add16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
53
inline int hal_ni_add16s(const short*, size_t, const short*, size_t, short*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
54
inline int hal_ni_add32s(const int*, size_t, const int*, size_t, int*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
55
inline int hal_ni_add32f(const float*, size_t, const float*, size_t, float*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
56
inline int hal_ni_add64f(const double*, size_t, const double*, size_t, double*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
57
inline int hal_ni_sub8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
58
inline int hal_ni_sub8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
59
inline int hal_ni_sub16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
60
inline int hal_ni_sub16s(const short*, size_t, const short*, size_t, short*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
61
inline int hal_ni_sub32s(const int*, size_t, const int*, size_t, int*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
62
inline int hal_ni_sub32f(const float*, size_t, const float*, size_t, float*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
63
inline int hal_ni_sub64f(const double*, size_t, const double*, size_t, double*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
64
inline int hal_ni_max8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
65
inline int hal_ni_max8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
66
inline int hal_ni_max16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
67
inline int hal_ni_max16s(const short*, size_t, const short*, size_t, short*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
68
inline int hal_ni_max32s(const int*, size_t, const int*, size_t, int*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
69
inline int hal_ni_max32f(const float*, size_t, const float*, size_t, float*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
70
inline int hal_ni_max64f(const double*, size_t, const double*, size_t, double*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
71
inline int hal_ni_min8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
72
inline int hal_ni_min8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
73
inline int hal_ni_min16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
74
inline int hal_ni_min16s(const short*, size_t, const short*, size_t, short*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
75
inline int hal_ni_min32s(const int*, size_t, const int*, size_t, int*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
76
inline int hal_ni_min32f(const float*, size_t, const float*, size_t, float*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
77
inline int hal_ni_min64f(const double*, size_t, const double*, size_t, double*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
78
inline int hal_ni_absdiff8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
79
inline int hal_ni_absdiff8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
80
inline int hal_ni_absdiff16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
81
inline int hal_ni_absdiff16s(const short*, size_t, const short*, size_t, short*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
82
inline int hal_ni_absdiff32s(const int*, size_t, const int*, size_t, int*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
83
inline int hal_ni_absdiff32f(const float*, size_t, const float*, size_t, float*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
84
inline int hal_ni_absdiff64f(const double*, size_t, const double*, size_t, double*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
85
inline int hal_ni_and8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
86
inline int hal_ni_or8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
87
inline int hal_ni_xor8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
88
inline int hal_ni_not8u(const uchar*, size_t, uchar*, size_t, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
89
 
 
90
#define cv_hal_add8u hal_ni_add8u
 
91
#define cv_hal_add8s hal_ni_add8s
 
92
#define cv_hal_add16u hal_ni_add16u
 
93
#define cv_hal_add16s hal_ni_add16s
 
94
#define cv_hal_add32s hal_ni_add32s
 
95
#define cv_hal_add32f hal_ni_add32f
 
96
#define cv_hal_add64f hal_ni_add64f
 
97
#define cv_hal_sub8u hal_ni_sub8u
 
98
#define cv_hal_sub8s hal_ni_sub8s
 
99
#define cv_hal_sub16u hal_ni_sub16u
 
100
#define cv_hal_sub16s hal_ni_sub16s
 
101
#define cv_hal_sub32s hal_ni_sub32s
 
102
#define cv_hal_sub32f hal_ni_sub32f
 
103
#define cv_hal_sub64f hal_ni_sub64f
 
104
#define cv_hal_max8u hal_ni_max8u
 
105
#define cv_hal_max8s hal_ni_max8s
 
106
#define cv_hal_max16u hal_ni_max16u
 
107
#define cv_hal_max16s hal_ni_max16s
 
108
#define cv_hal_max32s hal_ni_max32s
 
109
#define cv_hal_max32f hal_ni_max32f
 
110
#define cv_hal_max64f hal_ni_max64f
 
111
#define cv_hal_min8u hal_ni_min8u
 
112
#define cv_hal_min8s hal_ni_min8s
 
113
#define cv_hal_min16u hal_ni_min16u
 
114
#define cv_hal_min16s hal_ni_min16s
 
115
#define cv_hal_min32s hal_ni_min32s
 
116
#define cv_hal_min32f hal_ni_min32f
 
117
#define cv_hal_min64f hal_ni_min64f
 
118
#define cv_hal_absdiff8u hal_ni_absdiff8u
 
119
#define cv_hal_absdiff8s hal_ni_absdiff8s
 
120
#define cv_hal_absdiff16u hal_ni_absdiff16u
 
121
#define cv_hal_absdiff16s hal_ni_absdiff16s
 
122
#define cv_hal_absdiff32s hal_ni_absdiff32s
 
123
#define cv_hal_absdiff32f hal_ni_absdiff32f
 
124
#define cv_hal_absdiff64f hal_ni_absdiff64f
 
125
#define cv_hal_and8u hal_ni_and8u
 
126
#define cv_hal_or8u hal_ni_or8u
 
127
#define cv_hal_xor8u hal_ni_xor8u
 
128
#define cv_hal_not8u hal_ni_not8u
 
129
 
 
130
inline int hal_ni_cmp8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
131
inline int hal_ni_cmp8s(const schar*, size_t, const schar*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
132
inline int hal_ni_cmp16u(const ushort*, size_t, const ushort*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
133
inline int hal_ni_cmp16s(const short*, size_t, const short*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
134
inline int hal_ni_cmp32s(const int*, size_t, const int*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
135
inline int hal_ni_cmp32f(const float*, size_t, const float*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
136
inline int hal_ni_cmp64f(const double*, size_t, const double*, size_t, uchar*, size_t, int, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
137
 
 
138
#define cv_hal_cmp8u hal_ni_cmp8u
 
139
#define cv_hal_cmp8s hal_ni_cmp8s
 
140
#define cv_hal_cmp16u hal_ni_cmp16u
 
141
#define cv_hal_cmp16s hal_ni_cmp16s
 
142
#define cv_hal_cmp32s hal_ni_cmp32s
 
143
#define cv_hal_cmp32f hal_ni_cmp32f
 
144
#define cv_hal_cmp64f hal_ni_cmp64f
 
145
 
 
146
inline int hal_ni_mul8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
147
inline int hal_ni_mul8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
148
inline int hal_ni_mul16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
149
inline int hal_ni_mul16s(const short*, size_t, const short*, size_t, short*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
150
inline int hal_ni_mul32s(const int*, size_t, const int*, size_t, int*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
151
inline int hal_ni_mul32f(const float*, size_t, const float*, size_t, float*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
152
inline int hal_ni_mul64f(const double*, size_t, const double*, size_t, double*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
153
inline int hal_ni_div8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
154
inline int hal_ni_div8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
155
inline int hal_ni_div16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
156
inline int hal_ni_div16s(const short*, size_t, const short*, size_t, short*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
157
inline int hal_ni_div32s(const int*, size_t, const int*, size_t, int*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
158
inline int hal_ni_div32f(const float*, size_t, const float*, size_t, float*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
159
inline int hal_ni_div64f(const double*, size_t, const double*, size_t, double*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
160
inline int hal_ni_recip8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
161
inline int hal_ni_recip8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
162
inline int hal_ni_recip16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
163
inline int hal_ni_recip16s(const short*, size_t, const short*, size_t, short*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
164
inline int hal_ni_recip32s(const int*, size_t, const int*, size_t, int*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
165
inline int hal_ni_recip32f(const float*, size_t, const float*, size_t, float*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
166
inline int hal_ni_recip64f(const double*, size_t, const double*, size_t, double*, size_t, int, int, double) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
167
 
 
168
#define cv_hal_mul8u hal_ni_mul8u
 
169
#define cv_hal_mul8s hal_ni_mul8s
 
170
#define cv_hal_mul16u hal_ni_mul16u
 
171
#define cv_hal_mul16s hal_ni_mul16s
 
172
#define cv_hal_mul32s hal_ni_mul32s
 
173
#define cv_hal_mul32f hal_ni_mul32f
 
174
#define cv_hal_mul64f hal_ni_mul64f
 
175
#define cv_hal_div8u hal_ni_div8u
 
176
#define cv_hal_div8s hal_ni_div8s
 
177
#define cv_hal_div16u hal_ni_div16u
 
178
#define cv_hal_div16s hal_ni_div16s
 
179
#define cv_hal_div32s hal_ni_div32s
 
180
#define cv_hal_div32f hal_ni_div32f
 
181
#define cv_hal_div64f hal_ni_div64f
 
182
#define cv_hal_recip8u hal_ni_recip8u
 
183
#define cv_hal_recip8s hal_ni_recip8s
 
184
#define cv_hal_recip16u hal_ni_recip16u
 
185
#define cv_hal_recip16s hal_ni_recip16s
 
186
#define cv_hal_recip32s hal_ni_recip32s
 
187
#define cv_hal_recip32f hal_ni_recip32f
 
188
#define cv_hal_recip64f hal_ni_recip64f
 
189
 
 
190
inline int hal_ni_addWeighted8u(const uchar*, size_t, const uchar*, size_t, uchar*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
191
inline int hal_ni_addWeighted8s(const schar*, size_t, const schar*, size_t, schar*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
192
inline int hal_ni_addWeighted16u(const ushort*, size_t, const ushort*, size_t, ushort*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
193
inline int hal_ni_addWeighted16s(const short*, size_t, const short*, size_t, short*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
194
inline int hal_ni_addWeighted32s(const int*, size_t, const int*, size_t, int*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
195
inline int hal_ni_addWeighted32f(const float*, size_t, const float*, size_t, float*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
196
inline int hal_ni_addWeighted64f(const double*, size_t, const double*, size_t, double*, size_t, int, int, const double*) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
197
 
 
198
#define cv_hal_addWeighted8u hal_ni_addWeighted8u
 
199
#define cv_hal_addWeighted8s hal_ni_addWeighted8s
 
200
#define cv_hal_addWeighted16u hal_ni_addWeighted16u
 
201
#define cv_hal_addWeighted16s hal_ni_addWeighted16s
 
202
#define cv_hal_addWeighted32s hal_ni_addWeighted32s
 
203
#define cv_hal_addWeighted32f hal_ni_addWeighted32f
 
204
#define cv_hal_addWeighted64f hal_ni_addWeighted64f
 
205
 
 
206
inline int hal_ni_split8u(const uchar*, uchar**, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
207
inline int hal_ni_split16u(const ushort*, ushort**, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
208
inline int hal_ni_split32s(const int*, int**, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
209
inline int hal_ni_split64s(const int64*, int64**, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
210
 
 
211
#define cv_hal_split8u hal_ni_split8u
 
212
#define cv_hal_split16u hal_ni_split16u
 
213
#define cv_hal_split32s hal_ni_split32s
 
214
#define cv_hal_split64s hal_ni_split64s
 
215
 
 
216
inline int hal_ni_merge8u(const uchar**, uchar*, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
217
inline int hal_ni_merge16u(const ushort**, ushort*, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
218
inline int hal_ni_merge32s(const int**, int*, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
219
inline int hal_ni_merge64s(const int64**, int64*, int, int) { return CV_HAL_ERROR_NOT_IMPLEMENTED; }
 
220
 
 
221
#define cv_hal_merge8u hal_ni_merge8u
 
222
#define cv_hal_merge16u hal_ni_merge16u
 
223
#define cv_hal_merge32s hal_ni_merge32s
 
224
#define cv_hal_merge64s hal_ni_merge64s
 
225
 
 
226
#include "custom_hal.hpp"
 
227
 
 
228
#endif