[x265] [PATCH] tcomdatacu: remove unused set functions

Gopu Govindaswamy gopu at multicorewareinc.com
Wed Nov 6 07:06:46 CET 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1383717996 -19800
# Node ID f6a251692cb7b23d73f7f2abb19c49869e961364
# Parent  7cdcf1a03d93f8f007d9d111129d29ab31513310
tcomdatacu: remove unused set functions

diff -r 7cdcf1a03d93 -r f6a251692cb7 source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp	Tue Nov 05 14:53:10 2013 -0600
+++ b/source/Lib/TLibCommon/TComDataCU.cpp	Wed Nov 06 11:36:36 2013 +0530
@@ -1597,14 +1597,6 @@
     memset(m_transformSkip[g_convertTxtTypeToIdx[ttype]] + absPartIdx, useTransformSkip, sizeof(UChar) * curPartNum);
 }
 
-void TComDataCU::setSizeSubParts(uint32_t width, uint32_t height, uint32_t absPartIdx, uint32_t depth)
-{
-    uint32_t curPartNum = m_pic->getNumPartInCU() >> (depth << 1);
-
-    memset(m_width  + absPartIdx, width,  sizeof(UChar) * curPartNum);
-    memset(m_height + absPartIdx, height, sizeof(UChar) * curPartNum);
-}
-
 UChar TComDataCU::getNumPartInter()
 {
     UChar numPart = 0;
diff -r 7cdcf1a03d93 -r f6a251692cb7 source/Lib/TLibCommon/TComDataCU.h
--- a/source/Lib/TLibCommon/TComDataCU.h	Tue Nov 05 14:53:10 2013 -0600
+++ b/source/Lib/TLibCommon/TComDataCU.h	Wed Nov 06 11:36:36 2013 +0530
@@ -224,8 +224,6 @@
 
     UChar         getDepth(uint32_t idx)           { return m_depth[idx]; }
 
-    void          setDepth(uint32_t idx, UChar h)  { m_depth[idx] = h; }
-
     void          setDepthSubParts(uint32_t depth, uint32_t absPartIdx);
 
     // -------------------------------------------------------------------------------------------------------------------
@@ -234,12 +232,8 @@
 
     char*         getPartitionSize()                      { return m_partSizes; }
 
-    int           getUnitSize()                           { return m_unitSize; }
-
     PartSize      getPartitionSize(uint32_t idx)              { return static_cast<PartSize>(m_partSizes[idx]); }
 
-    void          setPartitionSize(uint32_t idx, PartSize uh) { m_partSizes[idx] = (char)uh; }
-
     void          setPartSizeSubParts(PartSize eMode, uint32_t absPartIdx, uint32_t depth);
     void          setCUTransquantBypassSubParts(bool flag, uint32_t absPartIdx, uint32_t depth);
 
@@ -247,8 +241,6 @@
 
     bool         getSkipFlag(uint32_t idx)            { return m_skipFlag[idx]; }
 
-    void         setSkipFlag(uint32_t idx, bool skip) { m_skipFlag[idx] = skip; }
-
     void         setSkipFlagSubParts(bool skip, uint32_t absPartIdx, uint32_t depth);
 
     char*         getPredictionMode()                 { return m_predModes; }
@@ -259,24 +251,16 @@
 
     bool          getCUTransquantBypass(uint32_t idx)     { return m_cuTransquantBypass[idx]; }
 
-    void          setPredictionMode(uint32_t idx, PredMode uh) { m_predModes[idx] = (char)uh; }
-
     void          setPredModeSubParts(PredMode eMode, uint32_t absPartIdx, uint32_t depth);
 
     UChar*        getWidth()                     { return m_width; }
 
     UChar         getWidth(uint32_t idx)             { return m_width[idx]; }
 
-    void          setWidth(uint32_t idx, UChar  uh)  { m_width[idx] = uh; }
-
     UChar*        getHeight()                    { return m_height; }
 
     UChar         getHeight(uint32_t idx)            { return m_height[idx]; }
 
-    void          setHeight(uint32_t idx, UChar  uh) { m_height[idx] = uh; }
-
-    void          setSizeSubParts(uint32_t width, uint32_t height, uint32_t absPartIdx, uint32_t depth);
-
     char*         getQP()                        { return m_qp; }
 
     char          getQP(uint32_t idx)                { return m_qp[idx]; }
@@ -342,16 +326,12 @@
 
     bool          getMergeFlag(uint32_t idx)            { return m_bMergeFlags[idx]; }
 
-    void          setMergeFlag(uint32_t idx, bool b)    { m_bMergeFlags[idx] = b; }
-
     void          setMergeFlagSubParts(bool bMergeFlag, uint32_t absPartIdx, uint32_t partIdx, uint32_t depth);
 
     UChar*        getMergeIndex()                   { return m_mergeIndex; }
 
     UChar         getMergeIndex(uint32_t idx)           { return m_mergeIndex[idx]; }
 
-    void          setMergeIndex(uint32_t idx, uint32_t mergeIndex) { m_mergeIndex[idx] = (UChar)mergeIndex; }
-
     void          setMergeIndexSubParts(uint32_t mergeIndex, uint32_t absPartIdx, uint32_t partIdx, uint32_t depth);
     template<typename T>
     void          setSubPart(T bParameter, T* pbBaseLCU, uint32_t cuAddr, uint32_t cuDepth, uint32_t puIdx);
@@ -364,24 +344,18 @@
 
     UChar         getLumaIntraDir(uint32_t idx) { return m_lumaIntraDir[idx]; }
 
-    void          setLumaIntraDir(uint32_t idx, UChar uh) { m_lumaIntraDir[idx] = uh; }
-
     void          setLumaIntraDirSubParts(uint32_t dir, uint32_t absPartIdx, uint32_t depth);
 
     UChar*        getChromaIntraDir()                 { return m_chromaIntraDir; }
 
     UChar         getChromaIntraDir(uint32_t idx)         { return m_chromaIntraDir[idx]; }
 
-    void          setChromaIntraDir(uint32_t idx, UChar  uh) { m_chromaIntraDir[idx] = uh; }
-
     void          setChromIntraDirSubParts(uint32_t dir, uint32_t absPartIdx, uint32_t depth);
 
     UChar*        getInterDir()                    { return m_interDir; }
 
     UChar         getInterDir(uint32_t idx)            { return m_interDir[idx]; }
 
-    void          setInterDir(uint32_t idx, UChar  uh) { m_interDir[idx] = uh; }
-
     void          setInterDirSubParts(uint32_t dir,  uint32_t absPartIdx, uint32_t partIdx, uint32_t depth);
     bool*         getIPCMFlag()                     { return m_iPCMFlags; }
 
@@ -414,8 +388,6 @@
 
     char*         getMVPIdx(int picList)                       { return m_mvpIdx[picList]; }
 
-    void          setMVPNum(int picList, uint32_t idx, int mvpNum) { m_mvpNum[picList][idx] = (char)mvpNum; }
-
     int           getMVPNum(int picList, uint32_t idx)             { return m_mvpNum[picList][idx]; }
 
     char*         getMVPNum(int picList)                       { return m_mvpNum[picList]; }


More information about the x265-devel mailing list