node-native-win-utils 1.1.1 → 1.3.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.
- package/README.md +144 -27
- package/binding.gyp +18 -5
- package/dist/index.d.ts +146 -4
- package/dist/index.js +107 -3
- package/include/opencv2/core/affine.hpp +678 -0
- package/include/opencv2/core/async.hpp +105 -0
- package/include/opencv2/core/base.hpp +664 -0
- package/include/opencv2/core/bindings_utils.hpp +325 -0
- package/include/opencv2/core/bufferpool.hpp +40 -0
- package/include/opencv2/core/check.hpp +170 -0
- package/include/opencv2/core/core.hpp +48 -0
- package/include/opencv2/core/core_c.h +3128 -0
- package/include/opencv2/core/cuda/block.hpp +211 -0
- package/include/opencv2/core/cuda/border_interpolate.hpp +722 -0
- package/include/opencv2/core/cuda/color.hpp +309 -0
- package/include/opencv2/core/cuda/common.hpp +131 -0
- package/include/opencv2/core/cuda/datamov_utils.hpp +113 -0
- package/include/opencv2/core/cuda/detail/color_detail.hpp +2018 -0
- package/include/opencv2/core/cuda/detail/reduce.hpp +365 -0
- package/include/opencv2/core/cuda/detail/reduce_key_val.hpp +502 -0
- package/include/opencv2/core/cuda/detail/transform_detail.hpp +392 -0
- package/include/opencv2/core/cuda/detail/type_traits_detail.hpp +191 -0
- package/include/opencv2/core/cuda/detail/vec_distance_detail.hpp +121 -0
- package/include/opencv2/core/cuda/dynamic_smem.hpp +88 -0
- package/include/opencv2/core/cuda/emulation.hpp +269 -0
- package/include/opencv2/core/cuda/filters.hpp +293 -0
- package/include/opencv2/core/cuda/funcattrib.hpp +79 -0
- package/include/opencv2/core/cuda/functional.hpp +805 -0
- package/include/opencv2/core/cuda/limits.hpp +128 -0
- package/include/opencv2/core/cuda/reduce.hpp +209 -0
- package/include/opencv2/core/cuda/saturate_cast.hpp +292 -0
- package/include/opencv2/core/cuda/scan.hpp +258 -0
- package/include/opencv2/core/cuda/simd_functions.hpp +869 -0
- package/include/opencv2/core/cuda/transform.hpp +75 -0
- package/include/opencv2/core/cuda/type_traits.hpp +90 -0
- package/include/opencv2/core/cuda/utility.hpp +230 -0
- package/include/opencv2/core/cuda/vec_distance.hpp +232 -0
- package/include/opencv2/core/cuda/vec_math.hpp +923 -0
- package/include/opencv2/core/cuda/vec_traits.hpp +288 -0
- package/include/opencv2/core/cuda/warp.hpp +139 -0
- package/include/opencv2/core/cuda/warp_reduce.hpp +76 -0
- package/include/opencv2/core/cuda/warp_shuffle.hpp +162 -0
- package/include/opencv2/core/cuda.hpp +1279 -0
- package/include/opencv2/core/cuda.inl.hpp +763 -0
- package/include/opencv2/core/cuda_stream_accessor.hpp +86 -0
- package/include/opencv2/core/cuda_types.hpp +144 -0
- package/include/opencv2/core/cv_cpu_dispatch.h +381 -0
- package/include/opencv2/core/cv_cpu_helper.h +550 -0
- package/include/opencv2/core/cvdef.h +973 -0
- package/include/opencv2/core/cvstd.hpp +190 -0
- package/include/opencv2/core/cvstd.inl.hpp +197 -0
- package/include/opencv2/core/cvstd_wrapper.hpp +154 -0
- package/include/opencv2/core/detail/async_promise.hpp +71 -0
- package/include/opencv2/core/detail/dispatch_helper.impl.hpp +49 -0
- package/include/opencv2/core/detail/exception_ptr.hpp +27 -0
- package/include/opencv2/core/directx.hpp +184 -0
- package/include/opencv2/core/dualquaternion.hpp +979 -0
- package/include/opencv2/core/dualquaternion.inl.hpp +487 -0
- package/include/opencv2/core/eigen.hpp +402 -0
- package/include/opencv2/core/fast_math.hpp +433 -0
- package/include/opencv2/core/hal/hal.hpp +256 -0
- package/include/opencv2/core/hal/interface.h +190 -0
- package/include/opencv2/core/hal/intrin.hpp +939 -0
- package/include/opencv2/core/hal/intrin_avx.hpp +3177 -0
- package/include/opencv2/core/hal/intrin_avx512.hpp +3090 -0
- package/include/opencv2/core/hal/intrin_cpp.hpp +3321 -0
- package/include/opencv2/core/hal/intrin_forward.hpp +191 -0
- package/include/opencv2/core/hal/intrin_lasx.hpp +3236 -0
- package/include/opencv2/core/hal/intrin_msa.hpp +1887 -0
- package/include/opencv2/core/hal/intrin_neon.hpp +2610 -0
- package/include/opencv2/core/hal/intrin_rvv.hpp +3320 -0
- package/include/opencv2/core/hal/intrin_rvv071.hpp +2545 -0
- package/include/opencv2/core/hal/intrin_rvv_scalable.hpp +2080 -0
- package/include/opencv2/core/hal/intrin_sse.hpp +3467 -0
- package/include/opencv2/core/hal/intrin_sse_em.hpp +180 -0
- package/include/opencv2/core/hal/intrin_vsx.hpp +1608 -0
- package/include/opencv2/core/hal/intrin_wasm.hpp +2782 -0
- package/include/opencv2/core/hal/msa_macros.h +1558 -0
- package/include/opencv2/core/hal/simd_utils.impl.hpp +186 -0
- package/include/opencv2/core/llapi/llapi.h +102 -0
- package/include/opencv2/core/mat.hpp +3775 -0
- package/include/opencv2/core/mat.inl.hpp +3422 -0
- package/include/opencv2/core/matx.hpp +1536 -0
- package/include/opencv2/core/neon_utils.hpp +128 -0
- package/include/opencv2/core/ocl.hpp +917 -0
- package/include/opencv2/core/ocl_genbase.hpp +69 -0
- package/include/opencv2/core/opencl/ocl_defs.hpp +82 -0
- package/include/opencv2/core/opencl/opencl_info.hpp +212 -0
- package/include/opencv2/core/opencl/opencl_svm.hpp +81 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clblas.hpp +602 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_clfft.hpp +146 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core.hpp +371 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_core_wrappers.hpp +272 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl.hpp +62 -0
- package/include/opencv2/core/opencl/runtime/autogenerated/opencl_gl_wrappers.hpp +42 -0
- package/include/opencv2/core/opencl/runtime/opencl_clblas.hpp +53 -0
- package/include/opencv2/core/opencl/runtime/opencl_clfft.hpp +53 -0
- package/include/opencv2/core/opencl/runtime/opencl_core.hpp +84 -0
- package/include/opencv2/core/opencl/runtime/opencl_core_wrappers.hpp +47 -0
- package/include/opencv2/core/opencl/runtime/opencl_gl.hpp +53 -0
- package/include/opencv2/core/opencl/runtime/opencl_gl_wrappers.hpp +47 -0
- package/include/opencv2/core/opencl/runtime/opencl_svm_20.hpp +48 -0
- package/include/opencv2/core/opencl/runtime/opencl_svm_definitions.hpp +42 -0
- package/include/opencv2/core/opencl/runtime/opencl_svm_hsa_extension.hpp +166 -0
- package/include/opencv2/core/opengl.hpp +733 -0
- package/include/opencv2/core/openvx/ovx_defs.hpp +48 -0
- package/include/opencv2/core/operations.hpp +610 -0
- package/include/opencv2/core/optim.hpp +302 -0
- package/include/opencv2/core/ovx.hpp +28 -0
- package/include/opencv2/core/parallel/backend/parallel_for.openmp.hpp +72 -0
- package/include/opencv2/core/parallel/backend/parallel_for.tbb.hpp +153 -0
- package/include/opencv2/core/parallel/parallel_backend.hpp +90 -0
- package/include/opencv2/core/persistence.hpp +1350 -0
- package/include/opencv2/core/private/cv_cpu_include_simd_declarations.hpp +30 -0
- package/include/opencv2/core/private.cuda.hpp +169 -0
- package/include/opencv2/core/private.hpp +896 -0
- package/include/opencv2/core/quaternion.hpp +1696 -0
- package/include/opencv2/core/quaternion.inl.hpp +1063 -0
- package/include/opencv2/core/saturate.hpp +180 -0
- package/include/opencv2/core/simd_intrinsics.hpp +87 -0
- package/include/opencv2/core/softfloat.hpp +514 -0
- package/include/opencv2/core/sse_utils.hpp +652 -0
- package/include/opencv2/core/traits.hpp +417 -0
- package/include/opencv2/core/types.hpp +2457 -0
- package/include/opencv2/core/types_c.h +2126 -0
- package/include/opencv2/core/utility.hpp +1229 -0
- package/include/opencv2/core/utils/allocator_stats.hpp +29 -0
- package/include/opencv2/core/utils/allocator_stats.impl.hpp +158 -0
- package/include/opencv2/core/utils/buffer_area.private.hpp +136 -0
- package/include/opencv2/core/utils/configuration.private.hpp +22 -0
- package/include/opencv2/core/utils/filesystem.hpp +82 -0
- package/include/opencv2/core/utils/filesystem.private.hpp +66 -0
- package/include/opencv2/core/utils/fp_control.private.hpp +29 -0
- package/include/opencv2/core/utils/fp_control_utils.hpp +69 -0
- package/include/opencv2/core/utils/instrumentation.hpp +125 -0
- package/include/opencv2/core/utils/lock.private.hpp +119 -0
- package/include/opencv2/core/utils/logger.defines.hpp +42 -0
- package/include/opencv2/core/utils/logger.hpp +218 -0
- package/include/opencv2/core/utils/logtag.hpp +28 -0
- package/include/opencv2/core/utils/plugin_loader.private.hpp +165 -0
- package/include/opencv2/core/utils/tls.hpp +235 -0
- package/include/opencv2/core/utils/trace.hpp +252 -0
- package/include/opencv2/core/utils/trace.private.hpp +421 -0
- package/include/opencv2/core/va_intel.hpp +75 -0
- package/include/opencv2/core/version.hpp +26 -0
- package/include/opencv2/core/vsx_utils.hpp +1047 -0
- package/include/opencv2/core.hpp +3365 -0
- package/include/opencv2/imgcodecs/imgcodecs.hpp +48 -0
- package/include/opencv2/imgcodecs/imgcodecs_c.h +1 -0
- package/include/opencv2/imgcodecs/ios.h +59 -0
- package/include/opencv2/imgcodecs/legacy/constants_c.h +54 -0
- package/include/opencv2/imgcodecs/macosx.h +20 -0
- package/include/opencv2/imgcodecs.hpp +407 -0
- package/include/opencv2/imgproc/bindings.hpp +34 -0
- package/include/opencv2/imgproc/detail/gcgraph.hpp +395 -0
- package/include/opencv2/imgproc/hal/hal.hpp +246 -0
- package/include/opencv2/imgproc/hal/interface.h +46 -0
- package/include/opencv2/imgproc/imgproc.hpp +48 -0
- package/include/opencv2/imgproc/imgproc_c.h +1177 -0
- package/include/opencv2/imgproc/segmentation.hpp +141 -0
- package/include/opencv2/imgproc/types_c.h +659 -0
- package/include/opencv2/imgproc.hpp +5035 -0
- package/include/opencv2/opencv_modules.hpp +17 -0
- package/libs/libjpeg-turbo.lib +0 -0
- package/libs/libpng.lib +0 -0
- package/libs/opencv_core470.lib +0 -0
- package/libs/opencv_imgcodecs470.lib +0 -0
- package/libs/opencv_imgproc470.lib +0 -0
- package/libs/zlib.lib +0 -0
- package/package.json +8 -2
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/cpp/capturewindow.cpp +36 -46
- package/src/cpp/main.cpp +10 -2
- package/src/cpp/opencv.cpp +425 -0
|
@@ -0,0 +1,128 @@
|
|
|
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) 2015, Itseez Inc., all rights reserved.
|
|
14
|
+
// Third party copyrights are property of their respective owners.
|
|
15
|
+
//
|
|
16
|
+
// Redistribution and use in source and binary forms, with or without modification,
|
|
17
|
+
// are permitted provided that the following conditions are met:
|
|
18
|
+
//
|
|
19
|
+
// * Redistribution's of source code must retain the above copyright notice,
|
|
20
|
+
// this list of conditions and the following disclaimer.
|
|
21
|
+
//
|
|
22
|
+
// * Redistribution's in binary form must reproduce the above copyright notice,
|
|
23
|
+
// this list of conditions and the following disclaimer in the documentation
|
|
24
|
+
// and/or other materials provided with the distribution.
|
|
25
|
+
//
|
|
26
|
+
// * The name of the copyright holders may not be used to endorse or promote products
|
|
27
|
+
// derived from this software without specific prior written permission.
|
|
28
|
+
//
|
|
29
|
+
// This software is provided by the copyright holders and contributors "as is" and
|
|
30
|
+
// any express or implied warranties, including, but not limited to, the implied
|
|
31
|
+
// warranties of merchantability and fitness for a particular purpose are disclaimed.
|
|
32
|
+
// In no event shall the Intel Corporation or contributors be liable for any direct,
|
|
33
|
+
// indirect, incidental, special, exemplary, or consequential damages
|
|
34
|
+
// (including, but not limited to, procurement of substitute goods or services;
|
|
35
|
+
// loss of use, data, or profits; or business interruption) however caused
|
|
36
|
+
// and on any theory of liability, whether in contract, strict liability,
|
|
37
|
+
// or tort (including negligence or otherwise) arising in any way out of
|
|
38
|
+
// the use of this software, even if advised of the possibility of such damage.
|
|
39
|
+
//
|
|
40
|
+
//M*/
|
|
41
|
+
|
|
42
|
+
#ifndef OPENCV_HAL_NEON_UTILS_HPP
|
|
43
|
+
#define OPENCV_HAL_NEON_UTILS_HPP
|
|
44
|
+
|
|
45
|
+
#include "opencv2/core/cvdef.h"
|
|
46
|
+
|
|
47
|
+
//! @addtogroup core_utils_neon
|
|
48
|
+
//! @{
|
|
49
|
+
|
|
50
|
+
#if CV_NEON
|
|
51
|
+
|
|
52
|
+
inline int32x2_t cv_vrnd_s32_f32(float32x2_t v)
|
|
53
|
+
{
|
|
54
|
+
static int32x2_t v_sign = vdup_n_s32(1 << 31),
|
|
55
|
+
v_05 = vreinterpret_s32_f32(vdup_n_f32(0.5f));
|
|
56
|
+
|
|
57
|
+
int32x2_t v_addition = vorr_s32(v_05, vand_s32(v_sign, vreinterpret_s32_f32(v)));
|
|
58
|
+
return vcvt_s32_f32(vadd_f32(v, vreinterpret_f32_s32(v_addition)));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
inline int32x4_t cv_vrndq_s32_f32(float32x4_t v)
|
|
62
|
+
{
|
|
63
|
+
static int32x4_t v_sign = vdupq_n_s32(1 << 31),
|
|
64
|
+
v_05 = vreinterpretq_s32_f32(vdupq_n_f32(0.5f));
|
|
65
|
+
|
|
66
|
+
int32x4_t v_addition = vorrq_s32(v_05, vandq_s32(v_sign, vreinterpretq_s32_f32(v)));
|
|
67
|
+
return vcvtq_s32_f32(vaddq_f32(v, vreinterpretq_f32_s32(v_addition)));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
inline uint32x2_t cv_vrnd_u32_f32(float32x2_t v)
|
|
71
|
+
{
|
|
72
|
+
static float32x2_t v_05 = vdup_n_f32(0.5f);
|
|
73
|
+
return vcvt_u32_f32(vadd_f32(v, v_05));
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
inline uint32x4_t cv_vrndq_u32_f32(float32x4_t v)
|
|
77
|
+
{
|
|
78
|
+
static float32x4_t v_05 = vdupq_n_f32(0.5f);
|
|
79
|
+
return vcvtq_u32_f32(vaddq_f32(v, v_05));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
inline float32x4_t cv_vrecpq_f32(float32x4_t val)
|
|
83
|
+
{
|
|
84
|
+
float32x4_t reciprocal = vrecpeq_f32(val);
|
|
85
|
+
reciprocal = vmulq_f32(vrecpsq_f32(val, reciprocal), reciprocal);
|
|
86
|
+
reciprocal = vmulq_f32(vrecpsq_f32(val, reciprocal), reciprocal);
|
|
87
|
+
return reciprocal;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
inline float32x2_t cv_vrecp_f32(float32x2_t val)
|
|
91
|
+
{
|
|
92
|
+
float32x2_t reciprocal = vrecpe_f32(val);
|
|
93
|
+
reciprocal = vmul_f32(vrecps_f32(val, reciprocal), reciprocal);
|
|
94
|
+
reciprocal = vmul_f32(vrecps_f32(val, reciprocal), reciprocal);
|
|
95
|
+
return reciprocal;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
inline float32x4_t cv_vrsqrtq_f32(float32x4_t val)
|
|
99
|
+
{
|
|
100
|
+
float32x4_t e = vrsqrteq_f32(val);
|
|
101
|
+
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), val), e);
|
|
102
|
+
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), val), e);
|
|
103
|
+
return e;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
inline float32x2_t cv_vrsqrt_f32(float32x2_t val)
|
|
107
|
+
{
|
|
108
|
+
float32x2_t e = vrsqrte_f32(val);
|
|
109
|
+
e = vmul_f32(vrsqrts_f32(vmul_f32(e, e), val), e);
|
|
110
|
+
e = vmul_f32(vrsqrts_f32(vmul_f32(e, e), val), e);
|
|
111
|
+
return e;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
inline float32x4_t cv_vsqrtq_f32(float32x4_t val)
|
|
115
|
+
{
|
|
116
|
+
return cv_vrecpq_f32(cv_vrsqrtq_f32(val));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
inline float32x2_t cv_vsqrt_f32(float32x2_t val)
|
|
120
|
+
{
|
|
121
|
+
return cv_vrecp_f32(cv_vrsqrt_f32(val));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
#endif
|
|
125
|
+
|
|
126
|
+
//! @}
|
|
127
|
+
|
|
128
|
+
#endif // OPENCV_HAL_NEON_UTILS_HPP
|