|
|
|
@ -75,6 +75,11 @@ GpuMat::GpuMat(Size size_, int type_, Allocator* allocator_) |
|
|
|
|
create(size_.height, size_.width, type_); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// WARNING: unreachable code using Ninja
|
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(push) |
|
|
|
|
#pragma warning(disable: 4702) |
|
|
|
|
#endif |
|
|
|
|
inline |
|
|
|
|
GpuMat::GpuMat(int rows_, int cols_, int type_, Scalar s_, Allocator* allocator_) |
|
|
|
|
: flags(0), rows(0), cols(0), step(0), data(0), refcount(0), datastart(0), dataend(0), allocator(allocator_) |
|
|
|
@ -96,6 +101,9 @@ GpuMat::GpuMat(Size size_, int type_, Scalar s_, Allocator* allocator_) |
|
|
|
|
setTo(s_); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(pop) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
inline |
|
|
|
|
GpuMat::GpuMat(const GpuMat& m) |
|
|
|
@ -158,11 +166,19 @@ GpuMat GpuMat::clone() const |
|
|
|
|
return m; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// WARNING: unreachable code using Ninja
|
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(push) |
|
|
|
|
#pragma warning(disable: 4702) |
|
|
|
|
#endif |
|
|
|
|
inline |
|
|
|
|
void GpuMat::copyTo(OutputArray dst, InputArray mask) const |
|
|
|
|
{ |
|
|
|
|
copyTo(dst, mask, Stream::Null()); |
|
|
|
|
} |
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(pop) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
inline |
|
|
|
|
GpuMat& GpuMat::setTo(Scalar s) |
|
|
|
@ -176,6 +192,11 @@ GpuMat& GpuMat::setTo(Scalar s, InputArray mask) |
|
|
|
|
return setTo(s, mask, Stream::Null()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// WARNING: unreachable code using Ninja
|
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(push) |
|
|
|
|
#pragma warning(disable: 4702) |
|
|
|
|
#endif |
|
|
|
|
inline |
|
|
|
|
void GpuMat::convertTo(OutputArray dst, int rtype) const |
|
|
|
|
{ |
|
|
|
@ -187,6 +208,9 @@ void GpuMat::convertTo(OutputArray dst, int rtype, double alpha, double beta) co |
|
|
|
|
{ |
|
|
|
|
convertTo(dst, rtype, alpha, beta, Stream::Null()); |
|
|
|
|
} |
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(pop) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
inline |
|
|
|
|
void GpuMat::convertTo(OutputArray dst, int rtype, double alpha, Stream& stream) const |
|
|
|
@ -554,6 +578,11 @@ Event::Event(const Ptr<Impl>& impl) |
|
|
|
|
// Initialization & Info
|
|
|
|
|
//===================================================================================
|
|
|
|
|
|
|
|
|
|
// WARNING: unreachable code using Ninja
|
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(push) |
|
|
|
|
#pragma warning(disable: 4702) |
|
|
|
|
#endif |
|
|
|
|
inline |
|
|
|
|
bool TargetArchs::has(int major, int minor) |
|
|
|
|
{ |
|
|
|
@ -571,6 +600,9 @@ DeviceInfo::DeviceInfo() |
|
|
|
|
{ |
|
|
|
|
device_id_ = getDevice(); |
|
|
|
|
} |
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(pop) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
inline |
|
|
|
|
DeviceInfo::DeviceInfo(int device_id) |
|
|
|
@ -579,6 +611,11 @@ DeviceInfo::DeviceInfo(int device_id) |
|
|
|
|
device_id_ = device_id; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// WARNING: unreachable code using Ninja
|
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(push) |
|
|
|
|
#pragma warning(disable: 4702) |
|
|
|
|
#endif |
|
|
|
|
inline |
|
|
|
|
int DeviceInfo::deviceID() const |
|
|
|
|
{ |
|
|
|
@ -607,6 +644,9 @@ bool DeviceInfo::supports(FeatureSet feature_set) const |
|
|
|
|
int version = majorVersion() * 10 + minorVersion(); |
|
|
|
|
return version >= feature_set; |
|
|
|
|
} |
|
|
|
|
#if defined _MSC_VER && _MSC_VER >= 1920 |
|
|
|
|
#pragma warning(pop) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}} // namespace cv { namespace cuda {
|
|
|
|
|