[moved from opencv] fix corner case of libnvcuvid

* detect header automatically and not based on version number

original commit: d4af89781b
pull/2573/head^2
Tomoaki Teshima 5 years ago
parent 522a062cad
commit bab3d66c71
  1. 4
      modules/cudacodec/src/cuvid_video_source.hpp
  2. 4
      modules/cudacodec/src/frame_queue.hpp
  3. 4
      modules/cudacodec/src/precomp.hpp
  4. 4
      modules/cudacodec/src/video_decoder.hpp
  5. 4
      modules/cudacodec/src/video_parser.hpp

@ -44,9 +44,9 @@
#ifndef __CUVID_VIDEO_SOURCE_HPP__
#define __CUVID_VIDEO_SOURCE_HPP__
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#else
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif
#include "opencv2/core/private.cuda.hpp"

@ -47,9 +47,9 @@
#include "opencv2/core/utility.hpp"
#include "opencv2/core/private.cuda.hpp"
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#else
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif

@ -58,9 +58,9 @@
#include <opencv2/core/utils/logger.hpp>
#ifdef HAVE_NVCUVID
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#else
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif

@ -44,9 +44,9 @@
#ifndef __VIDEO_DECODER_HPP__
#define __VIDEO_DECODER_HPP__
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#else
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif

@ -44,9 +44,9 @@
#ifndef __VIDEO_PARSER_HPP__
#define __VIDEO_PARSER_HPP__
#if CUDA_VERSION >= 9000 && CUDA_VERSION < 10000
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#else
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif

Loading…
Cancel
Save