[x265] [PATCH] tcomdatacu:remove unused copySubCU() function
Gopu Govindaswamy
gopu at multicorewareinc.com
Tue Nov 5 12:11:14 CET 2013
# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1383649859 -19800
# Node ID 7d42e412cea8a985c5c0d01d45f65271f004607f
# Parent 4f63624ce6b93f829960484746fbfab1b8d1dd85
tcomdatacu:remove unused copySubCU() function
diff -r 4f63624ce6b9 -r 7d42e412cea8 source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp Tue Nov 05 16:36:49 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.cpp Tue Nov 05 16:40:59 2013 +0530
@@ -535,81 +535,6 @@
// Copy
// --------------------------------------------------------------------------------------------------------------------
-void TComDataCU::copySubCU(TComDataCU* cu, uint32_t absPartIdx, uint32_t depth)
-{
- uint32_t part = absPartIdx;
-
- m_pic = cu->getPic();
- m_slice = cu->getSlice();
- m_cuAddr = cu->getAddr();
- m_absIdxInLCU = absPartIdx;
-
- m_cuPelX = cu->getCUPelX() + g_rasterToPelX[g_zscanToRaster[absPartIdx]];
- m_cuPelY = cu->getCUPelY() + g_rasterToPelY[g_zscanToRaster[absPartIdx]];
-
- uint32_t width = g_maxCUWidth >> depth;
- uint32_t height = g_maxCUHeight >> depth;
-
- m_skipFlag = cu->getSkipFlag() + part;
-
- m_qp = cu->getQP() + part;
- m_partSizes = cu->getPartitionSize() + part;
- m_predModes = cu->getPredictionMode() + part;
- m_cuTransquantBypass = cu->getCUTransquantBypass() + part;
-
- m_bMergeFlags = cu->getMergeFlag() + part;
- m_mergeIndex = cu->getMergeIndex() + part;
-
- m_lumaIntraDir = cu->getLumaIntraDir() + part;
- m_chromaIntraDir = cu->getChromaIntraDir() + part;
- m_interDir = cu->getInterDir() + part;
- m_trIdx = cu->getTransformIdx() + part;
- m_transformSkip[0] = cu->getTransformSkip(TEXT_LUMA) + part;
- m_transformSkip[1] = cu->getTransformSkip(TEXT_CHROMA_U) + part;
- m_transformSkip[2] = cu->getTransformSkip(TEXT_CHROMA_V) + part;
-
- m_cbf[0] = cu->getCbf(TEXT_LUMA) + part;
- m_cbf[1] = cu->getCbf(TEXT_CHROMA_U) + part;
- m_cbf[2] = cu->getCbf(TEXT_CHROMA_V) + part;
-
- m_depth = cu->getDepth() + part;
- m_width = cu->getWidth() + part;
- m_height = cu->getHeight() + part;
-
- m_mvpIdx[0] = cu->getMVPIdx(REF_PIC_LIST_0) + part;
- m_mvpIdx[1] = cu->getMVPIdx(REF_PIC_LIST_1) + part;
- m_mvpNum[0] = cu->getMVPNum(REF_PIC_LIST_0) + part;
- m_mvpNum[1] = cu->getMVPNum(REF_PIC_LIST_1) + part;
-
- m_iPCMFlags = cu->getIPCMFlag() + part;
-
- m_cuAboveLeft = cu->getCUAboveLeft();
- m_cuAboveRight = cu->getCUAboveRight();
- m_cuAbove = cu->getCUAbove();
- m_cuLeft = cu->getCULeft();
-
- m_cuColocated[0] = cu->getCUColocated(REF_PIC_LIST_0);
- m_cuColocated[1] = cu->getCUColocated(REF_PIC_LIST_1);
-
- uint32_t tmp = width * height;
- uint32_t maxCUWidth = cu->getSlice()->getSPS()->getMaxCUWidth();
- uint32_t maxCUHeight = cu->getSlice()->getSPS()->getMaxCUHeight();
- uint32_t coeffOffset = maxCUWidth * maxCUHeight * absPartIdx / cu->getPic()->getNumPartInCU();
-
- m_trCoeffY = cu->getCoeffY() + coeffOffset;
- m_iPCMSampleY = cu->getPCMSampleY() + coeffOffset;
-
- tmp >>= 2;
- coeffOffset >>= 2;
- m_trCoeffCb = cu->getCoeffCb() + coeffOffset;
- m_trCoeffCr = cu->getCoeffCr() + coeffOffset;
- m_iPCMSampleCb = cu->getPCMSampleCb() + coeffOffset;
- m_iPCMSampleCr = cu->getPCMSampleCr() + coeffOffset;
-
- m_cuMvField[0].linkToWithOffset(cu->getCUMvField(REF_PIC_LIST_0), part);
- m_cuMvField[1].linkToWithOffset(cu->getCUMvField(REF_PIC_LIST_1), part);
-}
-
// Copy small CU to bigger CU.
// One of quarter parts overwritten by predicted sub part.
void TComDataCU::copyPartFrom(TComDataCU* cu, uint32_t partUnitIdx, uint32_t depth, bool isRDObasedAnalysis)
diff -r 4f63624ce6b9 -r 7d42e412cea8 source/Lib/TLibCommon/TComDataCU.h
--- a/source/Lib/TLibCommon/TComDataCU.h Tue Nov 05 16:36:49 2013 +0530
+++ b/source/Lib/TLibCommon/TComDataCU.h Tue Nov 05 16:40:59 2013 +0530
@@ -192,7 +192,6 @@
void initEstData(uint32_t depth, int qp);
void initSubCU(TComDataCU* cu, uint32_t partUnitIdx, uint32_t depth, int qp);
- void copySubCU(TComDataCU* cu, uint32_t partUnitIdx, uint32_t depth);
void copyPartFrom(TComDataCU* cu, uint32_t partUnitIdx, uint32_t depth, bool isRDObasedAnalysis = true);
void copyToPic(UChar depth);
More information about the x265-devel
mailing list