mirror of
https://github.com/opencv/opencv.git
synced 2024-11-23 18:50:21 +08:00
4546f40d8b
Currently, if `PNG_FOUND`, cmake scripts will check include and parse header while we can use `PNG_VERSION_STRING` conveniently. If `BUILD_PNG`, parse version from `PNG_LIBPNG_VER_STRING` directly is more convenient than parsing major, minor and patch and concatenate them. The comment of png.h also supports this. ``` /* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */ ``` https://github.com/glennrp/libpng/blob/libpng16/png.h#L287 This patch also modifies `ocv_parse_header_version` macro to receive another parameter to make it more general. The reason why changing `PNG_VERSION` to `PNG_VERSION_STRING` is to be consistent with cmake's FindPNG. This patch removes `HAVE_LIBPNG_PNG_H` variable because `PNG_INCLUDE_DIR` is where to find png.h, etc according to https://cmake.org/cmake/help/latest/module/FindPNG.html. This patch also removes `PNG_PNG_INCLUDE_DIR` variable which is an advanced variable used in cmake's FindPNG and is not used in opencv.
153 lines
3.3 KiB
C
153 lines
3.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}"
|
|
|
|
/* 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}"
|
|
|
|
/* 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
|
|
|
|
/* NVIDIA CUDA Runtime API*/
|
|
#cmakedefine HAVE_CUDA
|
|
|
|
/* NVIDIA CUDA Basic Linear Algebra Subprograms (BLAS) API*/
|
|
#cmakedefine HAVE_CUBLAS
|
|
|
|
/* NVIDIA CUDA Deep Neural Network (cuDNN) API*/
|
|
#cmakedefine HAVE_CUDNN
|
|
|
|
/* NVIDIA CUDA Fast Fourier Transform (FFT) API*/
|
|
#cmakedefine HAVE_CUFFT
|
|
|
|
/* DirectX */
|
|
#cmakedefine HAVE_DIRECTX
|
|
#cmakedefine HAVE_DIRECTX_NV12
|
|
#cmakedefine HAVE_D3D11
|
|
#cmakedefine HAVE_D3D10
|
|
#cmakedefine HAVE_D3D9
|
|
|
|
/* Eigen Matrix & Linear Algebra Library */
|
|
#cmakedefine HAVE_EIGEN
|
|
|
|
/* Geospatial Data Abstraction Library */
|
|
#cmakedefine HAVE_GDAL
|
|
|
|
/* Halide support */
|
|
#cmakedefine HAVE_HALIDE
|
|
|
|
/* Vulkan support */
|
|
#cmakedefine HAVE_VULKAN
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
|
|
/* 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_OPENJPEG
|
|
#cmakedefine HAVE_JASPER
|
|
|
|
/* AVIF codec */
|
|
#cmakedefine HAVE_AVIF
|
|
|
|
/* IJG JPEG codec */
|
|
#cmakedefine HAVE_JPEG
|
|
|
|
/* GDCM DICOM codec */
|
|
#cmakedefine HAVE_GDCM
|
|
|
|
/* NVIDIA Video Decoding API*/
|
|
#cmakedefine HAVE_NVCUVID
|
|
#cmakedefine HAVE_NVCUVID_HEADER
|
|
#cmakedefine HAVE_DYNLINK_NVCUVID_HEADER
|
|
|
|
/* 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
|
|
|
|
/* PNG codec */
|
|
#cmakedefine HAVE_PNG
|
|
|
|
/* PNG codec */
|
|
#cmakedefine HAVE_SPNG
|
|
|
|
/* Posix threads (pthreads) */
|
|
#cmakedefine HAVE_PTHREAD
|
|
|
|
/* parallel_for with pthreads */
|
|
#cmakedefine HAVE_PTHREADS_PF
|
|
|
|
/* Intel Threading Building Blocks */
|
|
#cmakedefine HAVE_TBB
|
|
|
|
/* Ste||ar Group High Performance ParallelX */
|
|
#cmakedefine HAVE_HPX
|
|
|
|
/* TIFF codec */
|
|
#cmakedefine HAVE_TIFF
|
|
|
|
/* Define if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#cmakedefine WORDS_BIGENDIAN
|
|
|
|
/* VA library (libva) */
|
|
#cmakedefine HAVE_VA
|
|
|
|
/* Intel VA-API/OpenCL */
|
|
#cmakedefine HAVE_VA_INTEL
|
|
|
|
/* Lapack */
|
|
#cmakedefine HAVE_LAPACK
|
|
|
|
/* Library was compiled with functions instrumentation */
|
|
#cmakedefine ENABLE_INSTRUMENTATION
|
|
|
|
/* OpenVX */
|
|
#cmakedefine HAVE_OPENVX
|
|
|
|
/* OpenCV trace utilities */
|
|
#cmakedefine OPENCV_TRACE
|
|
|
|
/* Library QR-code decoding */
|
|
#cmakedefine HAVE_QUIRC
|
|
|
|
#endif // OPENCV_CVCONFIG_H_INCLUDED
|