[x265] [PATCH] tcomdatacu: remove memset in initEstData()
Gopu Govindaswamy
gopu at multicorewareinc.com
Wed Nov 6 07:22:05 CET 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1383718905 -19800
# Node ID 4a1df198c432d27d5edb3be5bd9f898176a9e3f4
# Parent f6a251692cb7b23d73f7f2abb19c49869e961364
tcomdatacu: remove memset in initEstData()
m_trCoeffY, m_trCoeffCb, m_trCoeffCr, m_iPCMSampleY, m_iPCMSampleCb and m_iPCMSampleCr
buffers are getting initialized in initCU(), and its not required to set 0 in initEstData()
diff -r f6a251692cb7 -r 4a1df198c432 source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp Wed Nov 06 11:36:36 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp Wed Nov 06 11:51:45 2013 +0530
@@ -438,16 +438,6 @@
m_cuMvField[0].clearMvField();
m_cuMvField[1].clearMvField();
-
- uint32_t tmp = width * height;
- memset(m_trCoeffY, 0, tmp * sizeof(*m_trCoeffY));
- memset(m_iPCMSampleY, 0, tmp * sizeof(*m_iPCMSampleY));
-
- tmp = (width >> m_hChromaShift) * (height >> m_vChromaShift);
- memset(m_trCoeffCb, 0, tmp * sizeof(*m_trCoeffCb));
- memset(m_trCoeffCr, 0, tmp * sizeof(*m_trCoeffCr));
- memset(m_iPCMSampleCb, 0, tmp * sizeof(*m_iPCMSampleCb));
- memset(m_iPCMSampleCr, 0, tmp * sizeof(*m_iPCMSampleCr));
}
// initialize Sub partition
More information about the x265-devel
mailing list