void rgba_to_mbgra(const GpuMat& src, GpuMat& dst, int, Stream& st)
{
- #if (CUDA_VERSION < 5000)
+ #if (CUDART_VERSION < 5000)
(void)src;
(void)dst;
(void)st;
void cv::gpu::gammaCorrection(const GpuMat& src, GpuMat& dst, bool forward, Stream& stream)
{
-#if (CUDA_VERSION < 5000)
+#if (CUDART_VERSION < 5000)
(void)src;
(void)dst;
(void)forward;
#include "cu_safe_call.h"
-#ifdef HAVE_CUDA
+#if defined(HAVE_CUDA) && defined(HAVE_NVCUVID)
namespace
{
#include "precomp.hpp"
-#ifdef HAVE_CUDA
+#if defined(HAVE_CUDA) && defined(HAVE_NVCUVID)
namespace cv { namespace gpu {
namespace detail
convertTo(src, dst, alpha, beta, stream);
}
-#if CUDA_VERSION >= 5000
+#if CUDART_VERSION >= 5000
namespace
{
void cv::gpu::Stream::enqueueHostCallback(StreamCallback callback, void* userData)
{
-#if CUDA_VERSION >= 5000
+#if CUDART_VERSION >= 5000
CallbackData* data = new CallbackData;
data->callback = callback;
data->userData = userData;
void cv::gpu::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTransp, GpuMat& top, GpuMat& bottom, GpuMat& labels, GpuMat& buf, Stream& s)
{
-#if (CUDA_VERSION < 5000)
+#if (CUDART_VERSION < 5000)
CV_Assert(terminals.type() == CV_32S);
#else
CV_Assert(terminals.type() == CV_32S || terminals.type() == CV_32F);
NppiGraphcutStateHandler state(sznpp, buf.ptr<Npp8u>(), nppiGraphcutInitAlloc);
-#if (CUDA_VERSION < 5000)
+#if (CUDART_VERSION < 5000)
nppSafeCall( nppiGraphcut_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(), top.ptr<Npp32s>(), bottom.ptr<Npp32s>(),
static_cast<int>(terminals.step), static_cast<int>(leftTransp.step), sznpp, labels.ptr<Npp8u>(), static_cast<int>(labels.step), state) );
#else
void cv::gpu::graphcut(GpuMat& terminals, GpuMat& leftTransp, GpuMat& rightTransp, GpuMat& top, GpuMat& topLeft, GpuMat& topRight,
GpuMat& bottom, GpuMat& bottomLeft, GpuMat& bottomRight, GpuMat& labels, GpuMat& buf, Stream& s)
{
-#if (CUDA_VERSION < 5000)
+#if (CUDART_VERSION < 5000)
CV_Assert(terminals.type() == CV_32S);
#else
CV_Assert(terminals.type() == CV_32S || terminals.type() == CV_32F);
NppiGraphcutStateHandler state(sznpp, buf.ptr<Npp8u>(), nppiGraphcut8InitAlloc);
-#if (CUDA_VERSION < 5000)
+#if (CUDART_VERSION < 5000)
nppSafeCall( nppiGraphcut8_32s8u(terminals.ptr<Npp32s>(), leftTransp.ptr<Npp32s>(), rightTransp.ptr<Npp32s>(),
top.ptr<Npp32s>(), topLeft.ptr<Npp32s>(), topRight.ptr<Npp32s>(),
bottom.ptr<Npp32s>(), bottomLeft.ptr<Npp32s>(), bottomRight.ptr<Npp32s>(),
DeviceBuffer dbuf(2);
int bufSize;
-#if (CUDA_VERSION <= 4020)
+#if (CUDART_VERSION <= 4020)
nppSafeCall( nppiMeanStdDev8uC1RGetBufferHostSize(sz, &bufSize) );
#else
nppSafeCall( nppiMeanStdDevGetBufferHostSize_8u_C1R(sz, &bufSize) );
CV_Assert(src1.size() == src2.size() && src1.type() == src2.type());
CV_Assert(normType == NORM_INF || normType == NORM_L1 || normType == NORM_L2);
-#if CUDA_VERSION < 5050
+#if CUDART_VERSION < 5050
typedef NppStatus (*func_t)(const Npp8u* pSrc1, int nSrcStep1, const Npp8u* pSrc2, int nSrcStep2, NppiSize oSizeROI, Npp64f* pRetVal);
static const func_t funcs[] = {nppiNormDiff_Inf_8u_C1R, nppiNormDiff_L1_8u_C1R, nppiNormDiff_L2_8u_C1R};
DeviceBuffer dbuf;
-#if CUDA_VERSION < 5050
+#if CUDART_VERSION < 5050
nppSafeCall( funcs[funcIdx](src1.ptr<Npp8u>(), static_cast<int>(src1.step), src2.ptr<Npp8u>(), static_cast<int>(src2.step), sz, dbuf) );
#else
int bufSize;
#define OPENCV_GPU_UNUSED(x) (void)x
#ifdef HAVE_CUDA
-
- #include <cuda.h>
#include <cuda_runtime.h>
#include <npp.h>
#endif
#ifdef HAVE_NVCUVID
+ #include <cuda.h>
#include <nvcuvid.h>
#ifdef WIN32
EXPECT_MAT_NEAR(dst_gold, dst, depth == CV_8U ? 1 : 1e-4);
}
-#if defined (CUDA_VERSION) && (CUDA_VERSION >= 5000)
+#if defined (CUDART_VERSION) && (CUDART_VERSION >= 5000)
GPU_TEST_P(CvtColor, RGBA2mRGBA)
{
EXPECT_MAT_NEAR(dst_gold, dst, 1);
}
-#endif // defined (CUDA_VERSION) && (CUDA_VERSION >= 5000)
+#endif // defined (CUDART_VERSION) && (CUDART_VERSION >= 5000)
GPU_TEST_P(CvtColor, BayerBG2BGR)
{
#include "cvconfig.h"
#ifdef HAVE_CUDA
- #include <cuda.h>
#include <cuda_runtime.h>
#include "opencv2/ts/ts.hpp"
using namespace cvtest;
-#if CUDA_VERSION >= 5000
+#if CUDART_VERSION >= 5000
struct Async : testing::TestWithParam<cv::gpu::DeviceInfo>
{