impl.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. #ifndef _wrong_H_INCLUDED_
  2. #define _wrong_H_INCLUDED_
  3. #include "opencv2/core/hal/interface.h"
  4. #if defined(__cplusplus)
  5. extern "C"
  6. {
  7. #endif
  8. int wrong_add8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  9. int wrong_add8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h);
  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. int wrong_add16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h);
  12. int wrong_add32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h);
  13. int wrong_add32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h);
  14. int wrong_add64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h);
  15. int wrong_sub8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  16. int wrong_sub8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h);
  17. int wrong_sub16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h);
  18. int wrong_sub16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h);
  19. int wrong_sub32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h);
  20. int wrong_sub32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h);
  21. int wrong_sub64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h);
  22. int wrong_max8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  23. int wrong_max8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h);
  24. int wrong_max16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h);
  25. int wrong_max16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h);
  26. int wrong_max32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h);
  27. int wrong_max32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h);
  28. int wrong_max64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h);
  29. int wrong_min8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  30. int wrong_min8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h);
  31. int wrong_min16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h);
  32. int wrong_min16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h);
  33. int wrong_min32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h);
  34. int wrong_min32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h);
  35. int wrong_min64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h);
  36. int wrong_absdiff8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  37. int wrong_absdiff8s(const schar* src1, size_t sz1, const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h);
  38. int wrong_absdiff16u(const ushort* src1, size_t sz1, const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h);
  39. int wrong_absdiff16s(const short* src1, size_t sz1, const short* src2, size_t sz2, short* dst, size_t sz, int w, int h);
  40. int wrong_absdiff32s(const int* src1, size_t sz1, const int* src2, size_t sz2, int* dst, size_t sz, int w, int h);
  41. int wrong_absdiff32f(const float* src1, size_t sz1, const float* src2, size_t sz2, float* dst, size_t sz, int w, int h);
  42. int wrong_absdiff64f(const double* src1, size_t sz1, const double* src2, size_t sz2, double* dst, size_t sz, int w, int h);
  43. int wrong_and8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  44. int wrong_or8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  45. int wrong_xor8u(const uchar* src1, size_t sz1, const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h);
  46. int wrong_not8u(const uchar* src1, size_t sz1, uchar* dst, size_t sz, int w, int h);
  47. #undef cv_hal_add8u
  48. #define cv_hal_add8u wrong_add8u
  49. #undef cv_hal_add8s
  50. #define cv_hal_add8s wrong_add8s
  51. #undef cv_hal_add16u
  52. #define cv_hal_add16u wrong_add16u
  53. #undef cv_hal_add16s
  54. #define cv_hal_add16s wrong_add16s
  55. #undef cv_hal_add32s
  56. #define cv_hal_add32s wrong_add32s
  57. #undef cv_hal_add32f
  58. #define cv_hal_add32f wrong_add32f
  59. #undef cv_hal_add64f
  60. #define cv_hal_add64f wrong_add64f
  61. #undef cv_hal_sub8u
  62. #define cv_hal_sub8u wrong_sub8u
  63. #undef cv_hal_sub8s
  64. #define cv_hal_sub8s wrong_sub8s
  65. #undef cv_hal_sub16u
  66. #define cv_hal_sub16u wrong_sub16u
  67. #undef cv_hal_sub16s
  68. #define cv_hal_sub16s wrong_sub16s
  69. #undef cv_hal_sub32s
  70. #define cv_hal_sub32s wrong_sub32s
  71. #undef cv_hal_sub32f
  72. #define cv_hal_sub32f wrong_sub32f
  73. #undef cv_hal_sub64f
  74. #define cv_hal_sub64f wrong_sub64f
  75. #undef cv_hal_max8u
  76. #define cv_hal_max8u wrong_max8u
  77. #undef cv_hal_max8s
  78. #define cv_hal_max8s wrong_max8s
  79. #undef cv_hal_max16u
  80. #define cv_hal_max16u wrong_max16u
  81. #undef cv_hal_max16s
  82. #define cv_hal_max16s wrong_max16s
  83. #undef cv_hal_max32s
  84. #define cv_hal_max32s wrong_max32s
  85. #undef cv_hal_max32f
  86. #define cv_hal_max32f wrong_max32f
  87. #undef cv_hal_max64f
  88. #define cv_hal_max64f wrong_max64f
  89. #undef cv_hal_min8u
  90. #define cv_hal_min8u wrong_min8u
  91. #undef cv_hal_min8s
  92. #define cv_hal_min8s wrong_min8s
  93. #undef cv_hal_min16u
  94. #define cv_hal_min16u wrong_min16u
  95. #undef cv_hal_min16s
  96. #define cv_hal_min16s wrong_min16s
  97. #undef cv_hal_min32s
  98. #define cv_hal_min32s wrong_min32s
  99. #undef cv_hal_min32f
  100. #define cv_hal_min32f wrong_min32f
  101. #undef cv_hal_min64f
  102. #define cv_hal_min64f wrong_min64f
  103. #undef cv_hal_absdiff8u
  104. #define cv_hal_absdiff8u wrong_absdiff8u
  105. #undef cv_hal_absdiff8s
  106. #define cv_hal_absdiff8s wrong_absdiff8s
  107. #undef cv_hal_absdiff16u
  108. #define cv_hal_absdiff16u wrong_absdiff16u
  109. #undef cv_hal_absdiff16s
  110. #define cv_hal_absdiff16s wrong_absdiff16s
  111. #undef cv_hal_absdiff32s
  112. #define cv_hal_absdiff32s wrong_absdiff32s
  113. #undef cv_hal_absdiff32f
  114. #define cv_hal_absdiff32f wrong_absdiff32f
  115. #undef cv_hal_absdiff64f
  116. #define cv_hal_absdiff64f wrong_absdiff64f
  117. #undef cv_hal_and8u
  118. #define cv_hal_and8u wrong_and8u
  119. #undef cv_hal_or8u
  120. #define cv_hal_or8u wrong_or8u
  121. #undef cv_hal_xor8u
  122. #define cv_hal_xor8u wrong_xor8u
  123. #undef cv_hal_not8u
  124. #define cv_hal_not8u wrong_not8u
  125. 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);
  126. 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);
  127. 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);
  128. 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);
  129. 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);
  130. 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);
  131. 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);
  132. #undef cv_hal_cmp8u
  133. #define cv_hal_cmp8u wrong_cmp8u
  134. #undef cv_hal_cmp8s
  135. #define cv_hal_cmp8s wrong_cmp8s
  136. #undef cv_hal_cmp16u
  137. #define cv_hal_cmp16u wrong_cmp16u
  138. #undef cv_hal_cmp16s
  139. #define cv_hal_cmp16s wrong_cmp16s
  140. #undef cv_hal_cmp32s
  141. #define cv_hal_cmp32s wrong_cmp32s
  142. #undef cv_hal_cmp32f
  143. #define cv_hal_cmp32f wrong_cmp32f
  144. #undef cv_hal_cmp64f
  145. #define cv_hal_cmp64f wrong_cmp64f
  146. 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);
  147. 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);
  148. 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);
  149. 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);
  150. 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);
  151. 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);
  152. 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);
  153. 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);
  154. 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);
  155. 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);
  156. 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);
  157. 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);
  158. 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);
  159. 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);
  160. int wrong_recip8u(const uchar* src2, size_t sz2, uchar* dst, size_t sz, int w, int h, double scale);
  161. int wrong_recip8s(const schar* src2, size_t sz2, schar* dst, size_t sz, int w, int h, double scale);
  162. int wrong_recip16u(const ushort* src2, size_t sz2, ushort* dst, size_t sz, int w, int h, double scale);
  163. int wrong_recip16s(const short* src2, size_t sz2, short* dst, size_t sz, int w, int h, double scale);
  164. int wrong_recip32s(const int* src2, size_t sz2, int* dst, size_t sz, int w, int h, double scale);
  165. int wrong_recip32f(const float* src2, size_t sz2, float* dst, size_t sz, int w, int h, double scale);
  166. int wrong_recip64f(const double* src2, size_t sz2, double* dst, size_t sz, int w, int h, double scale);
  167. #undef cv_hal_mul8u
  168. #define cv_hal_mul8u wrong_mul8u
  169. #undef cv_hal_mul8s
  170. #define cv_hal_mul8s wrong_mul8s
  171. #undef cv_hal_mul16u
  172. #define cv_hal_mul16u wrong_mul16u
  173. #undef cv_hal_mul16s
  174. #define cv_hal_mul16s wrong_mul16s
  175. #undef cv_hal_mul32s
  176. #define cv_hal_mul32s wrong_mul32s
  177. #undef cv_hal_mul32f
  178. #define cv_hal_mul32f wrong_mul32f
  179. #undef cv_hal_mul64f
  180. #define cv_hal_mul64f wrong_mul64f
  181. #undef cv_hal_div8u
  182. #define cv_hal_div8u wrong_div8u
  183. #undef cv_hal_div8s
  184. #define cv_hal_div8s wrong_div8s
  185. #undef cv_hal_div16u
  186. #define cv_hal_div16u wrong_div16u
  187. #undef cv_hal_div16s
  188. #define cv_hal_div16s wrong_div16s
  189. #undef cv_hal_div32s
  190. #define cv_hal_div32s wrong_div32s
  191. #undef cv_hal_div32f
  192. #define cv_hal_div32f wrong_div32f
  193. #undef cv_hal_div64f
  194. #define cv_hal_div64f wrong_div64f
  195. #undef cv_hal_recip8u
  196. #define cv_hal_recip8u wrong_recip8u
  197. #undef cv_hal_recip8s
  198. #define cv_hal_recip8s wrong_recip8s
  199. #undef cv_hal_recip16u
  200. #define cv_hal_recip16u wrong_recip16u
  201. #undef cv_hal_recip16s
  202. #define cv_hal_recip16s wrong_recip16s
  203. #undef cv_hal_recip32s
  204. #define cv_hal_recip32s wrong_recip32s
  205. #undef cv_hal_recip32f
  206. #define cv_hal_recip32f wrong_recip32f
  207. #undef cv_hal_recip64f
  208. #define cv_hal_recip64f wrong_recip64f
  209. 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);
  210. 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);
  211. 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);
  212. 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);
  213. 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);
  214. 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);
  215. 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);
  216. #undef cv_hal_addWeighted8u
  217. #define cv_hal_addWeighted8u wrong_addWeighted8u
  218. #undef cv_hal_addWeighted8s
  219. #define cv_hal_addWeighted8s wrong_addWeighted8s
  220. #undef cv_hal_addWeighted16u
  221. #define cv_hal_addWeighted16u wrong_addWeighted16u
  222. #undef cv_hal_addWeighted16s
  223. #define cv_hal_addWeighted16s wrong_addWeighted16s
  224. #undef cv_hal_addWeighted32s
  225. #define cv_hal_addWeighted32s wrong_addWeighted32s
  226. #undef cv_hal_addWeighted32f
  227. #define cv_hal_addWeighted32f wrong_addWeighted32f
  228. #undef cv_hal_addWeighted64f
  229. #define cv_hal_addWeighted64f wrong_addWeighted64f
  230. #if defined(__cplusplus)
  231. }
  232. #endif
  233. #endif