Changeset 939 in SHVCSoftware


Ignore:
Timestamp:
26 Dec 2014, 22:57:24 (10 years ago)
Author:
seregin
Message:

remove ZERO_MVD_EST

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncSearch.cpp

    r916 r939  
    32693269          if ( iRefIdxTemp == pcCU->getSlice()->getNumRefIdx(eRefPicList)-1 ) uiBitsTemp--;
    32703270        }
    3271 #if ZERO_MVD_EST
    3272         xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp, &uiZeroMvdDistTemp);
    3273 #else
     3271
    32743272        xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp);
    3275 #endif
     3273
    32763274        aaiMvpIdx[iRefList][iRefIdxTemp] = pcCU->getMVPIdx(eRefPicList, uiPartAddr);
    32773275        aaiMvpNum[iRefList][iRefIdxTemp] = pcCU->getMVPNum(eRefPicList, uiPartAddr);
     
    32933291
    32943292        uiBitsTemp += m_auiMVPIdxCost[aaiMvpIdx[iRefList][iRefIdxTemp]][AMVP_MAX_NUM_CANDS];
    3295 #if ZERO_MVD_EST
    3296         if ( iRefList == 0 || pcCU->getSlice()->getList1IdxToList0Idx( iRefIdxTemp ) < 0 )
    3297         {
    3298           uiZeroMvdBitsTemp = uiBitsTemp;
    3299           uiZeroMvdBitsTemp += 2; //zero mvd bits
    3300 
    3301           m_pcRdCost->getMotionCost( 1, 0 );
    3302           uiZeroMvdCostTemp = uiZeroMvdDistTemp + m_pcRdCost->getCost(uiZeroMvdBitsTemp);
    3303 
    3304           if (uiZeroMvdCostTemp < uiZeroMvdCost)
    3305           {
    3306             uiZeroMvdCost = uiZeroMvdCostTemp;
    3307             iZeroMvdDir = iRefList + 1;
    3308             aiZeroMvdRefIdx[iRefList] = iRefIdxTemp;
    3309             aiZeroMvdMvpIdx[iRefList] = aaiMvpIdx[iRefList][iRefIdxTemp];
    3310             auiZeroMvdBits[iRefList] = uiZeroMvdBitsTemp;
    3311           }         
    3312         }
    3313 #endif
    33143293       
    33153294#if GPB_SIMPLE_UNI
Note: See TracChangeset for help on using the changeset viewer.