Changeset 34 in SHVCSoftware for branches/SHM-1.0-dev/source/Lib
- Timestamp:
- 8 Feb 2013, 00:16:24 (12 years ago)
- Location:
- branches/SHM-1.0-dev/source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-1.0-dev/source
-
Property
svn:mergeinfo
set to
/trunk/source merged eligible
-
Property
svn:mergeinfo
set to
-
branches/SHM-1.0-dev/source/Lib/TLibCommon/TComPic.cpp
r32 r34 586 586 } 587 587 588 589 590 591 588 Void TComPic::copyUpsampledMvField(TComPic* pcPicBase) 592 589 { 593 594 595 596 590 Int iBWidth = pcPicBase->getPicYuvRec()->getWidth () - pcPicBase->getPicYuvRec()->getPicCropLeftOffset() - pcPicBase->getPicYuvRec()->getPicCropRightOffset(); 597 591 Int iBHeight = pcPicBase->getPicYuvRec()->getHeight() - pcPicBase->getPicYuvRec()->getPicCropTopOffset() - pcPicBase->getPicYuvRec()->getPicCropBottomOffset(); … … 599 593 Int iEWidth = getPicYuvRec()->getWidth() - getPicYuvRec()->getPicCropLeftOffset() - getPicYuvRec()->getPicCropRightOffset(); 600 594 Int iEHeight = getPicYuvRec()->getHeight() - getPicYuvRec()->getPicCropTopOffset() - getPicYuvRec()->getPicCropBottomOffset(); 601 602 595 603 596 UInt upSampleRatio = 0; 604 597 if(iEWidth == iBWidth && iEHeight == iBHeight) … … 654 647 } 655 648 } 656 657 649 else 658 650 { -
branches/SHM-1.0-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r17 r34 1498 1498 #if NO_RESIDUAL_FLAG_FOR_BLPRED 1499 1499 if(pcCU->isIntraBL(uiAbsPartIdx) && eTxt == TEXT_LUMA) 1500 { 1500 1501 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, DC_IDX, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1502 } 1501 1503 else 1504 { 1502 1505 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); 1506 } 1503 1507 #else 1504 1508 invtransformNxN( pcCU->getCUTransquantBypass(uiAbsPartIdx), eTxt, REG_DCT, pResi, uiStride, rpcCoeff, uiWidth, uiHeight, scalingListType, pcCU->getTransformSkip(uiAbsPartIdx, eTxt) ); -
branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r27 r34 169 169 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++) 170 170 { 171 171 m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i); 172 172 } 173 173 } -
branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncCu.cpp
r32 r34 1352 1352 { 1353 1353 #if REF_IDX_ME_ZEROMV 1354 Bool bZeroMVILR = rpcTempCU->xCheckZeroMVILRMerge(uhInterDirNeighbours[uiMergeCand], cMvFieldNeighbours[0 + 2*uiMergeCand], cMvFieldNeighbours[1 + 2*uiMergeCand]);1355 if(bZeroMVILR)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 } -
branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r32 r34 3429 3429 { 3430 3430 #if REF_IDX_ME_ZEROMV 3431 Bool bZeroMVILR = pcCU->xCheckZeroMVILRMvdL1Zero(iRefList, iRefIdxTemp, aaiMvpIdx[iRefList][iRefIdxTemp]);3432 if(bZeroMVILR)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 if ( (pcCU->getSlice()->isInterB()) && (pcCU->isBipredRestriction(iPartIdx) == false) && !(pcCU->getSlice()->getMvdL1ZeroFlag() && bestBiPDist == MAX_INT) )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 ); -
branches/SHM-1.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r27 r34 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.