[x265] [PATCH] asm integration for blockcopy_ps

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Nov 18 17:18:38 CET 2013


# HG changeset patch
# User Praveen Tiwari
# Date 1384791507 -19800
# Node ID 4c5daf21c1583cae93dbdf404a1b68aeced6b690
# Parent  a5f618af8d963efafaa8581f4484066b13f4f614
asm integration for blockcopy_ps

diff -r a5f618af8d96 -r 4c5daf21c158 source/Lib/TLibCommon/TComYuv.cpp
--- a/source/Lib/TLibCommon/TComYuv.cpp	Mon Nov 18 21:26:46 2013 +0530
+++ b/source/Lib/TLibCommon/TComYuv.cpp	Mon Nov 18 21:48:27 2013 +0530
@@ -365,7 +365,8 @@
         uint32_t srcstride = getCStride();
         uint32_t dststride = dstPicYuv->m_cwidth;
 
-        primitives.blockcpy_sp(width, height, dstU, dststride, srcU, srcstride);
+        int part = partitionFromSizes(width << 1, height << 1);
+        primitives.chroma_copy_ps[m_csp][part](dstU, dststride, srcU, srcstride);
     }
     else if (chromaId == 1)
     {
@@ -375,7 +376,8 @@
         uint32_t srcstride = getCStride();
         uint32_t dststride = dstPicYuv->m_cwidth;
 
-        primitives.blockcpy_sp(width, height, dstV, dststride, srcV, srcstride);
+        int part = partitionFromSizes(width << 1, height << 1);
+        primitives.chroma_copy_ps[m_csp][part](dstV, dststride, srcV, srcstride);
     }
     else
     {
@@ -387,8 +389,9 @@
         uint32_t srcstride = getCStride();
         uint32_t dststride = dstPicYuv->m_cwidth;
 
-        primitives.blockcpy_sp(width, height, dstU, dststride, srcU, srcstride);
-        primitives.blockcpy_sp(width, height, dstV, dststride, srcV, srcstride);
+        int part = partitionFromSizes(width << 1, height << 1);
+        primitives.chroma_copy_ps[m_csp][part](dstU, dststride, srcU, srcstride);
+        primitives.chroma_copy_ps[m_csp][part](dstV, dststride, srcV, srcstride);
     }
 }
 


More information about the x265-devel mailing list