projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7ec4a5
)
Mat::copyTo
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Sun, 13 Apr 2014 12:50:38 +0000
(16:50 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 21 Apr 2014 09:14:55 +0000
(13:14 +0400)
modules/core/src/copy.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/copy.cpp
b/modules/core/src/copy.cpp
index
34fe97f
..
fc0454b
100644
(file)
--- 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 );
}