Changeset 30 in SHVCSoftware for trunk/source/Lib/TLibEncoder
- Timestamp:
- 7 Feb 2013, 03:07:23 (12 years ago)
- Location:
- trunk/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/TEncCu.cpp
r28 r30 1352 1352 { 1353 1353 #if REF_IDX_ME_ZEROMV 1354 1355 1356 1354 Bool bZeroMVILR = rpcTempCU->xCheckZeroMVILRMerge(uhInterDirNeighbours[uiMergeCand], cMvFieldNeighbours[0 + 2*uiMergeCand], cMvFieldNeighbours[1 + 2*uiMergeCand]); 1355 if(bZeroMVILR) 1356 { 1357 1357 #endif 1358 1358 if(!(uiNoResidual==1 && mergeCandBuffer[uiMergeCand]==1)) … … 1408 1408 } 1409 1409 #if REF_IDX_ME_ZEROMV 1410 1410 } 1411 1411 #endif 1412 1412 } -
trunk/source/Lib/TLibEncoder/TEncSearch.cpp
r28 r30 3429 3429 { 3430 3430 #if REF_IDX_ME_ZEROMV 3431 3432 3433 3431 Bool bZeroMVILR = pcCU->xCheckZeroMVILRMvdL1Zero(iRefList, iRefIdxTemp, aaiMvpIdx[iRefList][iRefIdxTemp]); 3432 if(bZeroMVILR) 3433 { 3434 3434 #endif 3435 3435 bestBiPDist = biPDistTemp; … … 3437 3437 bestBiPRefIdxL1 = iRefIdxTemp; 3438 3438 #if REF_IDX_ME_ZEROMV 3439 3439 } 3440 3440 #endif 3441 3441 } … … 3577 3577 // Bi-directional prediction 3578 3578 #if REF_IDX_ME_ZEROMV 3579 3579 if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) && !(pcCU->getSlice()->getMvdL1ZeroFlag() && bestBiPDist == MAX_INT) ) 3580 3580 #else 3581 3581 if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) ) … … 4511 4511 #if REF_IDX_ME_ZEROMV 4512 4512 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getIsILR()) //ILR reference pic 4513 { 4513 4514 rcMv.setZero(); //use Mv(0, 0) for integer ME 4515 } 4514 4516 else //non ILR reference pic 4515 4517 { … … 4543 4545 #if REF_IDX_ME_ZEROMV 4544 4546 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getIsILR()) //ILR reference pic 4547 { 4545 4548 xPatternSearchFracDIFMv0( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost, bBi ); 4549 } 4546 4550 else //non ILR reference pic 4551 { 4547 4552 xPatternSearchFracDIF( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost, bBi ); 4553 } 4548 4554 #else 4549 4555 xPatternSearchFracDIF( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost … … 5447 5453 #if NO_RESIDUAL_FLAG_FOR_BLPRED 5448 5454 if(pcCU->isIntraBL(uiAbsPartIdx) ) 5455 { 5449 5456 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,DC_IDX, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only 5457 } 5450 5458 else 5459 { 5451 5460 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only 5461 } 5452 5462 #else 5453 5463 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType );//this is for inter mode only … … 5793 5803 #if NO_RESIDUAL_FLAG_FOR_BLPRED 5794 5804 if(pcCU->isIntraBL(uiAbsPartIdx) ) 5805 { 5795 5806 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,DC_IDX, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true ); 5807 } 5796 5808 else 5809 { 5797 5810 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true ); 5811 } 5798 5812 #else 5799 5813 m_pcTrQuant->invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), TEXT_LUMA,REG_DCT, pcResiCurrY, m_pcQTTempTComYuv[uiQTTempAccessLayer].getStride(), pcCoeffCurrY, trWidth, trHeight, scalingListType, true ); -
trunk/source/Lib/TLibEncoder/TEncTop.cpp
r28 r30 402 402 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++) 403 403 { 404 404 m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i); 405 405 } 406 406 }
Note: See TracChangeset for help on using the changeset viewer.