[x265] [PATCH] TComYuv::copyPartToPartChroma, blockcopy_pp asm integration
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Tue Nov 19 13:57:52 CET 2013
# HG changeset patch
# User Praveen Tiwari
# Date 1384865862 -19800
# Node ID a70a22101a122464f26d32f28b29254299b37d68
# Parent b00d291161564186bdda3530ac584f4fcc027aed
TComYuv::copyPartToPartChroma, blockcopy_pp asm integration
diff -r b00d29116156 -r a70a22101a12 source/Lib/TLibCommon/TComYuv.cpp
--- a/source/Lib/TLibCommon/TComYuv.cpp Tue Nov 19 18:05:42 2013 +0530
+++ b/source/Lib/TLibCommon/TComYuv.cpp Tue Nov 19 18:27:42 2013 +0530
@@ -323,6 +323,8 @@
void TComYuv::copyPartToPartChroma(TComYuv* dstPicYuv, uint32_t partIdx, uint32_t width, uint32_t height, uint32_t chromaId)
{
+ width, height; // To avoid build error, can't eliminate overloaded version present
+
if (chromaId == 0)
{
Pel* srcU = getCbAddr(partIdx);
@@ -330,7 +332,7 @@
if (srcU == dstU) return;
uint32_t srcstride = getCStride();
uint32_t dststride = dstPicYuv->getCStride();
- primitives.blockcpy_pp(width, height, dstU, dststride, srcU, srcstride);
+ primitives.chroma_copy_pp[m_csp][m_part](dstU, dststride, srcU, srcstride);
}
else if (chromaId == 1)
{
@@ -339,7 +341,7 @@
if (srcV == dstV) return;
uint32_t srcstride = getCStride();
uint32_t dststride = dstPicYuv->getCStride();
- primitives.blockcpy_pp(width, height, dstV, dststride, srcV, srcstride);
+ primitives.chroma_copy_pp[m_csp][m_part](dstV, dststride, srcV, srcstride);
}
else
{
@@ -350,8 +352,8 @@
if (srcU == dstU && srcV == dstV) return;
uint32_t srcstride = getCStride();
uint32_t dststride = dstPicYuv->getCStride();
- primitives.blockcpy_pp(width, height, dstU, dststride, srcU, srcstride);
- primitives.blockcpy_pp(width, height, dstV, dststride, srcV, srcstride);
+ primitives.chroma_copy_pp[m_csp][m_part](dstU, dststride, srcU, srcstride);
+ primitives.chroma_copy_pp[m_csp][m_part](dstV, dststride, srcV, srcstride);
}
}
More information about the x265-devel
mailing list