[x265] [PATCH] tcomdatacu:Remove memset from create(), this variables are initialized in initCU()

Gopu Govindaswamy gopu at multicorewareinc.com
Tue Nov 5 11:26:40 CET 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1383647191 -19800
# Node ID 1316071b3c5b70af54bc414022fab57a60164b11
# Parent  754a5ef7c4d8a084b755eda288f73000fe201b05
tcomdatacu:Remove memset from create(), this variables are initialized in initCU()

diff -r 754a5ef7c4d8 -r 1316071b3c5b source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp	Tue Nov 05 14:59:09 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp	Tue Nov 05 15:56:31 2013 +0530
@@ -149,15 +149,10 @@
     m_mvpIdx[1] = new char[numPartition];
     m_mvpNum[0] = new char[numPartition];
     m_mvpNum[1] = new char[numPartition];
-    memset(m_mvpIdx[0], -1, numPartition * sizeof(char));
-    memset(m_mvpIdx[1], -1, numPartition * sizeof(char));
 
     m_trCoeffY  = (TCoeff*)X265_MALLOC(TCoeff, width * height);
     m_trCoeffCb = (TCoeff*)X265_MALLOC(TCoeff, width * height / 4);
     m_trCoeffCr = (TCoeff*)X265_MALLOC(TCoeff, width * height / 4);
-    memset(m_trCoeffY, 0, width * height * sizeof(TCoeff));
-    memset(m_trCoeffCb, 0, width * height / 4 * sizeof(TCoeff));
-    memset(m_trCoeffCr, 0, width * height / 4 * sizeof(TCoeff));
 
     m_iPCMFlags   = (bool*)X265_MALLOC(bool, numPartition);
     m_iPCMSampleY  = (Pel*)X265_MALLOC(Pel, width * height);


More information about the x265-devel mailing list