[x265] [PATCH 1 of 4] rd: remove unnecessary mem copies

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Fri Dec 20 11:37:41 CET 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1387361635 -19800
# Node ID f766e7c3b165fa3ec6b83283366b89b34d36af4c
# Parent  c1802fef73b4a864e6dc05dbc45407c31ee626ea
rd: remove unnecessary mem copies

diff -r c1802fef73b4 -r f766e7c3b165 source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp	Tue Dec 17 18:28:28 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp	Wed Dec 18 15:43:55 2013 +0530
@@ -497,13 +497,6 @@
     memcpy(m_depth, rpcCU->getDepth() + m_absIdxInLCU, iSizeInUchar);
     memcpy(m_width, rpcCU->getWidth() + m_absIdxInLCU, iSizeInUchar);
     memcpy(m_height, rpcCU->getHeight() + m_absIdxInLCU, iSizeInUchar);
-
-    uint32_t tmp = (g_maxCUWidth * g_maxCUHeight) >> (depth << 1);
-    memset(m_trCoeffY, 0, sizeof(TCoeff) * tmp);
-
-    tmp  = ((g_maxCUWidth >> m_hChromaShift) * (g_maxCUHeight >> m_hChromaShift)) >> (depth << 1);
-    memset(m_trCoeffCb, 0, sizeof(TCoeff) * tmp);
-    memset(m_trCoeffCr, 0, sizeof(TCoeff) * tmp);
 }
 // --------------------------------------------------------------------------------------------------------------------
 // Copy


More information about the x265-devel mailing list