[x265] [PATCH 3 of 4] TComSlice: remove unused m_bEqualRef and helper functions

Steve Borho steve at borho.org
Thu Oct 24 07:01:43 CEST 2013


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1382590779 18000
#      Wed Oct 23 23:59:39 2013 -0500
# Node ID cd4fa5415069a700e45c018688a6363deff096f5
# Parent  3c4d2da71540f69e68bc2ea32c4dee832c92e0b1
TComSlice: remove unused m_bEqualRef and helper functions

diff -r 3c4d2da71540 -r cd4fa5415069 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp	Wed Oct 23 23:52:34 2013 -0500
+++ b/source/Lib/TLibCommon/TComSlice.cpp	Wed Oct 23 23:59:39 2013 -0500
@@ -401,20 +401,6 @@
     return numRpsCurrTempList;
 }
 
-void TComSlice::initEqualRef()
-{
-    for (int dir = 0; dir < 2; dir++)
-    {
-        for (int refIdx1 = 0; refIdx1 < MAX_NUM_REF; refIdx1++)
-        {
-            for (int refIdx2 = refIdx1; refIdx2 < MAX_NUM_REF; refIdx2++)
-            {
-                m_bEqualRef[dir][refIdx1][refIdx2] = m_bEqualRef[dir][refIdx2][refIdx1] = (refIdx1 == refIdx2 ? true : false);
-            }
-        }
-    }
-}
-
 void TComSlice::checkCRA(TComReferencePictureSet *rps, int& pocCRA, bool& prevRAPisBLA)
 {
     for (int i = 0; i < rps->getNumberOfNegativePictures() + rps->getNumberOfPositivePictures(); i++)
diff -r 3c4d2da71540 -r cd4fa5415069 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h	Wed Oct 23 23:52:34 2013 -0500
+++ b/source/Lib/TLibCommon/TComSlice.h	Wed Oct 23 23:59:39 2013 -0500
@@ -1316,8 +1316,6 @@
     UInt        m_colRefIdx;
     UInt        m_maxNumMergeCand;
 
-    bool        m_bEqualRef[2][MAX_NUM_REF][MAX_NUM_REF];
-
     UInt        m_sliceCurEndCUAddr;
     bool        m_nextSlice;
     UInt        m_sliceBits;
@@ -1507,17 +1505,6 @@
 
     void      initEqualRef();
 
-    bool      isEqualRef(RefPicList e, int refIdx1, int refIdx2)
-    {
-        if (refIdx1 < 0 || refIdx2 < 0) return false;
-        return m_bEqualRef[e][refIdx1][refIdx2];
-    }
-
-    void setEqualRef(RefPicList e, int refIdx1, int refIdx2, bool b)
-    {
-        m_bEqualRef[e][refIdx1][refIdx2] = m_bEqualRef[e][refIdx2][refIdx1] = b;
-    }
-
     void setTLayerInfo(UInt tlayer);
 
     void setMaxNumMergeCand(UInt val)          { m_maxNumMergeCand = val; }


More information about the x265-devel mailing list