From: Ilya Lavrenov Date: Sun, 13 Apr 2014 12:50:38 +0000 (+0400) Subject: Mat::copyTo X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3283^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3bd8211a72e95bc6076eeb461ec10772e2893a45;p=platform%2Fupstream%2Fopencv.git Mat::copyTo --- diff --git a/modules/core/src/copy.cpp b/modules/core/src/copy.cpp index 34fe97f..fc0454b 100644 --- a/modules/core/src/copy.cpp +++ b/modules/core/src/copy.cpp @@ -278,6 +278,11 @@ void Mat::copyTo( OutputArray _dst ) const Size sz = getContinuousSize(*this, dst); size_t len = sz.width*elemSize(); +#if defined HAVE_IPP && !defined HAVE_IPP_ICV_ONLY + if (ippiCopy_8u_C1R(sptr, (int)step, dptr, (int)dst.step, ippiSize((int)len, sz.height)) >= 0) + return; +#endif + for( ; sz.height--; sptr += step, dptr += dst.step ) memcpy( dptr, sptr, len ); }