fixed build under MacOS (disabled video decoding, it's not supported)
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "ffmpeg_video_source.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
#ifdef HAVE_FFMPEG
|
||||
#include "cap_ffmpeg_impl.hpp"
|
||||
|
@@ -46,7 +46,7 @@
|
||||
#include "precomp.hpp"
|
||||
#include "thread_wrappers.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
struct InputMediaStream_FFMPEG;
|
||||
|
||||
|
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "frame_queue.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
cv::gpu::detail::FrameQueue::FrameQueue() :
|
||||
endOfDecode_(0),
|
||||
|
@@ -46,7 +46,7 @@
|
||||
#include "precomp.hpp"
|
||||
#include "thread_wrappers.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
namespace cv { namespace gpu
|
||||
{
|
||||
|
@@ -88,7 +88,9 @@
|
||||
#include <cublas.h>
|
||||
#endif
|
||||
|
||||
#include <nvcuvid.h>
|
||||
#ifndef __APPLE__
|
||||
#include <nvcuvid.h>
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
#include <NVEncoderAPI.h>
|
||||
|
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "thread_wrappers.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
#ifdef WIN32
|
||||
#define NOMINMAX
|
||||
|
@@ -45,7 +45,7 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
namespace cv { namespace gpu
|
||||
{
|
||||
|
@@ -43,7 +43,7 @@
|
||||
#include "video_decoder.h"
|
||||
#include "frame_queue.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
void cv::gpu::detail::VideoDecoder::create(const VideoReader_GPU::FormatInfo& videoFormat)
|
||||
{
|
||||
|
@@ -46,7 +46,7 @@
|
||||
#include "precomp.hpp"
|
||||
#include "cu_safe_call.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
namespace cv { namespace gpu
|
||||
{
|
||||
|
@@ -43,7 +43,7 @@
|
||||
#include "video_parser.h"
|
||||
#include "cu_safe_call.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
cv::gpu::detail::VideoParser::VideoParser(VideoDecoder* videoDecoder, FrameQueue* frameQueue) :
|
||||
videoDecoder_(videoDecoder), frameQueue_(frameQueue), unparsedPackets_(0), hasError_(false)
|
||||
|
@@ -48,7 +48,7 @@
|
||||
#include "frame_queue.h"
|
||||
#include "video_decoder.h"
|
||||
|
||||
#ifdef HAVE_CUDA
|
||||
#if defined(HAVE_CUDA) && !defined(__APPLE__)
|
||||
|
||||
namespace cv { namespace gpu
|
||||
{
|
||||
|
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#ifndef HAVE_CUDA
|
||||
#if !defined(HAVE_CUDA) || defined(__APPLE__)
|
||||
|
||||
class cv::gpu::VideoReader_GPU::Impl
|
||||
{
|
||||
|
@@ -42,7 +42,7 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
|
||||
#if !defined HAVE_CUDA || !defined WIN32
|
||||
#if !defined(HAVE_CUDA) || !defined(WIN32)
|
||||
|
||||
class cv::gpu::VideoWriter_GPU::Impl
|
||||
{
|
||||
|
Reference in New Issue
Block a user