mirror of
https://github.com/opencv/opencv.git
synced 2024-12-19 03:58:31 +08:00
Merge pull request #1110 from SpecLad:config-cleanup
This commit is contained in:
commit
f7ce70f70a
1
3rdparty/ffmpeg/ffmpeg_version.cmake
vendored
1
3rdparty/ffmpeg/ffmpeg_version.cmake
vendored
@ -1,4 +1,3 @@
|
|||||||
set(NEW_FFMPEG 1)
|
|
||||||
set(HAVE_FFMPEG_CODEC 1)
|
set(HAVE_FFMPEG_CODEC 1)
|
||||||
set(HAVE_FFMPEG_FORMAT 1)
|
set(HAVE_FFMPEG_FORMAT 1)
|
||||||
set(HAVE_FFMPEG_UTIL 1)
|
set(HAVE_FFMPEG_UTIL 1)
|
||||||
|
@ -296,7 +296,6 @@ endif()
|
|||||||
# Path for build/platform -specific headers
|
# Path for build/platform -specific headers
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
set(OPENCV_CONFIG_FILE_INCLUDE_DIR "${CMAKE_BINARY_DIR}/" CACHE PATH "Where to create the platform-dependant cvconfig.h")
|
set(OPENCV_CONFIG_FILE_INCLUDE_DIR "${CMAKE_BINARY_DIR}/" CACHE PATH "Where to create the platform-dependant cvconfig.h")
|
||||||
add_definitions(-DHAVE_CVCONFIG_H)
|
|
||||||
ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
|
ocv_include_directories(${OPENCV_CONFIG_FILE_INCLUDE_DIR})
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
@ -370,9 +369,6 @@ if(UNIX)
|
|||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
CHECK_INCLUDE_FILE(alloca.h HAVE_ALLOCA_H)
|
|
||||||
CHECK_FUNCTION_EXISTS(alloca HAVE_ALLOCA)
|
|
||||||
CHECK_INCLUDE_FILE(unistd.h HAVE_UNISTD_H)
|
|
||||||
CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
|
CHECK_INCLUDE_FILE(pthread.h HAVE_LIBPTHREAD)
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m log)
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m log)
|
||||||
@ -382,7 +378,7 @@ if(UNIX)
|
|||||||
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m pthread rt)
|
set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} dl m pthread rt)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
add_definitions(-DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H)
|
set(HAVE_LIBPTHREAD YES)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -65,3 +65,12 @@ if(WITH_OPENGL)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif(WITH_OPENGL)
|
endif(WITH_OPENGL)
|
||||||
|
|
||||||
|
# --- Carbon & Cocoa ---
|
||||||
|
if(APPLE)
|
||||||
|
if(WITH_CARBON)
|
||||||
|
set(HAVE_CARBON YES)
|
||||||
|
elif(NOT IOS)
|
||||||
|
set(HAVE_COCOA YES)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
@ -36,9 +36,8 @@ if(WITH_TIFF)
|
|||||||
ocv_parse_header("${TIFF_INCLUDE_DIR}/tiff.h" TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION)
|
ocv_parse_header("${TIFF_INCLUDE_DIR}/tiff.h" TIFF_VERSION_LINES TIFF_VERSION_CLASSIC TIFF_VERSION_BIG TIFF_VERSION TIFF_BIGTIFF_VERSION)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WITH_TIFF AND NOT TIFF_FOUND)
|
if(NOT TIFF_FOUND)
|
||||||
ocv_clear_vars(TIFF_LIBRARY TIFF_LIBRARIES TIFF_INCLUDE_DIR)
|
ocv_clear_vars(TIFF_LIBRARY TIFF_LIBRARIES TIFF_INCLUDE_DIR)
|
||||||
|
|
||||||
set(TIFF_LIBRARY libtiff)
|
set(TIFF_LIBRARY libtiff)
|
||||||
@ -66,16 +65,18 @@ if(NOT TIFF_VERSION_STRING AND TIFF_INCLUDE_DIR)
|
|||||||
unset(_TIFF_INCLUDE_DIR)
|
unset(_TIFF_INCLUDE_DIR)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(HAVE_TIFF YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
# --- libjpeg (optional) ---
|
# --- libjpeg (optional) ---
|
||||||
if(WITH_JPEG AND NOT IOS)
|
if(WITH_JPEG)
|
||||||
if(BUILD_JPEG)
|
if(BUILD_JPEG)
|
||||||
ocv_clear_vars(JPEG_FOUND)
|
ocv_clear_vars(JPEG_FOUND)
|
||||||
else()
|
else()
|
||||||
include(FindJPEG)
|
include(FindJPEG)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WITH_JPEG AND NOT JPEG_FOUND)
|
if(NOT JPEG_FOUND)
|
||||||
ocv_clear_vars(JPEG_LIBRARY JPEG_LIBRARIES JPEG_INCLUDE_DIR)
|
ocv_clear_vars(JPEG_LIBRARY JPEG_LIBRARIES JPEG_INCLUDE_DIR)
|
||||||
|
|
||||||
set(JPEG_LIBRARY libjpeg)
|
set(JPEG_LIBRARY libjpeg)
|
||||||
@ -85,7 +86,8 @@ if(WITH_JPEG AND NOT JPEG_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
ocv_parse_header("${JPEG_INCLUDE_DIR}/jpeglib.h" JPEG_VERSION_LINES JPEG_LIB_VERSION)
|
ocv_parse_header("${JPEG_INCLUDE_DIR}/jpeglib.h" JPEG_VERSION_LINES JPEG_LIB_VERSION)
|
||||||
|
set(HAVE_JPEG YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
# --- libjasper (optional, should be searched after libjpeg) ---
|
# --- libjasper (optional, should be searched after libjpeg) ---
|
||||||
if(WITH_JASPER)
|
if(WITH_JASPER)
|
||||||
@ -94,9 +96,8 @@ if(WITH_JASPER)
|
|||||||
else()
|
else()
|
||||||
include(FindJasper)
|
include(FindJasper)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WITH_JASPER AND NOT JASPER_FOUND)
|
if(NOT JASPER_FOUND)
|
||||||
ocv_clear_vars(JASPER_LIBRARY JASPER_LIBRARIES JASPER_INCLUDE_DIR)
|
ocv_clear_vars(JASPER_LIBRARY JASPER_LIBRARIES JASPER_INCLUDE_DIR)
|
||||||
|
|
||||||
set(JASPER_LIBRARY libjasper)
|
set(JASPER_LIBRARY libjasper)
|
||||||
@ -105,9 +106,12 @@ if(WITH_JASPER AND NOT JASPER_FOUND)
|
|||||||
set(JASPER_INCLUDE_DIR "${${JASPER_LIBRARY}_SOURCE_DIR}")
|
set(JASPER_INCLUDE_DIR "${${JASPER_LIBRARY}_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(HAVE_JASPER YES)
|
||||||
|
|
||||||
if(NOT JASPER_VERSION_STRING)
|
if(NOT JASPER_VERSION_STRING)
|
||||||
ocv_parse_header2(JASPER "${JASPER_INCLUDE_DIR}/jasper/jas_config.h" JAS_VERSION "")
|
ocv_parse_header2(JASPER "${JASPER_INCLUDE_DIR}/jasper/jas_config.h" JAS_VERSION "")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# --- libpng (optional, should be searched after zlib) ---
|
# --- libpng (optional, should be searched after zlib) ---
|
||||||
if(WITH_PNG AND NOT IOS)
|
if(WITH_PNG AND NOT IOS)
|
||||||
@ -117,19 +121,17 @@ if(WITH_PNG AND NOT IOS)
|
|||||||
include(FindPNG)
|
include(FindPNG)
|
||||||
if(PNG_FOUND)
|
if(PNG_FOUND)
|
||||||
include(CheckIncludeFile)
|
include(CheckIncludeFile)
|
||||||
check_include_file("${PNG_PNG_INCLUDE_DIR}/png.h" HAVE_PNG_H)
|
|
||||||
check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H)
|
check_include_file("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" HAVE_LIBPNG_PNG_H)
|
||||||
if(HAVE_PNG_H)
|
if(HAVE_LIBPNG_PNG_H)
|
||||||
ocv_parse_header("${PNG_PNG_INCLUDE_DIR}/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
|
||||||
elseif(HAVE_LIBPNG_PNG_H)
|
|
||||||
ocv_parse_header("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
ocv_parse_header("${PNG_PNG_INCLUDE_DIR}/libpng/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
||||||
endif()
|
else()
|
||||||
|
ocv_parse_header("${PNG_PNG_INCLUDE_DIR}/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_PNG AND NOT PNG_FOUND)
|
if(NOT PNG_FOUND)
|
||||||
ocv_clear_vars(PNG_LIBRARY PNG_LIBRARIES PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR HAVE_PNG_H HAVE_LIBPNG_PNG_H PNG_DEFINITIONS)
|
ocv_clear_vars(PNG_LIBRARY PNG_LIBRARIES PNG_INCLUDE_DIR PNG_PNG_INCLUDE_DIR HAVE_LIBPNG_PNG_H PNG_DEFINITIONS)
|
||||||
|
|
||||||
set(PNG_LIBRARY libpng)
|
set(PNG_LIBRARY libpng)
|
||||||
set(PNG_LIBRARIES ${PNG_LIBRARY})
|
set(PNG_LIBRARIES ${PNG_LIBRARY})
|
||||||
@ -139,7 +141,9 @@ if(WITH_PNG AND NOT PNG_FOUND)
|
|||||||
ocv_parse_header("${PNG_INCLUDE_DIR}/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
ocv_parse_header("${PNG_INCLUDE_DIR}/png.h" PNG_VERSION_LINES PNG_LIBPNG_VER_MAJOR PNG_LIBPNG_VER_MINOR PNG_LIBPNG_VER_RELEASE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(HAVE_PNG YES)
|
||||||
set(PNG_VERSION "${PNG_LIBPNG_VER_MAJOR}.${PNG_LIBPNG_VER_MINOR}.${PNG_LIBPNG_VER_RELEASE}")
|
set(PNG_VERSION "${PNG_LIBPNG_VER_MAJOR}.${PNG_LIBPNG_VER_MINOR}.${PNG_LIBPNG_VER_RELEASE}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# --- OpenEXR (optional) ---
|
# --- OpenEXR (optional) ---
|
||||||
if(WITH_OPENEXR)
|
if(WITH_OPENEXR)
|
||||||
@ -148,9 +152,8 @@ if(WITH_OPENEXR)
|
|||||||
else()
|
else()
|
||||||
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindOpenEXR.cmake")
|
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVFindOpenEXR.cmake")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WITH_OPENEXR AND NOT OPENEXR_FOUND)
|
if(NOT OPENEXR_FOUND)
|
||||||
ocv_clear_vars(OPENEXR_INCLUDE_PATHS OPENEXR_LIBRARIES OPENEXR_ILMIMF_LIBRARY OPENEXR_VERSION)
|
ocv_clear_vars(OPENEXR_INCLUDE_PATHS OPENEXR_LIBRARIES OPENEXR_ILMIMF_LIBRARY OPENEXR_VERSION)
|
||||||
|
|
||||||
set(OPENEXR_LIBRARIES IlmImf)
|
set(OPENEXR_LIBRARIES IlmImf)
|
||||||
@ -158,7 +161,15 @@ if(WITH_OPENEXR AND NOT OPENEXR_FOUND)
|
|||||||
add_subdirectory("${OpenCV_SOURCE_DIR}/3rdparty/openexr")
|
add_subdirectory("${OpenCV_SOURCE_DIR}/3rdparty/openexr")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(HAVE_OPENEXR YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
#cmake 2.8.2 bug - it fails to determine zlib version
|
#cmake 2.8.2 bug - it fails to determine zlib version
|
||||||
if(ZLIB_FOUND)
|
if(ZLIB_FOUND)
|
||||||
ocv_parse_header2(ZLIB "${ZLIB_INCLUDE_DIR}/zlib.h" ZLIB_VERSION)
|
ocv_parse_header2(ZLIB "${ZLIB_INCLUDE_DIR}/zlib.h" ZLIB_VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# --- Apple ImageIO ---
|
||||||
|
if(WITH_IMAGEIO)
|
||||||
|
set(HAVE_IMAGEIO YES)
|
||||||
|
endif()
|
||||||
|
@ -228,3 +228,13 @@ if(WIN32)
|
|||||||
list(APPEND HIGHGUI_LIBRARIES winmm)
|
list(APPEND HIGHGUI_LIBRARIES winmm)
|
||||||
endif()
|
endif()
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
|
# --- Apple AV Foundation ---
|
||||||
|
if(WITH_AVFOUNDATION)
|
||||||
|
set(HAVE_AVFOUNDATION YES)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# --- QuickTime ---
|
||||||
|
if(WITH_QUICKTIME)
|
||||||
|
set(HAVE_QUICKTIME YES)
|
||||||
|
endif()
|
||||||
|
@ -1,13 +1,3 @@
|
|||||||
# ----------------------------------------------------------------------------
|
|
||||||
# Variables for cvconfig.h.cmake
|
|
||||||
# ----------------------------------------------------------------------------
|
|
||||||
set(PACKAGE "opencv")
|
|
||||||
set(PACKAGE_BUGREPORT "opencvlibrary-devel@lists.sourceforge.net")
|
|
||||||
set(PACKAGE_NAME "opencv")
|
|
||||||
set(PACKAGE_STRING "${PACKAGE} ${OPENCV_VERSION}")
|
|
||||||
set(PACKAGE_TARNAME "${PACKAGE}")
|
|
||||||
set(PACKAGE_VERSION "${OPENCV_VERSION}")
|
|
||||||
|
|
||||||
# platform-specific config file
|
# platform-specific config file
|
||||||
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.cmake" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h")
|
configure_file("${OpenCV_SOURCE_DIR}/cmake/templates/cvconfig.h.cmake" "${OPENCV_CONFIG_FILE_INCLUDE_DIR}/cvconfig.h")
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@ set(prefix "${CMAKE_INSTALL_PREFIX}")
|
|||||||
set(exec_prefix "\${prefix}")
|
set(exec_prefix "\${prefix}")
|
||||||
set(libdir "") #TODO: need link paths for OpenCV_EXTRA_COMPONENTS
|
set(libdir "") #TODO: need link paths for OpenCV_EXTRA_COMPONENTS
|
||||||
set(includedir "\${prefix}/${OPENCV_INCLUDE_INSTALL_PATH}")
|
set(includedir "\${prefix}/${OPENCV_INCLUDE_INSTALL_PATH}")
|
||||||
set(VERSION ${OPENCV_VERSION})
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
if(CMAKE_BUILD_TYPE MATCHES "Release")
|
||||||
set(ocv_optkind OPT)
|
set(ocv_optkind OPT)
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
/* OpenCV compiled as static or dynamic libs */
|
||||||
systems. This function is required for `alloca.c' support on those systems.
|
#cmakedefine BUILD_SHARED_LIBS
|
||||||
*/
|
|
||||||
#cmakedefine CRAY_STACKSEG_END
|
|
||||||
|
|
||||||
/* Define to 1 if using `alloca.c'. */
|
/* Compile for 'real' NVIDIA GPU architectures */
|
||||||
#cmakedefine C_ALLOCA
|
#define CUDA_ARCH_BIN "${OPENCV_CUDA_ARCH_BIN}"
|
||||||
|
|
||||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
/* Create PTX or BIN for 1.0 compute capability */
|
||||||
#cmakedefine HAVE_ALLOCA 1
|
#cmakedefine CUDA_ARCH_BIN_OR_PTX_10
|
||||||
|
|
||||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
/* NVIDIA GPU features are used */
|
||||||
*/
|
#define CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES}"
|
||||||
#cmakedefine HAVE_ALLOCA_H 1
|
|
||||||
|
|
||||||
/* Video for Windows support */
|
/* Compile for 'virtual' NVIDIA PTX architectures */
|
||||||
#cmakedefine HAVE_VFW
|
#define CUDA_ARCH_PTX "${OPENCV_CUDA_ARCH_PTX}"
|
||||||
|
|
||||||
|
/* AVFoundation video libraries */
|
||||||
|
#cmakedefine HAVE_AVFOUNDATION
|
||||||
|
|
||||||
/* V4L capturing support */
|
/* V4L capturing support */
|
||||||
#cmakedefine HAVE_CAMV4L
|
#cmakedefine HAVE_CAMV4L
|
||||||
@ -22,15 +22,30 @@
|
|||||||
/* V4L2 capturing support */
|
/* V4L2 capturing support */
|
||||||
#cmakedefine HAVE_CAMV4L2
|
#cmakedefine HAVE_CAMV4L2
|
||||||
|
|
||||||
/* V4L2 capturing support in videoio.h */
|
|
||||||
#cmakedefine HAVE_VIDEOIO
|
|
||||||
|
|
||||||
/* V4L/V4L2 capturing support via libv4l */
|
|
||||||
#cmakedefine HAVE_LIBV4L
|
|
||||||
|
|
||||||
/* Carbon windowing environment */
|
/* Carbon windowing environment */
|
||||||
#cmakedefine HAVE_CARBON
|
#cmakedefine HAVE_CARBON
|
||||||
|
|
||||||
|
/* AMD's Basic Linear Algebra Subprograms Library*/
|
||||||
|
#cmakedefine HAVE_CLAMDBLAS
|
||||||
|
|
||||||
|
/* AMD's OpenCL Fast Fourier Transform Library*/
|
||||||
|
#cmakedefine HAVE_CLAMDFFT
|
||||||
|
|
||||||
|
/* 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 */
|
/* IEEE1394 capturing support */
|
||||||
#cmakedefine HAVE_DC1394
|
#cmakedefine HAVE_DC1394
|
||||||
|
|
||||||
@ -40,38 +55,35 @@
|
|||||||
/* IEEE1394 capturing support - libdc1394 v2.x */
|
/* IEEE1394 capturing support - libdc1394 v2.x */
|
||||||
#cmakedefine HAVE_DC1394_2
|
#cmakedefine HAVE_DC1394_2
|
||||||
|
|
||||||
/* ffmpeg in Gentoo */
|
/* DirectShow Video Capture library */
|
||||||
#cmakedefine HAVE_GENTOO_FFMPEG
|
#cmakedefine HAVE_DSHOW
|
||||||
|
|
||||||
|
/* Eigen Matrix & Linear Algebra Library */
|
||||||
|
#cmakedefine HAVE_EIGEN
|
||||||
|
|
||||||
/* FFMpeg video library */
|
/* FFMpeg video library */
|
||||||
#cmakedefine HAVE_FFMPEG
|
#cmakedefine HAVE_FFMPEG
|
||||||
|
|
||||||
/* FFMpeg version flag */
|
|
||||||
#cmakedefine NEW_FFMPEG
|
|
||||||
|
|
||||||
/* ffmpeg's libswscale */
|
/* ffmpeg's libswscale */
|
||||||
#cmakedefine HAVE_FFMPEG_SWSCALE
|
#cmakedefine HAVE_FFMPEG_SWSCALE
|
||||||
|
|
||||||
|
/* ffmpeg in Gentoo */
|
||||||
|
#cmakedefine HAVE_GENTOO_FFMPEG
|
||||||
|
|
||||||
/* GStreamer multimedia framework */
|
/* GStreamer multimedia framework */
|
||||||
#cmakedefine HAVE_GSTREAMER
|
#cmakedefine HAVE_GSTREAMER
|
||||||
|
|
||||||
/* GTK+ 2.0 Thread support */
|
/* GTK+ 2.0 Thread support */
|
||||||
#cmakedefine HAVE_GTHREAD
|
#cmakedefine HAVE_GTHREAD
|
||||||
|
|
||||||
/* Win32 UI */
|
|
||||||
#cmakedefine HAVE_WIN32UI
|
|
||||||
|
|
||||||
/* GTK+ 2.x toolkit */
|
/* GTK+ 2.x toolkit */
|
||||||
#cmakedefine HAVE_GTK
|
#cmakedefine HAVE_GTK
|
||||||
|
|
||||||
/* OpenEXR codec */
|
|
||||||
#cmakedefine HAVE_ILMIMF
|
|
||||||
|
|
||||||
/* Apple ImageIO Framework */
|
/* Apple ImageIO Framework */
|
||||||
#cmakedefine HAVE_IMAGEIO
|
#cmakedefine HAVE_IMAGEIO
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Intel Integrated Performance Primitives */
|
||||||
#cmakedefine HAVE_INTTYPES_H 1
|
#cmakedefine HAVE_IPP
|
||||||
|
|
||||||
/* JPEG-2000 codec */
|
/* JPEG-2000 codec */
|
||||||
#cmakedefine HAVE_JASPER
|
#cmakedefine HAVE_JASPER
|
||||||
@ -79,41 +91,44 @@
|
|||||||
/* IJG JPEG codec */
|
/* IJG JPEG codec */
|
||||||
#cmakedefine HAVE_JPEG
|
#cmakedefine HAVE_JPEG
|
||||||
|
|
||||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
|
||||||
#cmakedefine HAVE_LIBDL 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `gomp' library (-lgomp). */
|
|
||||||
#cmakedefine HAVE_LIBGOMP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `m' library (-lm). */
|
|
||||||
#cmakedefine HAVE_LIBM 1
|
|
||||||
|
|
||||||
/* libpng/png.h needs to be included */
|
/* libpng/png.h needs to be included */
|
||||||
#cmakedefine HAVE_LIBPNG_PNG_H
|
#cmakedefine HAVE_LIBPNG_PNG_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `pthread' library (-lpthread). */
|
/* V4L/V4L2 capturing support via libv4l */
|
||||||
#cmakedefine HAVE_LIBPTHREAD 1
|
#cmakedefine HAVE_LIBV4L
|
||||||
|
|
||||||
/* Define to 1 if you have the `lrint' function. */
|
/* Microsoft Media Foundation Capture library */
|
||||||
#cmakedefine HAVE_LRINT 1
|
#cmakedefine HAVE_MSMF
|
||||||
|
|
||||||
|
/* NVidia Video Decoding API*/
|
||||||
|
#cmakedefine HAVE_NVCUVID
|
||||||
|
|
||||||
|
/* OpenCL Support */
|
||||||
|
#cmakedefine HAVE_OPENCL
|
||||||
|
|
||||||
|
/* OpenEXR codec */
|
||||||
|
#cmakedefine HAVE_OPENEXR
|
||||||
|
|
||||||
|
/* OpenGL support*/
|
||||||
|
#cmakedefine HAVE_OPENGL
|
||||||
|
|
||||||
|
/* OpenNI library */
|
||||||
|
#cmakedefine HAVE_OPENNI
|
||||||
|
|
||||||
/* PNG codec */
|
/* PNG codec */
|
||||||
#cmakedefine HAVE_PNG
|
#cmakedefine HAVE_PNG
|
||||||
|
|
||||||
/* Define to 1 if you have the `png_get_valid' function. */
|
/* Qt support */
|
||||||
#cmakedefine HAVE_PNG_GET_VALID 1
|
#cmakedefine HAVE_QT
|
||||||
|
|
||||||
/* png.h needs to be included */
|
/* Qt OpenGL support */
|
||||||
#cmakedefine HAVE_PNG_H
|
#cmakedefine HAVE_QT_OPENGL
|
||||||
|
|
||||||
/* Define to 1 if you have the `png_set_tRNS_to_alpha' function. */
|
|
||||||
#cmakedefine HAVE_PNG_SET_TRNS_TO_ALPHA 1
|
|
||||||
|
|
||||||
/* QuickTime video libraries */
|
/* QuickTime video libraries */
|
||||||
#cmakedefine HAVE_QUICKTIME
|
#cmakedefine HAVE_QUICKTIME
|
||||||
|
|
||||||
/* AVFoundation video libraries */
|
/* Intel Threading Building Blocks */
|
||||||
#cmakedefine HAVE_AVFOUNDATION
|
#cmakedefine HAVE_TBB
|
||||||
|
|
||||||
/* TIFF codec */
|
/* TIFF codec */
|
||||||
#cmakedefine HAVE_TIFF
|
#cmakedefine HAVE_TIFF
|
||||||
@ -121,116 +136,22 @@
|
|||||||
/* Unicap video capture library */
|
/* Unicap video capture library */
|
||||||
#cmakedefine HAVE_UNICAP
|
#cmakedefine HAVE_UNICAP
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
/* Video for Windows support */
|
||||||
#cmakedefine HAVE_UNISTD_H 1
|
#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 */
|
/* Xine video library */
|
||||||
#cmakedefine HAVE_XINE
|
#cmakedefine HAVE_XINE
|
||||||
|
|
||||||
/* OpenNI library */
|
|
||||||
#cmakedefine HAVE_OPENNI
|
|
||||||
|
|
||||||
/* LZ77 compression/decompression library (used for PNG) */
|
|
||||||
#cmakedefine HAVE_ZLIB
|
|
||||||
|
|
||||||
/* Intel Integrated Performance Primitives */
|
|
||||||
#cmakedefine HAVE_IPP
|
|
||||||
|
|
||||||
/* OpenCV compiled as static or dynamic libs */
|
|
||||||
#cmakedefine BUILD_SHARED_LIBS
|
|
||||||
|
|
||||||
/* Name of package */
|
|
||||||
#define PACKAGE "${PACKAGE}"
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#define PACKAGE_BUGREPORT "${PACKAGE_BUGREPORT}"
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#define PACKAGE_NAME "${PACKAGE_NAME}"
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#define PACKAGE_STRING "${PACKAGE_STRING}"
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#define PACKAGE_TARNAME "${PACKAGE_TARNAME}"
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#define PACKAGE_VERSION "${PACKAGE_VERSION}"
|
|
||||||
|
|
||||||
/* If using the C implementation of alloca, define if you know the
|
|
||||||
direction of stack growth for your system; otherwise it will be
|
|
||||||
automatically deduced at runtime.
|
|
||||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
|
||||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
|
||||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
|
||||||
#cmakedefine STACK_DIRECTION
|
|
||||||
|
|
||||||
/* Version number of package */
|
|
||||||
#define VERSION "${PACKAGE_VERSION}"
|
|
||||||
|
|
||||||
/* Define to 1 if your processor stores words with the most significant byte
|
/* Define to 1 if your processor stores words with the most significant byte
|
||||||
first (like Motorola and SPARC, unlike Intel and VAX). */
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
||||||
#cmakedefine WORDS_BIGENDIAN
|
#cmakedefine WORDS_BIGENDIAN
|
||||||
|
|
||||||
/* Intel Threading Building Blocks */
|
|
||||||
#cmakedefine HAVE_TBB
|
|
||||||
|
|
||||||
/* C= */
|
|
||||||
#cmakedefine HAVE_CSTRIPES
|
|
||||||
|
|
||||||
/* Eigen Matrix & Linear Algebra Library */
|
|
||||||
#cmakedefine HAVE_EIGEN
|
|
||||||
|
|
||||||
/* NVidia Cuda Runtime API*/
|
|
||||||
#cmakedefine HAVE_CUDA
|
|
||||||
|
|
||||||
/* NVidia Cuda Fast Fourier Transform (FFT) API*/
|
|
||||||
#cmakedefine HAVE_CUFFT
|
|
||||||
|
|
||||||
/* NVidia Cuda Basic Linear Algebra Subprograms (BLAS) API*/
|
|
||||||
#cmakedefine HAVE_CUBLAS
|
|
||||||
|
|
||||||
/* NVidia Video Decoding API*/
|
|
||||||
#cmakedefine HAVE_NVCUVID
|
|
||||||
|
|
||||||
/* Compile for 'real' NVIDIA GPU architectures */
|
|
||||||
#define CUDA_ARCH_BIN "${OPENCV_CUDA_ARCH_BIN}"
|
|
||||||
|
|
||||||
/* Compile for 'virtual' NVIDIA PTX architectures */
|
|
||||||
#define CUDA_ARCH_PTX "${OPENCV_CUDA_ARCH_PTX}"
|
|
||||||
|
|
||||||
/* NVIDIA GPU features are used */
|
|
||||||
#define CUDA_ARCH_FEATURES "${OPENCV_CUDA_ARCH_FEATURES}"
|
|
||||||
|
|
||||||
/* Create PTX or BIN for 1.0 compute capability */
|
|
||||||
#cmakedefine CUDA_ARCH_BIN_OR_PTX_10
|
|
||||||
|
|
||||||
/* OpenCL Support */
|
|
||||||
#cmakedefine HAVE_OPENCL
|
|
||||||
|
|
||||||
/* AMD's OpenCL Fast Fourier Transform Library*/
|
|
||||||
#cmakedefine HAVE_CLAMDFFT
|
|
||||||
|
|
||||||
/* AMD's Basic Linear Algebra Subprograms Library*/
|
|
||||||
#cmakedefine HAVE_CLAMDBLAS
|
|
||||||
|
|
||||||
/* DirectShow Video Capture library */
|
|
||||||
#cmakedefine HAVE_DSHOW
|
|
||||||
|
|
||||||
/* Microsoft Media Foundation Capture library */
|
|
||||||
#cmakedefine HAVE_MSMF
|
|
||||||
|
|
||||||
/* XIMEA camera support */
|
|
||||||
#cmakedefine HAVE_XIMEA
|
|
||||||
|
|
||||||
/* OpenGL support*/
|
|
||||||
#cmakedefine HAVE_OPENGL
|
|
||||||
|
|
||||||
/* Clp support */
|
|
||||||
#cmakedefine HAVE_CLP
|
|
||||||
|
|
||||||
/* Qt support */
|
|
||||||
#cmakedefine HAVE_QT
|
|
||||||
|
|
||||||
/* Qt OpenGL support */
|
|
||||||
#cmakedefine HAVE_QT_OPENGL
|
|
||||||
|
@ -8,6 +8,6 @@ includedir_new=@includedir@
|
|||||||
|
|
||||||
Name: OpenCV
|
Name: OpenCV
|
||||||
Description: Open Source Computer Vision Library
|
Description: Open Source Computer Vision Library
|
||||||
Version: @VERSION@
|
Version: @OPENCV_VERSION@
|
||||||
Libs: @OpenCV_LIB_COMPONENTS@
|
Libs: @OpenCV_LIB_COMPONENTS@
|
||||||
Cflags: -I${includedir_old} -I${includedir_new}
|
Cflags: -I${includedir_old} -I${includedir_new}
|
||||||
|
@ -42,9 +42,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/calib3d/calib3d.hpp"
|
#include "opencv2/calib3d/calib3d.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/contrib/contrib.hpp"
|
#include "opencv2/contrib/contrib.hpp"
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
|
@ -340,25 +340,6 @@ namespace cv
|
|||||||
* Common declarations *
|
* Common declarations *
|
||||||
\****************************************************************************************/
|
\****************************************************************************************/
|
||||||
|
|
||||||
/* get alloca declaration */
|
|
||||||
#ifdef __GNUC__
|
|
||||||
# undef alloca
|
|
||||||
# define alloca __builtin_alloca
|
|
||||||
# define CV_HAVE_ALLOCA 1
|
|
||||||
#elif defined WIN32 || defined _WIN32 || \
|
|
||||||
defined WINCE || defined _MSC_VER || defined __BORLANDC__
|
|
||||||
# include <malloc.h>
|
|
||||||
# define CV_HAVE_ALLOCA 1
|
|
||||||
#elif defined HAVE_ALLOCA_H
|
|
||||||
# include <alloca.h>
|
|
||||||
# define CV_HAVE_ALLOCA 1
|
|
||||||
#elif defined HAVE_ALLOCA
|
|
||||||
# include <stdlib.h>
|
|
||||||
# define CV_HAVE_ALLOCA 1
|
|
||||||
#else
|
|
||||||
# undef CV_HAVE_ALLOCA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
# define CV_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
|
# define CV_DECL_ALIGNED(x) __attribute__ ((aligned (x)))
|
||||||
#elif defined _MSC_VER
|
#elif defined _MSC_VER
|
||||||
@ -367,11 +348,6 @@ namespace cv
|
|||||||
# define CV_DECL_ALIGNED(x)
|
# define CV_DECL_ALIGNED(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CV_HAVE_ALLOCA
|
|
||||||
/* ! DO NOT make it an inline function */
|
|
||||||
# define cvStackAlloc(size) cvAlignPtr( alloca((size) + CV_MALLOC_ALIGN), CV_MALLOC_ALIGN )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef CV_IMPL
|
#ifndef CV_IMPL
|
||||||
# define CV_IMPL CV_EXTERN_C
|
# define CV_IMPL CV_EXTERN_C
|
||||||
#endif
|
#endif
|
||||||
|
@ -317,7 +317,7 @@ CV_INLINE int cvRound( double value )
|
|||||||
return t;
|
return t;
|
||||||
#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
|
#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
|
||||||
TEGRA_ROUND(value);
|
TEGRA_ROUND(value);
|
||||||
#elif defined HAVE_LRINT || defined CV_ICC || defined __GNUC__
|
#elif defined CV_ICC || defined __GNUC__
|
||||||
# ifdef HAVE_TEGRA_OPTIMIZATION
|
# ifdef HAVE_TEGRA_OPTIMIZATION
|
||||||
TEGRA_ROUND(value);
|
TEGRA_ROUND(value);
|
||||||
# else
|
# else
|
||||||
|
@ -59,7 +59,6 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if USE_ZLIB
|
#if USE_ZLIB
|
||||||
# undef HAVE_UNISTD_H //to avoid redefinition
|
|
||||||
# ifndef _LFS64_LARGEFILE
|
# ifndef _LFS64_LARGEFILE
|
||||||
# define _LFS64_LARGEFILE 0
|
# define _LFS64_LARGEFILE 0
|
||||||
# endif
|
# endif
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
#include "opencv2/core/core_c.h"
|
#include "opencv2/core/core_c.h"
|
||||||
|
@ -469,40 +469,6 @@ redirectError( CvErrorCallback errCallback, void* userdata, void** prevUserdata)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*CV_IMPL int
|
|
||||||
cvGuiBoxReport( int code, const char *func_name, const char *err_msg,
|
|
||||||
const char *file, int line, void* )
|
|
||||||
{
|
|
||||||
#if (!defined WIN32 && !defined _WIN32) || defined WINCE
|
|
||||||
return cvStdErrReport( code, func_name, err_msg, file, line, 0 );
|
|
||||||
#else
|
|
||||||
if( code != CV_StsBackTrace && code != CV_StsAutoTrace )
|
|
||||||
{
|
|
||||||
size_t msg_len = strlen(err_msg ? err_msg : "") + 1024;
|
|
||||||
char* message = (char*)alloca(msg_len);
|
|
||||||
char title[100];
|
|
||||||
|
|
||||||
wsprintf( message, "%s (%s)\nin function %s, %s(%d)\n\n"
|
|
||||||
"Press \"Abort\" to terminate application.\n"
|
|
||||||
"Press \"Retry\" to debug (if the app is running under debugger).\n"
|
|
||||||
"Press \"Ignore\" to continue (this is not safe).\n",
|
|
||||||
cvErrorStr(code), err_msg ? err_msg : "no description",
|
|
||||||
func_name, file, line );
|
|
||||||
|
|
||||||
wsprintf( title, "OpenCV GUI Error Handler" );
|
|
||||||
|
|
||||||
int answer = MessageBox( NULL, message, title, MB_ICONERROR|MB_ABORTRETRYIGNORE|MB_SYSTEMMODAL );
|
|
||||||
|
|
||||||
if( answer == IDRETRY )
|
|
||||||
{
|
|
||||||
CV_DBG_BREAK();
|
|
||||||
}
|
|
||||||
return answer != IDIGNORE;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}*/
|
|
||||||
|
|
||||||
CV_IMPL int cvCheckHardwareSupport(int feature)
|
CV_IMPL int cvCheckHardwareSupport(int feature)
|
||||||
{
|
{
|
||||||
CV_DbgAssert( 0 <= feature && feature <= CV_HARDWARE_MAX_FEATURE );
|
CV_DbgAssert( 0 <= feature && feature <= CV_HARDWARE_MAX_FEATURE );
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/features2d/features2d.hpp"
|
#include "opencv2/features2d/features2d.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
# include "cvconfig.h"
|
# include "cvconfig.h"
|
||||||
#endif
|
|
||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
#include "opencv2/core/internal.hpp"
|
#include "opencv2/core/internal.hpp"
|
||||||
|
|
||||||
|
@ -42,9 +42,7 @@
|
|||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/ts/ts.hpp"
|
#include "opencv2/ts/ts.hpp"
|
||||||
#include "opencv2/ts/gpu_perf.hpp"
|
#include "opencv2/ts/gpu_perf.hpp"
|
||||||
|
@ -47,9 +47,7 @@
|
|||||||
#pragma warning( disable: 4251 4710 4711 4514 4996 )
|
#pragma warning( disable: 4251 4710 4711 4514 4996 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -9,38 +9,33 @@ ocv_add_module(highgui opencv_imgproc OPTIONAL opencv_androidcamera)
|
|||||||
|
|
||||||
ocv_clear_vars(GRFMT_LIBS)
|
ocv_clear_vars(GRFMT_LIBS)
|
||||||
|
|
||||||
if(WITH_PNG OR WITH_TIFF OR WITH_OPENEXR)
|
if(HAVE_PNG OR HAVE_TIFF OR HAVE_OPENEXR)
|
||||||
ocv_include_directories(${ZLIB_INCLUDE_DIR})
|
ocv_include_directories(${ZLIB_INCLUDE_DIR})
|
||||||
list(APPEND GRFMT_LIBS ${ZLIB_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${ZLIB_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_JPEG)
|
if(HAVE_JPEG)
|
||||||
add_definitions(-DHAVE_JPEG)
|
|
||||||
ocv_include_directories(${JPEG_INCLUDE_DIR})
|
ocv_include_directories(${JPEG_INCLUDE_DIR})
|
||||||
list(APPEND GRFMT_LIBS ${JPEG_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${JPEG_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_PNG)
|
if(HAVE_PNG)
|
||||||
add_definitions(-DHAVE_PNG)
|
|
||||||
add_definitions(${PNG_DEFINITIONS})
|
add_definitions(${PNG_DEFINITIONS})
|
||||||
ocv_include_directories(${PNG_INCLUDE_DIR})
|
ocv_include_directories(${PNG_INCLUDE_DIR})
|
||||||
list(APPEND GRFMT_LIBS ${PNG_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${PNG_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_TIFF)
|
if(HAVE_TIFF)
|
||||||
add_definitions(-DHAVE_TIFF)
|
|
||||||
ocv_include_directories(${TIFF_INCLUDE_DIR})
|
ocv_include_directories(${TIFF_INCLUDE_DIR})
|
||||||
list(APPEND GRFMT_LIBS ${TIFF_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${TIFF_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_JASPER)
|
if(HAVE_JASPER)
|
||||||
add_definitions(-DHAVE_JASPER)
|
|
||||||
ocv_include_directories(${JASPER_INCLUDE_DIR})
|
ocv_include_directories(${JASPER_INCLUDE_DIR})
|
||||||
list(APPEND GRFMT_LIBS ${JASPER_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${JASPER_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_OPENEXR)
|
if(HAVE_OPENEXR)
|
||||||
add_definitions(-DHAVE_OPENEXR)
|
|
||||||
include_directories(SYSTEM ${OPENEXR_INCLUDE_PATHS})
|
include_directories(SYSTEM ${OPENEXR_INCLUDE_PATHS})
|
||||||
list(APPEND GRFMT_LIBS ${OPENEXR_LIBRARIES})
|
list(APPEND GRFMT_LIBS ${OPENEXR_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
@ -108,17 +103,13 @@ elseif(HAVE_WIN32UI)
|
|||||||
list(APPEND highgui_srcs src/window_w32.cpp)
|
list(APPEND highgui_srcs src/window_w32.cpp)
|
||||||
elseif(HAVE_GTK)
|
elseif(HAVE_GTK)
|
||||||
list(APPEND highgui_srcs src/window_gtk.cpp)
|
list(APPEND highgui_srcs src/window_gtk.cpp)
|
||||||
elseif(APPLE)
|
elseif(HAVE_CARBON)
|
||||||
if(WITH_CARBON)
|
|
||||||
add_definitions(-DHAVE_CARBON=1)
|
|
||||||
list(APPEND highgui_srcs src/window_carbon.cpp)
|
list(APPEND highgui_srcs src/window_carbon.cpp)
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime")
|
list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime")
|
||||||
elseif(NOT IOS)
|
elseif(HAVE_COCOA)
|
||||||
add_definitions(-DHAVE_COCOA=1)
|
|
||||||
list(APPEND highgui_srcs src/window_cocoa.mm)
|
list(APPEND highgui_srcs src/window_cocoa.mm)
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework Cocoa")
|
list(APPEND HIGHGUI_LIBRARIES "-framework Cocoa")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(WIN32 AND NOT ARM)
|
if(WIN32 AND NOT ARM)
|
||||||
list(APPEND highgui_srcs src/cap_cmu.cpp)
|
list(APPEND highgui_srcs src/cap_cmu.cpp)
|
||||||
@ -210,27 +201,22 @@ if(HAVE_GIGE_API)
|
|||||||
list(APPEND highgui_srcs src/cap_giganetix.cpp)
|
list(APPEND highgui_srcs src/cap_giganetix.cpp)
|
||||||
endif(HAVE_GIGE_API)
|
endif(HAVE_GIGE_API)
|
||||||
|
|
||||||
if(WITH_IMAGEIO)
|
if(HAVE_IMAGEIO AND IOS)
|
||||||
add_definitions(-DHAVE_IMAGEIO=1)
|
|
||||||
if(IOS)
|
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework ImageIO")
|
list(APPEND HIGHGUI_LIBRARIES "-framework ImageIO")
|
||||||
endif()
|
endif()
|
||||||
endif(WITH_IMAGEIO)
|
|
||||||
|
|
||||||
if(WITH_AVFOUNDATION)
|
if(HAVE_AVFOUNDATION)
|
||||||
add_definitions(-DHAVE_AVFOUNDATION=1)
|
|
||||||
list(APPEND highgui_srcs src/cap_avfoundation.mm)
|
list(APPEND highgui_srcs src/cap_avfoundation.mm)
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore")
|
list(APPEND HIGHGUI_LIBRARIES "-framework AVFoundation" "-framework QuartzCore")
|
||||||
elseif(APPLE)
|
endif()
|
||||||
add_definitions(-DHAVE_QUICKTIME=1)
|
|
||||||
if(WITH_QUICKTIME)
|
if(HAVE_QUICKTIME)
|
||||||
list(APPEND highgui_srcs src/cap_qt.cpp)
|
list(APPEND highgui_srcs src/cap_qt.cpp)
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore")
|
list(APPEND HIGHGUI_LIBRARIES "-framework Carbon" "-framework QuickTime" "-framework CoreFoundation" "-framework QuartzCore")
|
||||||
else()
|
elseif(APPLE)
|
||||||
list(APPEND highgui_srcs src/cap_qtkit.mm)
|
list(APPEND highgui_srcs src/cap_qtkit.mm)
|
||||||
list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
|
list(APPEND HIGHGUI_LIBRARIES "-framework QTKit" "-framework QuartzCore" "-framework AppKit")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
if(IOS)
|
if(IOS)
|
||||||
add_definitions(-DHAVE_IOS=1)
|
add_definitions(-DHAVE_IOS=1)
|
||||||
|
@ -53,12 +53,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef PACKAGE
|
|
||||||
#undef PACKAGE_BUGREPORT
|
|
||||||
#undef PACKAGE_NAME
|
|
||||||
#undef PACKAGE_STRING
|
|
||||||
#undef PACKAGE_TARNAME
|
|
||||||
#undef PACKAGE_VERSION
|
|
||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
#include <jasper/jasper.h>
|
#include <jasper/jasper.h>
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
and png2bmp sample from libpng distribution (Copyright (C) 1999-2001 MIYASAKA Masaru)
|
and png2bmp sample from libpng distribution (Copyright (C) 1999-2001 MIYASAKA Masaru)
|
||||||
\****************************************************************************************/
|
\****************************************************************************************/
|
||||||
|
|
||||||
#undef HAVE_UNISTD_H //to avoid redefinition
|
|
||||||
#ifndef _LFS64_LARGEFILE
|
#ifndef _LFS64_LARGEFILE
|
||||||
# define _LFS64_LARGEFILE 0
|
# define _LFS64_LARGEFILE 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -9,9 +9,7 @@
|
|||||||
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
||||||
#define __OPENCV_TEST_PRECOMP_HPP__
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
# include "cvconfig.h"
|
# include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/ts/ts.hpp"
|
#include "opencv2/ts/ts.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
#include "opencv2/imgproc/imgproc_c.h"
|
#include "opencv2/imgproc/imgproc_c.h"
|
||||||
|
@ -41,9 +41,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/legacy/legacy.hpp"
|
#include "opencv2/legacy/legacy.hpp"
|
||||||
|
|
||||||
|
@ -41,9 +41,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/ml/ml.hpp"
|
#include "opencv2/ml/ml.hpp"
|
||||||
#include "opencv2/core/core_c.h"
|
#include "opencv2/core/core_c.h"
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
|
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/objdetect/objdetect.hpp"
|
#include "opencv2/objdetect/objdetect.hpp"
|
||||||
#include "opencv2/imgproc/imgproc.hpp"
|
#include "opencv2/imgproc/imgproc.hpp"
|
||||||
|
@ -44,9 +44,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_TBB
|
#ifdef HAVE_TBB
|
||||||
#include "tbb/task_scheduler_init.h"
|
#include "tbb/task_scheduler_init.h"
|
||||||
|
@ -52,9 +52,7 @@
|
|||||||
#pragma warning( disable: 4267 4324 4244 4251 4710 4711 4514 4996 )
|
#pragma warning( disable: 4267 4324 4244 4251 4710 4711 4514 4996 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/photo/photo.hpp"
|
#include "opencv2/photo/photo.hpp"
|
||||||
|
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_STITCHING_PRECOMP_H__
|
#ifndef __OPENCV_STITCHING_PRECOMP_H__
|
||||||
#define __OPENCV_STITCHING_PRECOMP_H__
|
#define __OPENCV_STITCHING_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -51,9 +51,7 @@
|
|||||||
#ifndef __OPENCV_PERF_PRECOMP_HPP__
|
#ifndef __OPENCV_PERF_PRECOMP_HPP__
|
||||||
#define __OPENCV_PERF_PRECOMP_HPP__
|
#define __OPENCV_PERF_PRECOMP_HPP__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/ts/ts.hpp"
|
#include "opencv2/ts/ts.hpp"
|
||||||
#include "opencv2/ts/gpu_perf.hpp"
|
#include "opencv2/ts/gpu_perf.hpp"
|
||||||
|
@ -46,9 +46,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
|
@ -51,9 +51,7 @@
|
|||||||
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
#ifndef __OPENCV_TEST_PRECOMP_HPP__
|
||||||
#define __OPENCV_TEST_PRECOMP_HPP__
|
#define __OPENCV_TEST_PRECOMP_HPP__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
#include "opencv2/core/core.hpp"
|
#include "opencv2/core/core.hpp"
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
#ifndef __OPENCV_GTESTCV_HPP__
|
#ifndef __OPENCV_GTESTCV_HPP__
|
||||||
#define __OPENCV_GTESTCV_HPP__
|
#define __OPENCV_GTESTCV_HPP__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
#ifndef GTEST_CREATE_SHARED_LIBRARY
|
#ifndef GTEST_CREATE_SHARED_LIBRARY
|
||||||
#ifdef BUILD_SHARED_LIBS
|
#ifdef BUILD_SHARED_LIBS
|
||||||
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
|
#define GTEST_LINKED_AS_SHARED_LIBRARY 1
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/video/tracking.hpp"
|
#include "opencv2/video/tracking.hpp"
|
||||||
#include "opencv2/video/background_segm.hpp"
|
#include "opencv2/video/background_segm.hpp"
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_HPP__
|
#ifndef __OPENCV_PRECOMP_HPP__
|
||||||
#define __OPENCV_PRECOMP_HPP__
|
#define __OPENCV_PRECOMP_HPP__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
@ -43,9 +43,7 @@
|
|||||||
#ifndef __OPENCV_PRECOMP_H__
|
#ifndef __OPENCV_PRECOMP_H__
|
||||||
#define __OPENCV_PRECOMP_H__
|
#define __OPENCV_PRECOMP_H__
|
||||||
|
|
||||||
#ifdef HAVE_CVCONFIG_H
|
|
||||||
#include "cvconfig.h"
|
#include "cvconfig.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "opencv2/opencv_modules.hpp"
|
#include "opencv2/opencv_modules.hpp"
|
||||||
#ifdef HAVE_OPENCV_VIDEO
|
#ifdef HAVE_OPENCV_VIDEO
|
||||||
|
Loading…
Reference in New Issue
Block a user