• iPanda's avatar
    Merge pull request #13972 from Mainvooid:add_cuda_support_for_D3D11_interop · 097fc1a2
    iPanda authored
    * 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
    097fc1a2
Name
Last commit
Last update
..
calib3d Loading commit data...
core Loading commit data...
cudaarithm Loading commit data...
cudabgsegm Loading commit data...
cudacodec Loading commit data...
cudafeatures2d Loading commit data...
cudafilters Loading commit data...
cudaimgproc Loading commit data...
cudalegacy Loading commit data...
cudaobjdetect Loading commit data...
cudaoptflow Loading commit data...
cudastereo Loading commit data...
cudawarping Loading commit data...
cudev Loading commit data...
dnn Loading commit data...
features2d Loading commit data...
flann Loading commit data...
highgui Loading commit data...
imgcodecs Loading commit data...
imgproc Loading commit data...
java Loading commit data...
js Loading commit data...
ml Loading commit data...
objdetect Loading commit data...
photo Loading commit data...
python Loading commit data...
shape Loading commit data...
stitching Loading commit data...
superres Loading commit data...
ts Loading commit data...
video Loading commit data...
videoio Loading commit data...
videostab Loading commit data...
viz Loading commit data...
world Loading commit data...
CMakeLists.txt Loading commit data...