Changeset 939 in SHVCSoftware
- Timestamp:
- 26 Dec 2014, 22:57:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibEncoder/TEncSearch.cpp
r916 r939 3269 3269 if ( iRefIdxTemp == pcCU->getSlice()->getNumRefIdx(eRefPicList)-1 ) uiBitsTemp--; 3270 3270 } 3271 #if ZERO_MVD_EST 3272 xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp, &uiZeroMvdDistTemp); 3273 #else 3271 3274 3272 xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp); 3275 #endif 3273 3276 3274 aaiMvpIdx[iRefList][iRefIdxTemp] = pcCU->getMVPIdx(eRefPicList, uiPartAddr); 3277 3275 aaiMvpNum[iRefList][iRefIdxTemp] = pcCU->getMVPNum(eRefPicList, uiPartAddr); … … 3293 3291 3294 3292 uiBitsTemp += m_auiMVPIdxCost[aaiMvpIdx[iRefList][iRefIdxTemp]][AMVP_MAX_NUM_CANDS]; 3295 #if ZERO_MVD_EST3296 if ( iRefList == 0 || pcCU->getSlice()->getList1IdxToList0Idx( iRefIdxTemp ) < 0 )3297 {3298 uiZeroMvdBitsTemp = uiBitsTemp;3299 uiZeroMvdBitsTemp += 2; //zero mvd bits3300 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 #endif3314 3293 3315 3294 #if GPB_SIMPLE_UNI
Note: See TracChangeset for help on using the changeset viewer.