[x265] [PATCH] tcomdatacu: partStartIdx is always negative, no need to have else block in InitCU()
Gopu Govindaswamy
gopu at multicorewareinc.com
Wed Nov 6 11:53:12 CET 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1383735172 -19800
# Node ID d9a66447ab4bcca001e772674d106ea86aa06c7c
# Parent 21e08cf159c552ff98334c98070b9cd442aaff27
tcomdatacu: partStartIdx is always negative, no need to have else block in InitCU()
diff -r 21e08cf159c5 -r d9a66447ab4b source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp Wed Nov 06 15:43:19 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp Wed Nov 06 16:22:52 2013 +0530
@@ -330,25 +330,6 @@
memset(m_iPCMSampleCb, 0, sizeof(Pel) * c_tmp);
memset(m_iPCMSampleCr, 0, sizeof(Pel) * c_tmp);
}
- else
- {
- TComDataCU * from = pic->getCU(getAddr());
- m_cuMvField[0].copyFrom(&from->m_cuMvField[0], m_numPartitions, 0);
- m_cuMvField[1].copyFrom(&from->m_cuMvField[1], m_numPartitions, 0);
- for (int i = 0; i < y_tmp; i++)
- {
- m_trCoeffY[i] = from->m_trCoeffY[i];
- m_iPCMSampleY[i] = from->m_iPCMSampleY[i];
- }
-
- for (int i = 0; i < c_tmp; i++)
- {
- m_trCoeffCb[i] = from->m_trCoeffCb[i];
- m_trCoeffCr[i] = from->m_trCoeffCr[i];
- m_iPCMSampleCb[i] = from->m_iPCMSampleCb[i];
- m_iPCMSampleCr[i] = from->m_iPCMSampleCr[i];
- }
- }
// Setting neighbor CU
m_cuLeft = NULL;
More information about the x265-devel
mailing list