impl.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. #include "impl.h"
  2. int wrong_add8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  3. {
  4. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  5. }
  6. int wrong_add8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h)
  7. {
  8. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  9. }
  10. int wrong_add16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h)
  11. {
  12. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  13. }
  14. int wrong_add16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h)
  15. {
  16. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  17. }
  18. int wrong_add32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h)
  19. {
  20. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  21. }
  22. int wrong_add32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h)
  23. {
  24. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  25. }
  26. int wrong_add64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h)
  27. {
  28. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  29. }
  30. int wrong_sub8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  31. {
  32. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  33. }
  34. int wrong_sub8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h)
  35. {
  36. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  37. }
  38. int wrong_sub16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h)
  39. {
  40. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  41. }
  42. int wrong_sub16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h)
  43. {
  44. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  45. }
  46. int wrong_sub32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h)
  47. {
  48. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  49. }
  50. int wrong_sub32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h)
  51. {
  52. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  53. }
  54. int wrong_sub64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h)
  55. {
  56. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  57. }
  58. int wrong_max8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  59. {
  60. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  61. }
  62. int wrong_max8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h)
  63. {
  64. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  65. }
  66. int wrong_max16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h)
  67. {
  68. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  69. }
  70. int wrong_max16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h)
  71. {
  72. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  73. }
  74. int wrong_max32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h)
  75. {
  76. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  77. }
  78. int wrong_max32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h)
  79. {
  80. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  81. }
  82. int wrong_max64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h)
  83. {
  84. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  85. }
  86. int wrong_min8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  87. {
  88. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  89. }
  90. int wrong_min8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h)
  91. {
  92. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  93. }
  94. int wrong_min16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h)
  95. {
  96. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  97. }
  98. int wrong_min16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h)
  99. {
  100. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  101. }
  102. int wrong_min32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h)
  103. {
  104. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  105. }
  106. int wrong_min32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h)
  107. {
  108. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  109. }
  110. int wrong_min64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h)
  111. {
  112. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  113. }
  114. int wrong_absdiff8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  115. {
  116. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  117. }
  118. int wrong_absdiff8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h)
  119. {
  120. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  121. }
  122. int wrong_absdiff16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h)
  123. {
  124. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  125. }
  126. int wrong_absdiff16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h)
  127. {
  128. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  129. }
  130. int wrong_absdiff32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h)
  131. {
  132. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  133. }
  134. int wrong_absdiff32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h)
  135. {
  136. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  137. }
  138. int wrong_absdiff64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h)
  139. {
  140. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  141. }
  142. int wrong_and8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  143. {
  144. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  145. }
  146. int wrong_or8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  147. {
  148. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  149. }
  150. int wrong_xor8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h)
  151. {
  152. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  153. }
  154. int wrong_not8u(const uchar* src1, size_t sz1, uchar* dst, size_t sz, int w, int h)
  155. {
  156. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  157. }
  158. int wrong_cmp8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  159. {
  160. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  161. }
  162. int wrong_cmp8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  163. {
  164. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  165. }
  166. int wrong_cmp16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  167. {
  168. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  169. }
  170. int wrong_cmp16s(const short* src1, size_t sz1, const short* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  171. {
  172. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  173. }
  174. int wrong_cmp32s(const int* src1, size_t sz1, const int* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  175. {
  176. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  177. }
  178. int wrong_cmp32f(const float* src1, size_t sz1, const float* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  179. {
  180. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  181. }
  182. int wrong_cmp64f(const double* src1, size_t sz1, const double* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, int op)
  183. {
  184. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  185. }
  186. int wrong_mul8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, double scale)
  187. {
  188. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  189. }
  190. int wrong_mul8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h, double scale)
  191. {
  192. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  193. }
  194. int wrong_mul16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h, double scale)
  195. {
  196. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  197. }
  198. int wrong_mul16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h, double scale)
  199. {
  200. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  201. }
  202. int wrong_mul32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h, double scale)
  203. {
  204. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  205. }
  206. int wrong_mul32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h, double scale)
  207. {
  208. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  209. }
  210. int wrong_mul64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h, double scale)
  211. {
  212. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  213. }
  214. int wrong_div8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, double scale)
  215. {
  216. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  217. }
  218. int wrong_div8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h, double scale)
  219. {
  220. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  221. }
  222. int wrong_div16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h, double scale)
  223. {
  224. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  225. }
  226. int wrong_div16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h, double scale)
  227. {
  228. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  229. }
  230. int wrong_div32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h, double scale)
  231. {
  232. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  233. }
  234. int wrong_div32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h, double scale)
  235. {
  236. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  237. }
  238. int wrong_div64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h, double scale)
  239. {
  240. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  241. }
  242. int wrong_recip8u(const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, double scale)
  243. {
  244. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  245. }
  246. int wrong_recip8s(const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h, double scale)
  247. {
  248. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  249. }
  250. int wrong_recip16u(const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h, double scale)
  251. {
  252. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  253. }
  254. int wrong_recip16s(const short* src2, size_t sz2, short* dst, size_t sz, int w, int h, double scale)
  255. {
  256. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  257. }
  258. int wrong_recip32s(const int* src2, size_t sz2, int* dst, size_t sz, int w, int h, double scale)
  259. {
  260. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  261. }
  262. int wrong_recip32f(const float* src2, size_t sz2, float* dst, size_t sz, int w, int h, double scale)
  263. {
  264. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  265. }
  266. int wrong_recip64f(const double* src2, size_t sz2, double* dst, size_t sz, int w, int h, double scale)
  267. {
  268. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  269. }
  270. int wrong_addWeighted8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, const double* scales)
  271. {
  272. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  273. }
  274. int wrong_addWeighted8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h, const double* scales)
  275. {
  276. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  277. }
  278. int wrong_addWeighted16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h, const double* scales)
  279. {
  280. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  281. }
  282. int wrong_addWeighted16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h, const double* scales)
  283. {
  284. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  285. }
  286. int wrong_addWeighted32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h, const double* scales)
  287. {
  288. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  289. }
  290. int wrong_addWeighted32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h, const double* scales)
  291. {
  292. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  293. }
  294. int wrong_addWeighted64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h, const double* scales)
  295. {
  296. return CV_HAL_ERROR_UNKNOWN; // to test how OpenCV handles errors from external HAL
  297. }