changeset 5772:f766e7c3b165

rd: remove unnecessary mem copies
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Wed, 18 Dec 2013 15:43:55 +0530
parents c1802fef73b4
children edeccf4c6cdd
files source/Lib/TLibCommon/TComDataCU.cpp
diffstat 1 files changed, 0 insertions(+-), 7 deletions(-) [+]
line wrap: on
line diff
--- 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 @@ void TComDataCU::copyToSubCU(TComDataCU*
     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