From 3c32fc13292a32719a429741b71bd82ce78154f1 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 25 Jun 2013 17:45:23 +0400 Subject: [PATCH] removed obsolete methods from gpu::Stream --- modules/core/include/opencv2/core/gpu.hpp | 13 ------- modules/core/include/opencv2/core/gpu.inl.hpp | 36 ------------------- 2 files changed, 49 deletions(-) diff --git a/modules/core/include/opencv2/core/gpu.hpp b/modules/core/include/opencv2/core/gpu.hpp index 775a9d0267..79d90c2c3e 100644 --- a/modules/core/include/opencv2/core/gpu.hpp +++ b/modules/core/include/opencv2/core/gpu.hpp @@ -375,19 +375,6 @@ public: //! returns true if stream object is not default (!= 0) operator bool_type() const; - // obsolete methods - - void enqueueDownload(const GpuMat& src, OutputArray dst); - - void enqueueUpload(InputArray src, GpuMat& dst); - - void enqueueCopy(const GpuMat& src, OutputArray dst); - - void enqueueMemSet(GpuMat& src, Scalar val); - void enqueueMemSet(GpuMat& src, Scalar val, InputArray mask); - - void enqueueConvert(const GpuMat& src, OutputArray dst, int dtype, double alpha = 1.0, double beta = 0.0); - class Impl; private: diff --git a/modules/core/include/opencv2/core/gpu.inl.hpp b/modules/core/include/opencv2/core/gpu.inl.hpp index b44c2b1511..e66b7e65e7 100644 --- a/modules/core/include/opencv2/core/gpu.inl.hpp +++ b/modules/core/include/opencv2/core/gpu.inl.hpp @@ -525,42 +525,6 @@ void swap(CudaMem& a, CudaMem& b) //////////////////////////////// Stream /////////////////////////////// -inline -void Stream::enqueueDownload(const GpuMat& src, OutputArray dst) -{ - src.download(dst, *this); -} - -inline -void Stream::enqueueUpload(InputArray src, GpuMat& dst) -{ - dst.upload(src, *this); -} - -inline -void Stream::enqueueCopy(const GpuMat& src, OutputArray dst) -{ - src.copyTo(dst, *this); -} - -inline -void Stream::enqueueMemSet(GpuMat& src, Scalar val) -{ - src.setTo(val, *this); -} - -inline -void Stream::enqueueMemSet(GpuMat& src, Scalar val, InputArray mask) -{ - src.setTo(val, mask, *this); -} - -inline -void Stream::enqueueConvert(const GpuMat& src, OutputArray dst, int dtype, double alpha, double beta) -{ - src.convertTo(dst, dtype, alpha, beta, *this); -} - inline Stream::Stream(const Ptr& impl) : impl_(impl)