mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
097fc1a271
* 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 commit7ab3537cd0
. * 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 commit88b72b870e
. * 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
252 lines
5.3 KiB
C
252 lines
5.3 KiB
C
#ifndef OPENCV_CVCONFIG_H_INCLUDED
|
|
#define OPENCV_CVCONFIG_H_INCLUDED
|
|
|
|
/* OpenCV compiled as static or dynamic libs */
|
|
#cmakedefine BUILD_SHARED_LIBS
|
|
|
|
/* OpenCV intrinsics optimized code */
|
|
#cmakedefine CV_ENABLE_INTRINSICS
|
|
|
|
/* OpenCV additional optimized code */
|
|
#cmakedefine CV_DISABLE_OPTIMIZATION
|
|
|
|
/* Compile for 'real' NVIDIA GPU architectures */
|
|
#define CUDA_ARCH_BIN "${OPENCV_CUDA_ARCH_BIN}"
|
|
|
|
/* Create PTX or BIN for 1.0 compute capability */
|
|
#cmakedefine CUDA_ARCH_BIN_OR_PTX_10
|
|
|
|
/* NVIDIA GPU features are used */
|
|
#define CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES}"
|
|
|
|
/* Compile for 'virtual' NVIDIA PTX architectures */
|
|
#define CUDA_ARCH_PTX "${OPENCV_CUDA_ARCH_PTX}"
|
|
|
|
/* AVFoundation video libraries */
|
|
#cmakedefine HAVE_AVFOUNDATION
|
|
|
|
/* V4L capturing support */
|
|
#cmakedefine HAVE_CAMV4L
|
|
|
|
/* V4L2 capturing support */
|
|
#cmakedefine HAVE_CAMV4L2
|
|
|
|
/* Carbon windowing environment */
|
|
#cmakedefine HAVE_CARBON
|
|
|
|
/* AMD's Basic Linear Algebra Subprograms Library*/
|
|
#cmakedefine HAVE_CLAMDBLAS
|
|
|
|
/* AMD's OpenCL Fast Fourier Transform Library*/
|
|
#cmakedefine HAVE_CLAMDFFT
|
|
|
|
/* Clp support */
|
|
#cmakedefine HAVE_CLP
|
|
|
|
/* Cocoa API */
|
|
#cmakedefine HAVE_COCOA
|
|
|
|
/* C= */
|
|
#cmakedefine HAVE_CSTRIPES
|
|
|
|
/* NVIDIA CUDA Basic Linear Algebra Subprograms (BLAS) API*/
|
|
#cmakedefine HAVE_CUBLAS
|
|
|
|
/* NVIDIA CUDA Runtime API*/
|
|
#cmakedefine HAVE_CUDA
|
|
|
|
/* NVIDIA CUDA Fast Fourier Transform (FFT) API*/
|
|
#cmakedefine HAVE_CUFFT
|
|
|
|
/* IEEE1394 capturing support */
|
|
#cmakedefine HAVE_DC1394
|
|
|
|
/* IEEE1394 capturing support - libdc1394 v2.x */
|
|
#cmakedefine HAVE_DC1394_2
|
|
|
|
/* DirectX */
|
|
#cmakedefine HAVE_DIRECTX
|
|
#cmakedefine HAVE_DIRECTX_NV12
|
|
#cmakedefine HAVE_D3D11
|
|
#cmakedefine HAVE_D3D10
|
|
#cmakedefine HAVE_D3D9
|
|
|
|
/* DirectShow Video Capture library */
|
|
#cmakedefine HAVE_DSHOW
|
|
|
|
/* Eigen Matrix & Linear Algebra Library */
|
|
#cmakedefine HAVE_EIGEN
|
|
|
|
/* FFMpeg video library */
|
|
#cmakedefine HAVE_FFMPEG
|
|
|
|
/* Geospatial Data Abstraction Library */
|
|
#cmakedefine HAVE_GDAL
|
|
|
|
/* GStreamer multimedia framework */
|
|
#cmakedefine HAVE_GSTREAMER
|
|
|
|
/* GTK+ 2.0 Thread support */
|
|
#cmakedefine HAVE_GTHREAD
|
|
|
|
/* GTK+ 2.x toolkit */
|
|
#cmakedefine HAVE_GTK
|
|
|
|
/* Halide support */
|
|
#cmakedefine HAVE_HALIDE
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
|
|
/* Intel Perceptual Computing SDK library */
|
|
#cmakedefine HAVE_INTELPERC
|
|
|
|
/* Intel Integrated Performance Primitives */
|
|
#cmakedefine HAVE_IPP
|
|
#cmakedefine HAVE_IPP_ICV
|
|
#cmakedefine HAVE_IPP_IW
|
|
#cmakedefine HAVE_IPP_IW_LL
|
|
|
|
/* JPEG-2000 codec */
|
|
#cmakedefine HAVE_JASPER
|
|
|
|
/* IJG JPEG codec */
|
|
#cmakedefine HAVE_JPEG
|
|
|
|
/* libpng/png.h needs to be included */
|
|
#cmakedefine HAVE_LIBPNG_PNG_H
|
|
|
|
/* GDCM DICOM codec */
|
|
#cmakedefine HAVE_GDCM
|
|
|
|
/* V4L/V4L2 capturing support via libv4l */
|
|
#cmakedefine HAVE_LIBV4L
|
|
|
|
/* Microsoft Media Foundation Capture library */
|
|
#cmakedefine HAVE_MSMF
|
|
|
|
/* NVIDIA Video Decoding API*/
|
|
#cmakedefine HAVE_NVCUVID
|
|
|
|
/* NVIDIA Video Encoding API*/
|
|
#cmakedefine HAVE_NVCUVENC
|
|
|
|
/* OpenCL Support */
|
|
#cmakedefine HAVE_OPENCL
|
|
#cmakedefine HAVE_OPENCL_STATIC
|
|
#cmakedefine HAVE_OPENCL_SVM
|
|
|
|
/* NVIDIA OpenCL D3D Extensions support */
|
|
#cmakedefine HAVE_OPENCL_D3D11_NV
|
|
|
|
/* OpenEXR codec */
|
|
#cmakedefine HAVE_OPENEXR
|
|
|
|
/* OpenGL support*/
|
|
#cmakedefine HAVE_OPENGL
|
|
|
|
/* OpenNI library */
|
|
#cmakedefine HAVE_OPENNI
|
|
|
|
/* OpenNI library */
|
|
#cmakedefine HAVE_OPENNI2
|
|
|
|
/* PNG codec */
|
|
#cmakedefine HAVE_PNG
|
|
|
|
/* Posix threads (pthreads) */
|
|
#cmakedefine HAVE_PTHREAD
|
|
|
|
/* parallel_for with pthreads */
|
|
#cmakedefine HAVE_PTHREADS_PF
|
|
|
|
/* Qt support */
|
|
#cmakedefine HAVE_QT
|
|
|
|
/* Qt OpenGL support */
|
|
#cmakedefine HAVE_QT_OPENGL
|
|
|
|
/* QuickTime video libraries */
|
|
#cmakedefine HAVE_QUICKTIME
|
|
|
|
/* QTKit video libraries */
|
|
#cmakedefine HAVE_QTKIT
|
|
|
|
/* Intel Threading Building Blocks */
|
|
#cmakedefine HAVE_TBB
|
|
|
|
/* TIFF codec */
|
|
#cmakedefine HAVE_TIFF
|
|
|
|
/* Unicap video capture library */
|
|
#cmakedefine HAVE_UNICAP
|
|
|
|
/* Video for Windows support */
|
|
#cmakedefine HAVE_VFW
|
|
|
|
/* V4L2 capturing support in videoio.h */
|
|
#cmakedefine HAVE_VIDEOIO
|
|
|
|
/* Win32 UI */
|
|
#cmakedefine HAVE_WIN32UI
|
|
|
|
/* XIMEA camera support */
|
|
#cmakedefine HAVE_XIMEA
|
|
|
|
/* Xine video library */
|
|
#cmakedefine HAVE_XINE
|
|
|
|
/* Define if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#cmakedefine WORDS_BIGENDIAN
|
|
|
|
/* gPhoto2 library */
|
|
#cmakedefine HAVE_GPHOTO2
|
|
|
|
/* VA library (libva) */
|
|
#cmakedefine HAVE_VA
|
|
|
|
/* Intel VA-API/OpenCL */
|
|
#cmakedefine HAVE_VA_INTEL
|
|
|
|
/* Intel Media SDK */
|
|
#cmakedefine HAVE_MFX
|
|
|
|
/* Lapack */
|
|
#cmakedefine HAVE_LAPACK
|
|
|
|
/* Library was compiled with functions instrumentation */
|
|
#cmakedefine ENABLE_INSTRUMENTATION
|
|
|
|
/* OpenVX */
|
|
#cmakedefine HAVE_OPENVX
|
|
|
|
#if defined(HAVE_XINE) || \
|
|
defined(HAVE_GSTREAMER) || \
|
|
defined(HAVE_QUICKTIME) || \
|
|
defined(HAVE_QTKIT) || \
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
/*defined(HAVE_OPENNI) || too specialized */ \
|
|
defined(HAVE_FFMPEG) || \
|
|
defined(HAVE_MSMF)
|
|
#define HAVE_VIDEO_INPUT
|
|
#endif
|
|
|
|
#if /*defined(HAVE_XINE) || */\
|
|
defined(HAVE_GSTREAMER) || \
|
|
defined(HAVE_QUICKTIME) || \
|
|
defined(HAVE_QTKIT) || \
|
|
defined(HAVE_AVFOUNDATION) || \
|
|
defined(HAVE_FFMPEG) || \
|
|
defined(HAVE_MSMF)
|
|
#define HAVE_VIDEO_OUTPUT
|
|
#endif
|
|
|
|
/* OpenCV trace utilities */
|
|
#cmakedefine OPENCV_TRACE
|
|
|
|
/* Library QR-code decoding */
|
|
#cmakedefine HAVE_QUIRC
|
|
|
|
#endif // OPENCV_CVCONFIG_H_INCLUDED
|