Merge pull request #17568 from alalek:cleanup_17527

pull/17581/head
Alexander Alekhin 4 years ago
commit 42a4c3fba6
  1. 1
      cmake/OpenCVDetectCUDA.cmake
  2. 10
      modules/cudacodec/src/cuvid_video_source.hpp
  3. 10
      modules/cudacodec/src/frame_queue.hpp
  4. 12
      modules/cudacodec/src/video_decoder.hpp
  5. 11
      modules/cudacodec/src/video_parser.hpp
  6. 5
      modules/cudacodec/src/video_source.hpp

@ -53,6 +53,7 @@ if(CUDA_FOUND)
else()
set(${_result} 1)
endif()
unset(_header_result CACHE)
endmacro()
SEARCH_NVCUVID_HEADER("nvcuvid.h" HAVE_NVCUVID_HEADER)
SEARCH_NVCUVID_HEADER("dynlink_nvcuvid.h" HAVE_DYNLINK_NVCUVID_HEADER)

@ -44,17 +44,9 @@
#ifndef __CUVID_VIDEO_SOURCE_HPP__
#define __CUVID_VIDEO_SOURCE_HPP__
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/cudacodec.hpp"
#include "video_source.hpp"
namespace cv { namespace cudacodec { namespace detail
{
namespace cv { namespace cudacodec { namespace detail {
class CuvidVideoSource : public VideoSource
{

@ -45,16 +45,8 @@
#define __FRAME_QUEUE_HPP__
#include "opencv2/core/utility.hpp"
#include "opencv2/core/private.cuda.hpp"
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif
namespace cv { namespace cudacodec { namespace detail
{
namespace cv { namespace cudacodec { namespace detail {
class FrameQueue
{

@ -44,17 +44,7 @@
#ifndef __VIDEO_DECODER_HPP__
#define __VIDEO_DECODER_HPP__
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/cudacodec.hpp"
namespace cv { namespace cudacodec { namespace detail
{
namespace cv { namespace cudacodec { namespace detail {
class VideoDecoder
{

@ -44,19 +44,10 @@
#ifndef __VIDEO_PARSER_HPP__
#define __VIDEO_PARSER_HPP__
#if defined(HAVE_DYNLINK_NVCUVID_HEADER)
#include <dynlink_nvcuvid.h>
#elif defined(HAVE_NVCUVID_HEADER)
#include <nvcuvid.h>
#endif
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/cudacodec.hpp"
#include "frame_queue.hpp"
#include "video_decoder.hpp"
namespace cv { namespace cudacodec { namespace detail
{
namespace cv { namespace cudacodec { namespace detail {
class VideoParser
{

@ -44,12 +44,9 @@
#ifndef __CUDACODEC_VIDEO_SOURCE_H__
#define __CUDACODEC_VIDEO_SOURCE_H__
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/cudacodec.hpp"
#include "thread.hpp"
namespace cv { namespace cudacodec { namespace detail
{
namespace cv { namespace cudacodec { namespace detail {
class VideoParser;

Loading…
Cancel
Save