Revert "disabled video decoding under linux"

This reverts commit 889674ef43.
This commit is contained in:
vlad
2012-12-20 13:31:22 +04:00
committed by Vladislav Vinogradov
parent 660d23aa04
commit 11293d071f
17 changed files with 40 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#include "cuvid_video_source.h"
#include "cu_safe_call.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
cv::gpu::detail::CuvidVideoSource::CuvidVideoSource(const std::string& fname)
{

View File

@@ -45,7 +45,7 @@
#include "precomp.hpp"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
namespace cv { namespace gpu
{

View File

@@ -42,7 +42,7 @@
#include "ffmpeg_video_source.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
#if defined(HAVE_FFMPEG) && defined(BUILD_SHARED_LIBS)
#include "cap_ffmpeg_impl.hpp"

View File

@@ -46,7 +46,7 @@
#include "precomp.hpp"
#include "thread_wrappers.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
struct InputMediaStream_FFMPEG;

View File

@@ -42,7 +42,7 @@
#include "frame_queue.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
cv::gpu::detail::FrameQueue::FrameQueue() :
endOfDecode_(0),

View File

@@ -46,7 +46,7 @@
#include "precomp.hpp"
#include "thread_wrappers.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
namespace cv { namespace gpu
{

View File

@@ -97,8 +97,11 @@
#include <cublas.h>
#endif
#ifdef WIN32
#ifndef __APPLE__
#include <nvcuvid.h>
#endif
#ifdef WIN32
#include <NVEncoderAPI.h>
#endif

View File

@@ -42,7 +42,7 @@
#include "thread_wrappers.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
#ifdef WIN32
#define NOMINMAX

View File

@@ -45,7 +45,7 @@
#include "precomp.hpp"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
namespace cv { namespace gpu
{

View File

@@ -43,7 +43,7 @@
#include "video_decoder.h"
#include "frame_queue.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
void cv::gpu::detail::VideoDecoder::create(const VideoReader_GPU::FormatInfo& videoFormat)
{

View File

@@ -46,7 +46,7 @@
#include "precomp.hpp"
#include "cu_safe_call.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
namespace cv { namespace gpu
{

View File

@@ -43,7 +43,7 @@
#include "video_parser.h"
#include "cu_safe_call.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
cv::gpu::detail::VideoParser::VideoParser(VideoDecoder* videoDecoder, FrameQueue* frameQueue) :
videoDecoder_(videoDecoder), frameQueue_(frameQueue), unparsedPackets_(0), hasError_(false)

View File

@@ -48,7 +48,7 @@
#include "frame_queue.h"
#include "video_decoder.h"
#if defined(HAVE_CUDA) && defined(WIN32)
#if defined(HAVE_CUDA) && !defined(__APPLE__)
namespace cv { namespace gpu
{

View File

@@ -42,7 +42,7 @@
#include "precomp.hpp"
#if !defined HAVE_CUDA || defined(CUDA_DISABLER) || !defined(WIN32)
#if !defined HAVE_CUDA || defined(CUDA_DISABLER) || defined(__APPLE__)
class cv::gpu::VideoReader_GPU::Impl
{