[x265] [PATCH 2 of 3] TEncSearch: remove unused code

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Fri Oct 4 12:12:26 CEST 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1380880515 -19800
# Node ID 8604d2a97e089db3300e67da380286a02f0d9fc0
# Parent  ae9c68edd6b24a419439b6f49f1ce8c031885f7e
TEncSearch: remove unused code

diff -r ae9c68edd6b2 -r 8604d2a97e08 source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Fri Oct 04 15:23:07 2013 +0530
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Fri Oct 04 15:25:15 2013 +0530
@@ -2279,7 +2279,6 @@
         UInt costbi = MAX_UINT;
         UInt costTemp = 0;
         UInt bitsTemp;
-        UInt bestBiPDist = MAX_INT;
         MV   mvValidList1;
         int  refIdxValidList1 = 0;
         UInt bitsValidList1 = MAX_UINT;
@@ -2326,11 +2325,6 @@
                     mvpIdx[refList][refIdxTmp] = cu->getMVPIdx(picList, partAddr);
                     mvpNum[refList][refIdxTmp] = cu->getMVPNum(picList, partAddr);
 
-                    if (cu->getSlice()->getMvdL1ZeroFlag() && refList == 1 && biPDistTemp < bestBiPDist)
-                    {
-                        bestBiPDist = biPDistTemp;
-                    }
-
                     bitsTemp += m_mvpIdxCost[mvpIdx[refList][refIdxTmp]][AMVP_MAX_NUM_CANDS];
 
                     if (refList == 1) // list 1


More information about the x265-devel mailing list