[x265] [PATCH] tcomslice: removed un-used sortPicList() function

Gopu Govindaswamy gopu at multicorewareinc.com
Tue Oct 8 10:58:46 CEST 2013


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1381222717 -19800
# Node ID 1bf71583de895064ef714978187265ce547ceb7b
# Parent  565270489635b5b70f682eb03d47004b2b2fdeeb
tcomslice: removed un-used sortPicList() function

diff -r 565270489635 -r 1bf71583de89 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp	Tue Oct 08 14:25:32 2013 +0530
+++ b/source/Lib/TLibCommon/TComSlice.cpp	Tue Oct 08 14:28:37 2013 +0530
@@ -153,45 +153,6 @@
     m_substreamSizes = new UInt[numSubstreams > 0 ? numSubstreams - 1 : 0];
 }
 
-void  TComSlice::sortPicList(TComList<TComPic*>& picList)
-{
-    TComPic* picExtract;
-    TComPic* picInsert;
-
-    TComList<TComPic*>::iterator iterPicExtract;
-    TComList<TComPic*>::iterator iterPicExtract_1;
-    TComList<TComPic*>::iterator iterPicInsert;
-
-    for (int i = 1; i < (int)(picList.size()); i++)
-    {
-        iterPicExtract = picList.begin();
-        for (int j = 0; j < i; j++)
-        {
-            iterPicExtract++;
-        }
-
-        picExtract = *(iterPicExtract);
-        iterPicInsert = picList.begin();
-        while (iterPicInsert != iterPicExtract)
-        {
-            picInsert = *(iterPicInsert);
-            if (picInsert->getPOC() >= picExtract->getPOC())
-            {
-                break;
-            }
-
-            iterPicInsert++;
-        }
-
-        iterPicExtract_1 = iterPicExtract;
-        iterPicExtract_1++;
-
-        //  swap iterPicExtract and iterPicInsert, iterPicExtract = curr. / iterPicInsert = insertion position
-        picList.insert(iterPicInsert, iterPicExtract, iterPicExtract_1);
-        picList.erase(iterPicExtract);
-    }
-}
-
 TComPic* TComSlice::xGetRefPic(TComList<TComPic*>& picList, int poc)
 {
     TComList<TComPic*>::iterator iterPic = picList.begin();
diff -r 565270489635 -r 1bf71583de89 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h	Tue Oct 08 14:25:32 2013 +0530
+++ b/source/Lib/TLibCommon/TComSlice.h	Tue Oct 08 14:28:37 2013 +0530
@@ -1615,8 +1615,6 @@
         m_bEqualRef[e][refIdx1][refIdx2] = m_bEqualRef[e][refIdx2][refIdx1] = b;
     }
 
-    static void sortPicList(TComList<TComPic*>& picList);
-
     void setList1IdxToList0Idx();
 
     void setTLayerInfo(UInt tlayer);


More information about the x265-devel mailing list