[x265] [PATCH] TComYuv.cpp, use new blockcopy_pp luma primitives where feasible
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Tue Nov 12 13:11:32 CET 2013
# HG changeset patch
# User Praveen Tiwari
# Date 1384258281 -19800
# Node ID 694c0d3db925d4d0f8311a1e5a0a83b53ab99af7
# Parent 623d3094a5560c3a90fac0917b9f6e61f4c99ad1
TComYuv.cpp, use new blockcopy_pp luma primitives where feasible
diff -r 623d3094a556 -r 694c0d3db925 source/Lib/TLibCommon/TComYuv.cpp
--- a/source/Lib/TLibCommon/TComYuv.cpp Tue Nov 12 17:07:14 2013 +0530
+++ b/source/Lib/TLibCommon/TComYuv.cpp Tue Nov 12 17:41:21 2013 +0530
@@ -187,7 +187,8 @@
uint32_t srcstride = getStride();
uint32_t dststride = dstPicYuv->getStride();
- primitives.blockcpy_pp(m_width, m_height, dst, dststride, src, srcstride);
+ int part = partitionFromSizes(m_width, m_height);
+ primitives.luma_copy_pp[part](dst, dststride, src, srcstride);
}
void TComYuv::copyToPartChroma(TComYuv* dstPicYuv, uint32_t uiDstPartIdx)
@@ -221,7 +222,8 @@
uint32_t height = dstPicYuv->getHeight();
uint32_t width = dstPicYuv->getWidth();
- primitives.blockcpy_pp(width, height, dst, dststride, src, srcstride);
+ int part = partitionFromSizes(width, height);
+ primitives.luma_copy_pp[part](dst, dststride, src, srcstride);
}
void TComYuv::copyPartToChroma(TComYuv* dstPicYuv, uint32_t partIdx)
@@ -267,7 +269,8 @@
uint32_t srcstride = getStride();
uint32_t dststride = dstPicYuv->getStride();
- primitives.blockcpy_pp(width, height, dst, dststride, src, srcstride);
+ int part = partitionFromSizes(width, height);
+ primitives.luma_copy_pp[part](dst, dststride, src, srcstride);
}
void TComYuv::copyPartToPartLuma(TShortYUV* dstPicYuv, uint32_t partIdx, uint32_t width, uint32_t height)
More information about the x265-devel
mailing list