opencv/modules/core/src
iPanda 097fc1a271 Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop
* Add CUDA support for D3D11 interop. #13888

color_detail.hpp: fixed build error : dynamic initialization is not supported for a __constant__ variable.
directx.cpp: Add CUDA support(cl_nv_d3d11_sharing) for D3D11 interop.  #13888

Update directx.cpp

Format adjustment.

Update directx.cpp

fix error.

Update directx.cpp

Format adjustment

Update directx.cpp

fix trailing whitespace.

fix format errors

convert indentation to spaces .
Trim trailing whitespace.
Add information about source of cl_d3d11_ext.h
Avoid unrelated changes.

Increase compile-time conditional judgment.

Increase the judgment of whether the OCL device has the required extensions at compile time.

Add compilation option  `HAVE_CLNVEXT`.Check CL support in runtime.

Check result of `clGetExtensionFunctionAddressForPlatform` for KHR is invalid.It always can get the address(from OpenCL.dll),So I check NV support(from nvopencl64.dll) before KHR when `HAVE_CLNVEXT` is enabled.

Delete cl_d3d11_ext.h

Modified parameter list

fix "cannot open include file: 'CL/cl_d3d11_ext.h'"

 remove not referenced var

fix C2143: syntax error

Improve compile-time judgment.

dlrectx.cpp Modify the detection order.
initializeContextFromD3D11Device:
```
    // try with NV(Need to check it first)
    // try with KHR
```

fix warnig C4100

Revert "fix warnig C4100"

This reverts commit 76e5becb67780071d0cbde61cc4f5f807ad7c5ac.

fix warning C4100

fix warning C4505

Format alignment

Format adjustment and automatically detect header files.

Automatically detect header files when users are not configured or configuration errors occur.

avoid unrelated changes.

Update .cmake

Update .cmake

* fix build errors

* fix warning:defined but not used

* Revert "fix warning:defined but not used"

This reverts commit 7ab3537cd070f89b15bc2926e4ac9ec74c84a122.

* fix warning:defined but not used

* fix build error for mac

* fix build error for win

* optimizing branch judgment

* Revert "optimizing branch judgment"

This reverts commit 88b72b870ec13fd26f64a5ac374484c5cfe80854.

* fix warning C4702: unreachable code

* remove unused code

* Fix problems that may lead to undefined behavior

* Add status check

* fix error C2664,C2665 : cannot convert argument

* Format adjustment

VSCODE will automatically format the indentation to 4 spaces in some situation.

* fix error C2440

* fix error C2440

* add cl_d3d11_ext.h

* Format adjustment

* remove unnecessary checks
2019-03-24 18:34:09 +03:00
..
cuda Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
opencl core(ocl): replace ambiguous 'depth' to 'DEPTH_dst' 2018-10-14 02:18:04 +00:00
utils spelling fixes 2019-02-11 15:35:10 +03:00
algorithm.cpp Python: wrap Algorithm::read and Algorithm::write 2017-11-27 17:04:56 +01:00
alloc.cpp build: unreachable code after CV_Error() (part 2) 2018-04-24 16:03:40 +03:00
arithm_ipp.hpp core: reimplement SIMD arithmetic, logic and comparison operations into wide universal intrinsics 2018-10-30 12:48:31 +02:00
arithm.cpp Replaced core module calls to universal intrinsics with wide universal intrinsics 2018-12-04 16:24:20 +03:00
arithm.dispatch.cpp core: reimplement SIMD arithmetic, logic and comparison operations into wide universal intrinsics 2018-10-30 12:48:31 +02:00
arithm.simd.hpp core: reimplement SIMD arithmetic, logic and comparison operations into wide universal intrinsics 2018-10-30 12:48:31 +02:00
array.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
batch_distance.cpp remove non-ideal pairs when using crosscheck in batchdistance 2018-10-26 20:25:24 +00:00
bindings_utils.cpp spelling fixes 2019-02-11 15:35:10 +03:00
bufferpool.impl.hpp Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
channels.cpp Merge pull request #12877 from maver1:3.4 2018-10-24 15:02:53 +03:00
check.cpp avoid negative index. 2018-07-14 16:05:29 +08:00
command_line_parser.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
conjugate_gradient.cpp opencv: Use cv::AutoBuffer<>::data() 2018-07-04 19:11:29 +03:00
convert_c.cpp Split convert.cpp into smaller pieces 2018-02-12 15:17:19 +03:00
convert_scale.dispatch.cpp core: dispatch convert_scale 2019-02-08 18:32:10 +03:00
convert_scale.simd.hpp core: dispatch convert_scale 2019-02-08 18:32:10 +03:00
convert.dispatch.cpp core: dispatch convert 2019-02-08 18:32:10 +03:00
convert.hpp Merge pull request #12411 from vpisarev:wide_convert 2018-09-06 19:36:59 +03:00
convert.simd.hpp core: dispatch convert 2019-02-08 18:32:10 +03:00
copy.cpp Merge pull request #13193 from berak:core_copyMakeBorder 2018-11-17 13:19:42 +03:00
count_non_zero.dispatch.cpp core: dispatch count_non_zero 2019-02-14 13:16:20 +03:00
count_non_zero.simd.hpp core: dispatch count_non_zero 2019-02-14 13:16:20 +03:00
cuda_gpu_mat.cpp Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cuda_host_mem.cpp build: fix warnings 2019-03-05 14:47:04 +03:00
cuda_info.cpp Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
cuda_stream.cpp MSVC: Slience external/meaningless warnings 2018-09-12 20:02:13 +09:00
datastructs.cpp Misc. typos 2018-07-31 18:44:23 +03:00
directx.cpp Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop 2019-03-24 18:34:09 +03:00
directx.inc.hpp Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop 2019-03-24 18:34:09 +03:00
downhill_simplex.cpp core: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
dxt.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
gl_core_3_1.cpp build: unreachable code after CV_Error() (part 2) 2018-04-24 16:03:40 +03:00
gl_core_3_1.hpp
glob.cpp Fix build error when building with Unicode on Windows 2019-01-07 10:18:58 -08:00
hal_internal.cpp core(lapack): fix build issues related to 'extern "C"' 2018-01-24 14:53:04 +03:00
hal_internal.hpp
hal_replacement.hpp HAL for minMaxIdx 2017-12-22 12:56:52 +03:00
intel_gpu_gemm.inl.hpp core(ocl): fix parameters for 'intelblas_gemm_buffer_NT' kernel 2017-11-02 12:50:32 +03:00
kmeans.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
lapack.cpp Replaced core module calls to universal intrinsics with wide universal intrinsics 2018-10-15 11:46:45 +03:00
lda.cpp core: add iterations limit check in eigenNonSymmetric() 2019-03-18 17:49:17 +03:00
logger.cpp core: set default logger level to 'warning' in Release builds 2018-06-05 18:39:47 +03:00
lpsolver.cpp core: add solveLP type checks for output 2018-09-01 14:51:44 +00:00
lut.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
mathfuncs_core.dispatch.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
mathfuncs_core.simd.hpp Merge pull request #12799 from alalek:update_build_js 2018-10-15 17:35:21 +03:00
mathfuncs.cpp core: rework getContinuousSize() for vector-col/row support 2018-11-10 11:08:28 +00:00
mathfuncs.hpp core: move const tables outside of dispatched code 2018-08-08 17:54:54 +03:00
matmul.dispatch.cpp core: dispatch matmul 2019-02-18 14:36:46 +03:00
matmul.simd.hpp transform() implementation updated to utilize wide universal intrinsics 2019-03-18 20:33:19 +03:00
matrix_c.cpp don't use constructors for C API structures 2018-09-06 14:34:16 +03:00
matrix_decomp.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
matrix_expressions.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
matrix_iterator.cpp Split matrix.cpp into smaller pieces 2018-02-05 19:16:33 +03:00
matrix_operations.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
matrix_sparse.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
matrix_wrap.cpp core: fix condition in OutputArray::create(allowTransposed=True) 2019-03-05 16:26:59 +03:00
matrix.cpp core: rework getContinuousSize() for vector-col/row support 2018-11-10 11:08:28 +00:00
mean.dispatch.cpp core: dispatch mean.cpp 2019-02-19 16:58:32 +03:00
mean.simd.hpp core: dispatch mean.cpp 2019-02-19 16:58:32 +03:00
merge.dispatch.cpp core: dispatch merge.cpp 2019-02-23 15:42:26 +00:00
merge.simd.hpp core: dispatch merge.cpp 2019-02-23 15:42:26 +00:00
minmax.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
norm.cpp Merge pull request #13317 from terfendail:norm_wintr 2018-11-29 19:34:14 +03:00
ocl_deprecated.hpp ocl: low-level API to support OpenCL binary programs 2017-12-05 22:25:14 +03:00
ocl.cpp fix static analysis issues 2019-03-13 17:19:39 +03:00
opengl.cpp build: fix warnings 2019-03-05 14:47:04 +03:00
out.cpp core: apply CV_OVERRIDE/CV_FINAL 2018-03-28 17:57:59 +03:00
ovx.cpp
parallel_impl.cpp core: fix mm_pause() for non-SSE i386 builds 2018-04-09 18:37:35 +03:00
parallel_impl.hpp core: fix pthreads performance 2018-01-26 04:09:11 +00:00
parallel.cpp fix numThreadsMax for OpenMP 2018-11-21 10:54:24 +08:00
pca.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
persistence_base64.cpp Merge pull request #11353 from eecsninja:3.4 2018-04-20 15:31:47 +03:00
persistence_c.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
persistence_cpp.cpp Add a test for FileNode::keys() 2018-11-12 13:38:18 +03:00
persistence_json.cpp backport fixes for static analyzer warnings 2018-09-04 16:49:42 +03:00
persistence_types.cpp refactoring catching all exceptions as const ref 2018-11-08 19:59:47 +03:00
persistence_xml.cpp core: added checks and "fixit" items for persistence parsers 2018-03-27 16:19:43 +03:00
persistence_yml.cpp core: added checks and "fixit" items for persistence parsers 2018-03-27 16:19:43 +03:00
persistence.cpp refactor: don't use CV_ErrorNoReturn() internally 2018-04-24 15:38:42 +03:00
persistence.hpp build: enable -Wimplicit-fallthrough warning for OpenCV modules 2018-04-19 19:54:03 +03:00
precomp.hpp spelling fixes 2019-02-11 15:35:10 +03:00
rand.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
softfloat.cpp build: enable -Wimplicit-fallthrough warning for OpenCV modules 2018-04-19 19:54:03 +03:00
split.dispatch.cpp core: dispatch split.cpp 2019-02-22 09:54:31 +00:00
split.simd.hpp core: dispatch split.cpp 2019-02-22 09:54:31 +00:00
stat_c.cpp don't use constructors for C API structures 2018-09-06 14:34:16 +03:00
stat.dispatch.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
stat.hpp Split stat.cpp into smaller pieces 2018-02-12 14:14:08 +03:00
stat.simd.hpp
stl.cpp
sum.dispatch.cpp core: dispatch sum 2019-02-13 18:17:38 +03:00
sum.simd.hpp core: dispatch sum 2019-02-13 18:17:38 +03:00
system.cpp core: several improves and fixes on ppc64le infrastructure 2018-11-20 15:28:46 +00:00
tables.cpp
trace.cpp Utilize CV_UNUSED macro 2018-09-07 20:33:52 +09:00
types.cpp Add semicolons after CV_INSTRUMENT macros 2018-09-14 06:45:31 +09:00
umatrix.cpp Revert CV_TRY/CV_CATCH macros 2018-11-08 19:56:52 +03:00
umatrix.hpp core(ocl): fix deadlock in UMatDataAutoLock 2018-01-16 17:33:06 +03:00
va_intel.cpp Fixed compilation with VA-interop on 32-bit platforms 2018-12-03 17:16:09 +03:00