node-native-win-utils 1.3.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +30 -83
  2. package/binding.gyp +3 -0
  3. package/dist/dirnameLocal.cjs +4 -0
  4. package/dist/dirnameLocal.d.cts +1 -0
  5. package/dist/dirnameLocal.d.mts +1 -0
  6. package/dist/dirnameLocal.mjs +2 -0
  7. package/dist/{index.js → index.cjs} +49 -17
  8. package/dist/{index.d.ts → index.d.cts} +25 -12
  9. package/dist/index.d.mts +191 -0
  10. package/dist/index.mjs +177 -0
  11. package/dist/keyCodes.d.mts +101 -0
  12. package/dist/keyCodes.mjs +201 -0
  13. package/node22.json +16 -0
  14. package/package.json +22 -9
  15. package/prebuilds/win32-x64/node-native-win-utils.node +0 -0
  16. package/prebuilds/win32-x64/tesseract.dll +0 -0
  17. package/prebuilds/win32-x64/tiff.dll +0 -0
  18. package/src/cpp/keyboard.cpp +141 -140
  19. package/src/cpp/main.cpp +11 -3
  20. package/src/cpp/{capturewindow.cpp → screenshot.cpp} +174 -2
  21. package/src/cpp/tesseract.cpp +49 -0
  22. package/src/dirnameLocal.mts +3 -0
  23. package/src/index.mts +454 -0
  24. package/src/keyCodes.mts +203 -0
  25. package/include/opencv2/core/affine.hpp +0 -678
  26. package/include/opencv2/core/async.hpp +0 -105
  27. package/include/opencv2/core/base.hpp +0 -664
  28. package/include/opencv2/core/bindings_utils.hpp +0 -325
  29. package/include/opencv2/core/bufferpool.hpp +0 -40
  30. package/include/opencv2/core/check.hpp +0 -170
  31. package/include/opencv2/core/core.hpp +0 -48
  32. package/include/opencv2/core/core_c.h +0 -3128
  33. package/include/opencv2/core/cuda/block.hpp +0 -211
  34. package/include/opencv2/core/cuda/border_interpolate.hpp +0 -722
  35. package/include/opencv2/core/cuda/color.hpp +0 -309
  36. package/include/opencv2/core/cuda/common.hpp +0 -131
  37. package/include/opencv2/core/cuda/datamov_utils.hpp +0 -113
  38. package/include/opencv2/core/cuda/detail/color_detail.hpp +0 -2018
  39. package/include/opencv2/core/cuda/detail/reduce.hpp +0 -365
  40. package/include/opencv2/core/cuda/detail/reduce_key_val.hpp +0 -502
  41. package/include/opencv2/core/cuda/detail/transform_detail.hpp +0 -392
  42. package/include/opencv2/core/cuda/detail/type_traits_detail.hpp +0 -191
  43. package/include/opencv2/core/cuda/detail/vec_distance_detail.hpp +0 -121
  44. package/include/opencv2/core/cuda/dynamic_smem.hpp +0 -88
  45. package/include/opencv2/core/cuda/emulation.hpp +0 -269
  46. package/include/opencv2/core/cuda/filters.hpp +0 -293
  47. package/include/opencv2/core/cuda/funcattrib.hpp +0 -79
  48. package/include/opencv2/core/cuda/functional.hpp +0 -805
  49. package/include/opencv2/core/cuda/limits.hpp +0 -128
  50. package/include/opencv2/core/cuda/reduce.hpp +0 -209
  51. package/include/opencv2/core/cuda/saturate_cast.hpp +0 -292
  52. package/include/opencv2/core/cuda/scan.hpp +0 -258
  53. package/include/opencv2/core/cuda/simd_functions.hpp +0 -869
  54. package/include/opencv2/core/cuda/transform.hpp +0 -75
  55. package/include/opencv2/core/cuda/type_traits.hpp +0 -90
  56. package/include/opencv2/core/cuda/utility.hpp +0 -230
  57. package/include/opencv2/core/cuda/vec_distance.hpp +0 -232
  58. package/include/opencv2/core/cuda/vec_math.hpp +0 -923
  59. package/include/opencv2/core/cuda/vec_traits.hpp +0 -288
  60. package/include/opencv2/core/cuda/warp.hpp +0 -139
  61. package/include/opencv2/core/cuda/warp_reduce.hpp +0 -76
  62. package/include/opencv2/core/cuda/warp_shuffle.hpp +0 -162
  63. package/include/opencv2/core/cuda.hpp +0 -1279
  64. package/include/opencv2/core/cuda.inl.hpp +0 -763
  65. package/include/opencv2/core/cuda_stream_accessor.hpp +0 -86
  66. package/include/opencv2/core/cuda_types.hpp +0 -144
  67. package/include/opencv2/core/cv_cpu_dispatch.h +0 -381
  68. package/include/opencv2/core/cv_cpu_helper.h +0 -550
  69. package/include/opencv2/core/cvdef.h +0 -973
  70. package/include/opencv2/core/cvstd.hpp +0 -190
  71. package/include/opencv2/core/cvstd.inl.hpp +0 -197
  72. package/include/opencv2/core/cvstd_wrapper.hpp +0 -154
  73. package/include/opencv2/core/detail/async_promise.hpp +0 -71
  74. package/include/opencv2/core/detail/dispatch_helper.impl.hpp +0 -49
  75. package/include/opencv2/core/detail/exception_ptr.hpp +0 -27
  76. package/include/opencv2/core/directx.hpp +0 -184
  77. package/include/opencv2/core/dualquaternion.hpp +0 -979
  78. package/include/opencv2/core/dualquaternion.inl.hpp +0 -487
  79. package/include/opencv2/core/eigen.hpp +0 -402
  80. package/include/opencv2/core/fast_math.hpp +0 -433
  81. package/include/opencv2/core/hal/hal.hpp +0 -256
  82. package/include/opencv2/core/hal/interface.h +0 -190
  83. package/include/opencv2/core/hal/intrin.hpp +0 -939
  84. package/include/opencv2/core/hal/intrin_avx.hpp +0 -3177
  85. package/include/opencv2/core/hal/intrin_avx512.hpp +0 -3090
  86. package/include/opencv2/core/hal/intrin_cpp.hpp +0 -3321
  87. package/include/opencv2/core/hal/intrin_forward.hpp +0 -191
  88. package/include/opencv2/core/hal/intrin_lasx.hpp +0 -3236
  89. package/include/opencv2/core/hal/intrin_msa.hpp +0 -1887
  90. package/include/opencv2/core/hal/intrin_neon.hpp +0 -2610
  91. package/include/opencv2/core/hal/intrin_rvv.hpp +0 -3320
  92. package/include/opencv2/core/hal/intrin_rvv071.hpp +0 -2545
  93. package/include/opencv2/core/hal/intrin_rvv_scalable.hpp +0 -2080
  94. package/include/opencv2/core/hal/intrin_sse.hpp +0 -3467
  95. package/include/opencv2/core/hal/intrin_sse_em.hpp +0 -180
  96. package/include/opencv2/core/hal/intrin_vsx.hpp +0 -1608
  97. package/include/opencv2/core/hal/intrin_wasm.hpp +0 -2782
  98. package/include/opencv2/core/hal/msa_macros.h +0 -1558
  99. package/include/opencv2/core/hal/simd_utils.impl.hpp +0 -186
  100. package/include/opencv2/core/llapi/llapi.h +0 -102
  101. package/include/opencv2/core/mat.hpp +0 -3775
  102. package/include/opencv2/core/mat.inl.hpp +0 -3422
  103. package/include/opencv2/core/matx.hpp +0 -1536
  104. package/include/opencv2/core/neon_utils.hpp +0 -128
  105. package/include/opencv2/core/ocl.hpp +0 -917
  106. package/include/opencv2/core/ocl_genbase.hpp +0 -69
  107. package/include/opencv2/core/opencl/ocl_defs.hpp +0 -82
  108. package/include/opencv2/core/opencl/opencl_info.hpp +0 -212
  109. package/include/opencv2/core/opencl/opencl_svm.hpp +0 -81
  110. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clblas.hpp +0 -602
  111. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clfft.hpp +0 -146
  112. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp +0 -371
  113. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp +0 -272
  114. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp +0 -62
  115. package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp +0 -42
  116. package/include/opencv2/core/opencl/runtime/opencl_clblas.hpp +0 -53
  117. package/include/opencv2/core/opencl/runtime/opencl_clfft.hpp +0 -53
  118. package/include/opencv2/core/opencl/runtime/opencl_core.hpp +0 -84
  119. package/include/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp +0 -47
  120. package/include/opencv2/core/opencl/runtime/opencl_gl.hpp +0 -53
  121. package/include/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp +0 -47
  122. package/include/opencv2/core/opencl/runtime/opencl_svm_20.hpp +0 -48
  123. package/include/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp +0 -42
  124. package/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp +0 -166
  125. package/include/opencv2/core/opengl.hpp +0 -733
  126. package/include/opencv2/core/openvx/ovx_defs.hpp +0 -48
  127. package/include/opencv2/core/operations.hpp +0 -610
  128. package/include/opencv2/core/optim.hpp +0 -302
  129. package/include/opencv2/core/ovx.hpp +0 -28
  130. package/include/opencv2/core/parallel/backend/parallel_for.openmp.hpp +0 -72
  131. package/include/opencv2/core/parallel/backend/parallel_for.tbb.hpp +0 -153
  132. package/include/opencv2/core/parallel/parallel_backend.hpp +0 -90
  133. package/include/opencv2/core/persistence.hpp +0 -1350
  134. package/include/opencv2/core/private/cv_cpu_include_simd_declarations.hpp +0 -30
  135. package/include/opencv2/core/private.cuda.hpp +0 -169
  136. package/include/opencv2/core/private.hpp +0 -896
  137. package/include/opencv2/core/quaternion.hpp +0 -1696
  138. package/include/opencv2/core/quaternion.inl.hpp +0 -1063
  139. package/include/opencv2/core/saturate.hpp +0 -180
  140. package/include/opencv2/core/simd_intrinsics.hpp +0 -87
  141. package/include/opencv2/core/softfloat.hpp +0 -514
  142. package/include/opencv2/core/sse_utils.hpp +0 -652
  143. package/include/opencv2/core/traits.hpp +0 -417
  144. package/include/opencv2/core/types.hpp +0 -2457
  145. package/include/opencv2/core/types_c.h +0 -2126
  146. package/include/opencv2/core/utility.hpp +0 -1229
  147. package/include/opencv2/core/utils/allocator_stats.hpp +0 -29
  148. package/include/opencv2/core/utils/allocator_stats.impl.hpp +0 -158
  149. package/include/opencv2/core/utils/buffer_area.private.hpp +0 -136
  150. package/include/opencv2/core/utils/configuration.private.hpp +0 -22
  151. package/include/opencv2/core/utils/filesystem.hpp +0 -82
  152. package/include/opencv2/core/utils/filesystem.private.hpp +0 -66
  153. package/include/opencv2/core/utils/fp_control.private.hpp +0 -29
  154. package/include/opencv2/core/utils/fp_control_utils.hpp +0 -69
  155. package/include/opencv2/core/utils/instrumentation.hpp +0 -125
  156. package/include/opencv2/core/utils/lock.private.hpp +0 -119
  157. package/include/opencv2/core/utils/logger.defines.hpp +0 -42
  158. package/include/opencv2/core/utils/logger.hpp +0 -218
  159. package/include/opencv2/core/utils/logtag.hpp +0 -28
  160. package/include/opencv2/core/utils/plugin_loader.private.hpp +0 -165
  161. package/include/opencv2/core/utils/tls.hpp +0 -235
  162. package/include/opencv2/core/utils/trace.hpp +0 -252
  163. package/include/opencv2/core/utils/trace.private.hpp +0 -421
  164. package/include/opencv2/core/va_intel.hpp +0 -75
  165. package/include/opencv2/core/version.hpp +0 -26
  166. package/include/opencv2/core/vsx_utils.hpp +0 -1047
  167. package/include/opencv2/core.hpp +0 -3365
  168. package/include/opencv2/imgcodecs/imgcodecs.hpp +0 -48
  169. package/include/opencv2/imgcodecs/imgcodecs_c.h +0 -1
  170. package/include/opencv2/imgcodecs/ios.h +0 -59
  171. package/include/opencv2/imgcodecs/legacy/constants_c.h +0 -54
  172. package/include/opencv2/imgcodecs/macosx.h +0 -20
  173. package/include/opencv2/imgcodecs.hpp +0 -407
  174. package/include/opencv2/imgproc/bindings.hpp +0 -34
  175. package/include/opencv2/imgproc/detail/gcgraph.hpp +0 -395
  176. package/include/opencv2/imgproc/hal/hal.hpp +0 -246
  177. package/include/opencv2/imgproc/hal/interface.h +0 -46
  178. package/include/opencv2/imgproc/imgproc.hpp +0 -48
  179. package/include/opencv2/imgproc/imgproc_c.h +0 -1177
  180. package/include/opencv2/imgproc/segmentation.hpp +0 -141
  181. package/include/opencv2/imgproc/types_c.h +0 -659
  182. package/include/opencv2/imgproc.hpp +0 -5035
  183. package/include/opencv2/opencv_modules.hpp +0 -17
  184. package/libs/libjpeg-turbo.lib +0 -0
  185. package/libs/libpng.lib +0 -0
  186. package/libs/opencv_core470.lib +0 -0
  187. package/libs/opencv_imgcodecs470.lib +0 -0
  188. package/libs/opencv_imgproc470.lib +0 -0
  189. package/libs/zlib.lib +0 -0
  190. /package/dist/{keyCodes.js → keyCodes.cjs} +0 -0
  191. /package/dist/{keyCodes.d.ts → keyCodes.d.cts} +0 -0
@@ -1,256 +0,0 @@
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_HAL_HPP
46
- #define OPENCV_HAL_HPP
47
-
48
- #include "opencv2/core/cvdef.h"
49
- #include "opencv2/core/cvstd.hpp"
50
- #include "opencv2/core/hal/interface.h"
51
-
52
- namespace cv { namespace hal {
53
-
54
- //! @addtogroup core_hal_functions
55
- //! @{
56
-
57
- CV_EXPORTS int normHamming(const uchar* a, int n);
58
- CV_EXPORTS int normHamming(const uchar* a, const uchar* b, int n);
59
-
60
- CV_EXPORTS int normHamming(const uchar* a, int n, int cellSize);
61
- CV_EXPORTS int normHamming(const uchar* a, const uchar* b, int n, int cellSize);
62
-
63
- CV_EXPORTS int LU32f(float* A, size_t astep, int m, float* b, size_t bstep, int n);
64
- CV_EXPORTS int LU64f(double* A, size_t astep, int m, double* b, size_t bstep, int n);
65
- CV_EXPORTS bool Cholesky32f(float* A, size_t astep, int m, float* b, size_t bstep, int n);
66
- CV_EXPORTS bool Cholesky64f(double* A, size_t astep, int m, double* b, size_t bstep, int n);
67
- CV_EXPORTS void SVD32f(float* At, size_t astep, float* W, float* U, size_t ustep, float* Vt, size_t vstep, int m, int n, int flags);
68
- CV_EXPORTS void SVD64f(double* At, size_t astep, double* W, double* U, size_t ustep, double* Vt, size_t vstep, int m, int n, int flags);
69
- CV_EXPORTS int QR32f(float* A, size_t astep, int m, int n, int k, float* b, size_t bstep, float* hFactors);
70
- CV_EXPORTS int QR64f(double* A, size_t astep, int m, int n, int k, double* b, size_t bstep, double* hFactors);
71
-
72
- CV_EXPORTS void gemm32f(const float* src1, size_t src1_step, const float* src2, size_t src2_step,
73
- float alpha, const float* src3, size_t src3_step, float beta, float* dst, size_t dst_step,
74
- int m_a, int n_a, int n_d, int flags);
75
- CV_EXPORTS void gemm64f(const double* src1, size_t src1_step, const double* src2, size_t src2_step,
76
- double alpha, const double* src3, size_t src3_step, double beta, double* dst, size_t dst_step,
77
- int m_a, int n_a, int n_d, int flags);
78
- CV_EXPORTS void gemm32fc(const float* src1, size_t src1_step, const float* src2, size_t src2_step,
79
- float alpha, const float* src3, size_t src3_step, float beta, float* dst, size_t dst_step,
80
- int m_a, int n_a, int n_d, int flags);
81
- CV_EXPORTS void gemm64fc(const double* src1, size_t src1_step, const double* src2, size_t src2_step,
82
- double alpha, const double* src3, size_t src3_step, double beta, double* dst, size_t dst_step,
83
- int m_a, int n_a, int n_d, int flags);
84
-
85
- CV_EXPORTS int normL1_(const uchar* a, const uchar* b, int n);
86
- CV_EXPORTS float normL1_(const float* a, const float* b, int n);
87
- CV_EXPORTS float normL2Sqr_(const float* a, const float* b, int n);
88
-
89
- CV_EXPORTS void exp32f(const float* src, float* dst, int n);
90
- CV_EXPORTS void exp64f(const double* src, double* dst, int n);
91
- CV_EXPORTS void log32f(const float* src, float* dst, int n);
92
- CV_EXPORTS void log64f(const double* src, double* dst, int n);
93
-
94
- CV_EXPORTS void fastAtan32f(const float* y, const float* x, float* dst, int n, bool angleInDegrees);
95
- CV_EXPORTS void fastAtan64f(const double* y, const double* x, double* dst, int n, bool angleInDegrees);
96
- CV_EXPORTS void magnitude32f(const float* x, const float* y, float* dst, int n);
97
- CV_EXPORTS void magnitude64f(const double* x, const double* y, double* dst, int n);
98
- CV_EXPORTS void sqrt32f(const float* src, float* dst, int len);
99
- CV_EXPORTS void sqrt64f(const double* src, double* dst, int len);
100
- CV_EXPORTS void invSqrt32f(const float* src, float* dst, int len);
101
- CV_EXPORTS void invSqrt64f(const double* src, double* dst, int len);
102
-
103
- CV_EXPORTS void split8u(const uchar* src, uchar** dst, int len, int cn );
104
- CV_EXPORTS void split16u(const ushort* src, ushort** dst, int len, int cn );
105
- CV_EXPORTS void split32s(const int* src, int** dst, int len, int cn );
106
- CV_EXPORTS void split64s(const int64* src, int64** dst, int len, int cn );
107
-
108
- CV_EXPORTS void merge8u(const uchar** src, uchar* dst, int len, int cn );
109
- CV_EXPORTS void merge16u(const ushort** src, ushort* dst, int len, int cn );
110
- CV_EXPORTS void merge32s(const int** src, int* dst, int len, int cn );
111
- CV_EXPORTS void merge64s(const int64** src, int64* dst, int len, int cn );
112
-
113
- CV_EXPORTS void add8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
114
- CV_EXPORTS void add8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* );
115
- CV_EXPORTS void add16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* );
116
- CV_EXPORTS void add16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* );
117
- CV_EXPORTS void add32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* );
118
- CV_EXPORTS void add32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* );
119
- CV_EXPORTS void add64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* );
120
-
121
- CV_EXPORTS void sub8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
122
- CV_EXPORTS void sub8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* );
123
- CV_EXPORTS void sub16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* );
124
- CV_EXPORTS void sub16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* );
125
- CV_EXPORTS void sub32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* );
126
- CV_EXPORTS void sub32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* );
127
- CV_EXPORTS void sub64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* );
128
-
129
- CV_EXPORTS void max8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
130
- CV_EXPORTS void max8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* );
131
- CV_EXPORTS void max16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* );
132
- CV_EXPORTS void max16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* );
133
- CV_EXPORTS void max32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* );
134
- CV_EXPORTS void max32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* );
135
- CV_EXPORTS void max64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* );
136
-
137
- CV_EXPORTS void min8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
138
- CV_EXPORTS void min8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* );
139
- CV_EXPORTS void min16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* );
140
- CV_EXPORTS void min16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* );
141
- CV_EXPORTS void min32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* );
142
- CV_EXPORTS void min32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* );
143
- CV_EXPORTS void min64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* );
144
-
145
- CV_EXPORTS void absdiff8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
146
- CV_EXPORTS void absdiff8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* );
147
- CV_EXPORTS void absdiff16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* );
148
- CV_EXPORTS void absdiff16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* );
149
- CV_EXPORTS void absdiff32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* );
150
- CV_EXPORTS void absdiff32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* );
151
- CV_EXPORTS void absdiff64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* );
152
-
153
- CV_EXPORTS void and8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
154
- CV_EXPORTS void or8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
155
- CV_EXPORTS void xor8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
156
- CV_EXPORTS void not8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* );
157
-
158
- CV_EXPORTS void cmp8u(const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
159
- CV_EXPORTS void cmp8s(const schar* src1, size_t step1, const schar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
160
- CV_EXPORTS void cmp16u(const ushort* src1, size_t step1, const ushort* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
161
- CV_EXPORTS void cmp16s(const short* src1, size_t step1, const short* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
162
- CV_EXPORTS void cmp32s(const int* src1, size_t step1, const int* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
163
- CV_EXPORTS void cmp32f(const float* src1, size_t step1, const float* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
164
- CV_EXPORTS void cmp64f(const double* src1, size_t step1, const double* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _cmpop);
165
-
166
- CV_EXPORTS void mul8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* scale);
167
- CV_EXPORTS void mul8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* scale);
168
- CV_EXPORTS void mul16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* scale);
169
- CV_EXPORTS void mul16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* scale);
170
- CV_EXPORTS void mul32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* scale);
171
- CV_EXPORTS void mul32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* scale);
172
- CV_EXPORTS void mul64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* scale);
173
-
174
- CV_EXPORTS void div8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* scale);
175
- CV_EXPORTS void div8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* scale);
176
- CV_EXPORTS void div16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* scale);
177
- CV_EXPORTS void div16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* scale);
178
- CV_EXPORTS void div32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* scale);
179
- CV_EXPORTS void div32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* scale);
180
- CV_EXPORTS void div64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* scale);
181
-
182
- CV_EXPORTS void recip8u( const uchar *, size_t, const uchar * src2, size_t step2, uchar* dst, size_t step, int width, int height, void* scale);
183
- CV_EXPORTS void recip8s( const schar *, size_t, const schar * src2, size_t step2, schar* dst, size_t step, int width, int height, void* scale);
184
- CV_EXPORTS void recip16u( const ushort *, size_t, const ushort * src2, size_t step2, ushort* dst, size_t step, int width, int height, void* scale);
185
- CV_EXPORTS void recip16s( const short *, size_t, const short * src2, size_t step2, short* dst, size_t step, int width, int height, void* scale);
186
- CV_EXPORTS void recip32s( const int *, size_t, const int * src2, size_t step2, int* dst, size_t step, int width, int height, void* scale);
187
- CV_EXPORTS void recip32f( const float *, size_t, const float * src2, size_t step2, float* dst, size_t step, int width, int height, void* scale);
188
- CV_EXPORTS void recip64f( const double *, size_t, const double * src2, size_t step2, double* dst, size_t step, int width, int height, void* scale);
189
-
190
- CV_EXPORTS void addWeighted8u( const uchar* src1, size_t step1, const uchar* src2, size_t step2, uchar* dst, size_t step, int width, int height, void* _scalars );
191
- CV_EXPORTS void addWeighted8s( const schar* src1, size_t step1, const schar* src2, size_t step2, schar* dst, size_t step, int width, int height, void* scalars );
192
- CV_EXPORTS void addWeighted16u( const ushort* src1, size_t step1, const ushort* src2, size_t step2, ushort* dst, size_t step, int width, int height, void* scalars );
193
- CV_EXPORTS void addWeighted16s( const short* src1, size_t step1, const short* src2, size_t step2, short* dst, size_t step, int width, int height, void* scalars );
194
- CV_EXPORTS void addWeighted32s( const int* src1, size_t step1, const int* src2, size_t step2, int* dst, size_t step, int width, int height, void* scalars );
195
- CV_EXPORTS void addWeighted32f( const float* src1, size_t step1, const float* src2, size_t step2, float* dst, size_t step, int width, int height, void* scalars );
196
- CV_EXPORTS void addWeighted64f( const double* src1, size_t step1, const double* src2, size_t step2, double* dst, size_t step, int width, int height, void* scalars );
197
-
198
- CV_EXPORTS void cvt16f32f( const float16_t* src, float* dst, int len );
199
- CV_EXPORTS void cvt32f16f( const float* src, float16_t* dst, int len );
200
-
201
- CV_EXPORTS void addRNGBias32f( float* arr, const float* scaleBiasPairs, int len );
202
- CV_EXPORTS void addRNGBias64f( double* arr, const double* scaleBiasPairs, int len );
203
-
204
- struct CV_EXPORTS DFT1D
205
- {
206
- static Ptr<DFT1D> create(int len, int count, int depth, int flags, bool * useBuffer = 0);
207
- virtual void apply(const uchar *src, uchar *dst) = 0;
208
- virtual ~DFT1D() {}
209
- };
210
-
211
- struct CV_EXPORTS DFT2D
212
- {
213
- static Ptr<DFT2D> create(int width, int height, int depth,
214
- int src_channels, int dst_channels,
215
- int flags, int nonzero_rows = 0);
216
- virtual void apply(const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) = 0;
217
- virtual ~DFT2D() {}
218
- };
219
-
220
- struct CV_EXPORTS DCT2D
221
- {
222
- static Ptr<DCT2D> create(int width, int height, int depth, int flags);
223
- virtual void apply(const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) = 0;
224
- virtual ~DCT2D() {}
225
- };
226
-
227
- //! @} core_hal
228
-
229
- //=============================================================================
230
- // for binary compatibility with 3.0
231
-
232
- //! @cond IGNORED
233
-
234
- CV_EXPORTS int LU(float* A, size_t astep, int m, float* b, size_t bstep, int n);
235
- CV_EXPORTS int LU(double* A, size_t astep, int m, double* b, size_t bstep, int n);
236
- CV_EXPORTS bool Cholesky(float* A, size_t astep, int m, float* b, size_t bstep, int n);
237
- CV_EXPORTS bool Cholesky(double* A, size_t astep, int m, double* b, size_t bstep, int n);
238
-
239
- CV_EXPORTS void exp(const float* src, float* dst, int n);
240
- CV_EXPORTS void exp(const double* src, double* dst, int n);
241
- CV_EXPORTS void log(const float* src, float* dst, int n);
242
- CV_EXPORTS void log(const double* src, double* dst, int n);
243
-
244
- CV_EXPORTS void fastAtan2(const float* y, const float* x, float* dst, int n, bool angleInDegrees);
245
- CV_EXPORTS void magnitude(const float* x, const float* y, float* dst, int n);
246
- CV_EXPORTS void magnitude(const double* x, const double* y, double* dst, int n);
247
- CV_EXPORTS void sqrt(const float* src, float* dst, int len);
248
- CV_EXPORTS void sqrt(const double* src, double* dst, int len);
249
- CV_EXPORTS void invSqrt(const float* src, float* dst, int len);
250
- CV_EXPORTS void invSqrt(const double* src, double* dst, int len);
251
-
252
- //! @endcond
253
-
254
- }} //cv::hal
255
-
256
- #endif //OPENCV_HAL_HPP
@@ -1,190 +0,0 @@
1
- #ifndef OPENCV_CORE_HAL_INTERFACE_H
2
- #define OPENCV_CORE_HAL_INTERFACE_H
3
-
4
- //! @addtogroup core_hal_interface
5
- //! @{
6
-
7
- //! @name Return codes
8
- //! @{
9
- #define CV_HAL_ERROR_OK 0
10
- #define CV_HAL_ERROR_NOT_IMPLEMENTED 1
11
- #define CV_HAL_ERROR_UNKNOWN -1
12
- //! @}
13
-
14
- #ifdef __cplusplus
15
- #include <cstddef>
16
- #else
17
- #include <stddef.h>
18
- #include <stdbool.h>
19
- #endif
20
-
21
- //! @name Data types
22
- //! primitive types
23
- //! - schar - signed 1 byte integer
24
- //! - uchar - unsigned 1 byte integer
25
- //! - short - signed 2 byte integer
26
- //! - ushort - unsigned 2 byte integer
27
- //! - int - signed 4 byte integer
28
- //! - uint - unsigned 4 byte integer
29
- //! - int64 - signed 8 byte integer
30
- //! - uint64 - unsigned 8 byte integer
31
- //! @{
32
- #if !defined _MSC_VER && !defined __BORLANDC__
33
- # if defined __cplusplus && __cplusplus >= 201103L && !defined __APPLE__
34
- # include <cstdint>
35
- # ifdef __NEWLIB__
36
- typedef unsigned int uint;
37
- # else
38
- typedef std::uint32_t uint;
39
- # endif
40
- # else
41
- # include <stdint.h>
42
- typedef uint32_t uint;
43
- # endif
44
- #else
45
- typedef unsigned uint;
46
- #endif
47
-
48
- typedef signed char schar;
49
-
50
- #ifndef __IPL_H__
51
- typedef unsigned char uchar;
52
- typedef unsigned short ushort;
53
- #endif
54
-
55
- #if defined _MSC_VER || defined __BORLANDC__
56
- typedef __int64 int64;
57
- typedef unsigned __int64 uint64;
58
- # define CV_BIG_INT(n) n##I64
59
- # define CV_BIG_UINT(n) n##UI64
60
- #else
61
- typedef int64_t int64;
62
- typedef uint64_t uint64;
63
- # define CV_BIG_INT(n) n##LL
64
- # define CV_BIG_UINT(n) n##ULL
65
- #endif
66
-
67
- #define CV_USRTYPE1 (void)"CV_USRTYPE1 support has been dropped in OpenCV 4.0"
68
-
69
- #define CV_CN_MAX 512
70
- #define CV_CN_SHIFT 3
71
- #define CV_DEPTH_MAX (1 << CV_CN_SHIFT)
72
-
73
- #define CV_8U 0
74
- #define CV_8S 1
75
- #define CV_16U 2
76
- #define CV_16S 3
77
- #define CV_32S 4
78
- #define CV_32F 5
79
- #define CV_64F 6
80
- #define CV_16F 7
81
-
82
- #define CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1)
83
- #define CV_MAT_DEPTH(flags) ((flags) & CV_MAT_DEPTH_MASK)
84
-
85
- #define CV_MAKETYPE(depth,cn) (CV_MAT_DEPTH(depth) + (((cn)-1) << CV_CN_SHIFT))
86
- #define CV_MAKE_TYPE CV_MAKETYPE
87
-
88
- #define CV_8UC1 CV_MAKETYPE(CV_8U,1)
89
- #define CV_8UC2 CV_MAKETYPE(CV_8U,2)
90
- #define CV_8UC3 CV_MAKETYPE(CV_8U,3)
91
- #define CV_8UC4 CV_MAKETYPE(CV_8U,4)
92
- #define CV_8UC(n) CV_MAKETYPE(CV_8U,(n))
93
-
94
- #define CV_8SC1 CV_MAKETYPE(CV_8S,1)
95
- #define CV_8SC2 CV_MAKETYPE(CV_8S,2)
96
- #define CV_8SC3 CV_MAKETYPE(CV_8S,3)
97
- #define CV_8SC4 CV_MAKETYPE(CV_8S,4)
98
- #define CV_8SC(n) CV_MAKETYPE(CV_8S,(n))
99
-
100
- #define CV_16UC1 CV_MAKETYPE(CV_16U,1)
101
- #define CV_16UC2 CV_MAKETYPE(CV_16U,2)
102
- #define CV_16UC3 CV_MAKETYPE(CV_16U,3)
103
- #define CV_16UC4 CV_MAKETYPE(CV_16U,4)
104
- #define CV_16UC(n) CV_MAKETYPE(CV_16U,(n))
105
-
106
- #define CV_16SC1 CV_MAKETYPE(CV_16S,1)
107
- #define CV_16SC2 CV_MAKETYPE(CV_16S,2)
108
- #define CV_16SC3 CV_MAKETYPE(CV_16S,3)
109
- #define CV_16SC4 CV_MAKETYPE(CV_16S,4)
110
- #define CV_16SC(n) CV_MAKETYPE(CV_16S,(n))
111
-
112
- #define CV_32SC1 CV_MAKETYPE(CV_32S,1)
113
- #define CV_32SC2 CV_MAKETYPE(CV_32S,2)
114
- #define CV_32SC3 CV_MAKETYPE(CV_32S,3)
115
- #define CV_32SC4 CV_MAKETYPE(CV_32S,4)
116
- #define CV_32SC(n) CV_MAKETYPE(CV_32S,(n))
117
-
118
- #define CV_32FC1 CV_MAKETYPE(CV_32F,1)
119
- #define CV_32FC2 CV_MAKETYPE(CV_32F,2)
120
- #define CV_32FC3 CV_MAKETYPE(CV_32F,3)
121
- #define CV_32FC4 CV_MAKETYPE(CV_32F,4)
122
- #define CV_32FC(n) CV_MAKETYPE(CV_32F,(n))
123
-
124
- #define CV_64FC1 CV_MAKETYPE(CV_64F,1)
125
- #define CV_64FC2 CV_MAKETYPE(CV_64F,2)
126
- #define CV_64FC3 CV_MAKETYPE(CV_64F,3)
127
- #define CV_64FC4 CV_MAKETYPE(CV_64F,4)
128
- #define CV_64FC(n) CV_MAKETYPE(CV_64F,(n))
129
-
130
- #define CV_16FC1 CV_MAKETYPE(CV_16F,1)
131
- #define CV_16FC2 CV_MAKETYPE(CV_16F,2)
132
- #define CV_16FC3 CV_MAKETYPE(CV_16F,3)
133
- #define CV_16FC4 CV_MAKETYPE(CV_16F,4)
134
- #define CV_16FC(n) CV_MAKETYPE(CV_16F,(n))
135
- //! @}
136
-
137
- //! @name Comparison operation
138
- //! @sa cv::CmpTypes
139
- //! @{
140
- #define CV_HAL_CMP_EQ 0
141
- #define CV_HAL_CMP_GT 1
142
- #define CV_HAL_CMP_GE 2
143
- #define CV_HAL_CMP_LT 3
144
- #define CV_HAL_CMP_LE 4
145
- #define CV_HAL_CMP_NE 5
146
- //! @}
147
-
148
- //! @name Border processing modes
149
- //! @sa cv::BorderTypes
150
- //! @{
151
- #define CV_HAL_BORDER_CONSTANT 0
152
- #define CV_HAL_BORDER_REPLICATE 1
153
- #define CV_HAL_BORDER_REFLECT 2
154
- #define CV_HAL_BORDER_WRAP 3
155
- #define CV_HAL_BORDER_REFLECT_101 4
156
- #define CV_HAL_BORDER_TRANSPARENT 5
157
- #define CV_HAL_BORDER_ISOLATED 16
158
- //! @}
159
-
160
- //! @name DFT flags
161
- //! @{
162
- #define CV_HAL_DFT_INVERSE 1
163
- #define CV_HAL_DFT_SCALE 2
164
- #define CV_HAL_DFT_ROWS 4
165
- #define CV_HAL_DFT_COMPLEX_OUTPUT 16
166
- #define CV_HAL_DFT_REAL_OUTPUT 32
167
- #define CV_HAL_DFT_TWO_STAGE 64
168
- #define CV_HAL_DFT_STAGE_COLS 128
169
- #define CV_HAL_DFT_IS_CONTINUOUS 512
170
- #define CV_HAL_DFT_IS_INPLACE 1024
171
- //! @}
172
-
173
- //! @name SVD flags
174
- //! @{
175
- #define CV_HAL_SVD_NO_UV 1
176
- #define CV_HAL_SVD_SHORT_UV 2
177
- #define CV_HAL_SVD_MODIFY_A 4
178
- #define CV_HAL_SVD_FULL_UV 8
179
- //! @}
180
-
181
- //! @name Gemm flags
182
- //! @{
183
- #define CV_HAL_GEMM_1_T 1
184
- #define CV_HAL_GEMM_2_T 2
185
- #define CV_HAL_GEMM_3_T 4
186
- //! @}
187
-
188
- //! @}
189
-
190
- #endif