Changeset 95 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib
- Timestamp:
- 22 Mar 2013, 23:05:09 (12 years ago)
- Location:
- branches/HM-10.0-dev-SHM/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComDataCU.cpp
r77 r95 1835 1835 { 1836 1836 Int refIdxL0 = cMvFieldL0.getRefIdx(); 1837 if(getSlice()->getRefPic(REF_PIC_LIST_0, refIdxL0)-> getIsILR())1837 if(getSlice()->getRefPic(REF_PIC_LIST_0, refIdxL0)->isILR()) 1838 1838 { 1839 1839 checkZeroMVILR &= (cMvFieldL0.getHor() == 0 && cMvFieldL0.getVer() == 0); … … 1843 1843 { 1844 1844 Int refIdxL1 = cMvFieldL1.getRefIdx(); 1845 if(getSlice()->getRefPic(REF_PIC_LIST_1, refIdxL1)-> getIsILR())1845 if(getSlice()->getRefPic(REF_PIC_LIST_1, refIdxL1)->isILR()) 1846 1846 { 1847 1847 checkZeroMVILR &= (cMvFieldL1.getHor() == 0 && cMvFieldL1.getVer() == 0); … … 1859 1859 Bool checkZeroMVILR = true; 1860 1860 1861 if(getSlice()->getRefPic(eRefPicList, iRefIdx)-> getIsILR())1861 if(getSlice()->getRefPic(eRefPicList, iRefIdx)->isILR()) 1862 1862 { 1863 1863 AMVPInfo* pcAMVPInfo = getCUMvField(eRefPicList)->getAMVPInfo(); -
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.h
r86 r95 124 124 #endif 125 125 #if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM 126 Bool getIsILR( UInt refLayer = 0 ) {return (getIsLongTerm() && m_layerId == refLayer);}126 Bool isILR( UInt refLayer = 0 ) {return (getIsLongTerm() && m_layerId == refLayer);} 127 127 #endif 128 128 -
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPrediction.cpp
r93 r95 495 495 496 496 #if REF_IDX_ME_ZEROMV 497 assert( ( pcCU->getSlice()->getRefPic(eRefPicList, iRefIdx)-> getIsILR() && cMv.getHor() == 0 && cMv.getVer() == 0 ) || pcCU->getSlice()->getRefPic(eRefPicList, iRefIdx)->getIsILR() == false );497 assert( ( pcCU->getSlice()->getRefPic(eRefPicList, iRefIdx)->isILR() && cMv.getHor() == 0 && cMv.getVer() == 0 ) || pcCU->getSlice()->getRefPic(eRefPicList, iRefIdx)->isILR() == false ); 498 498 #endif 499 499 -
branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TypeDef.h
r89 r95 57 57 58 58 #define AVC_BASE 0 ///< YUV BL reading for AVC base SVC 59 #define REF_IDX_FRAMEWORK 0///< inter-layer reference framework59 #define REF_IDX_FRAMEWORK 1 ///< inter-layer reference framework 60 60 61 61 #if SVC_UPSAMPLING -
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncGOP.cpp
r91 r95 571 571 for(Int colIdx = 0; colIdx < pcSlice->getNumRefIdx( RefPicList(1 - ColFromL0Flag) ); colIdx++) 572 572 { 573 if( pcSlice->getRefPic( RefPicList(1 - ColFromL0Flag), colIdx)-> getIsILR() )573 if( pcSlice->getRefPic( RefPicList(1 - ColFromL0Flag), colIdx)->isILR() ) 574 574 { 575 575 ColRefIdx = colIdx; … … 584 584 for(Int colIdx = 0; colIdx < pcSlice->getNumRefIdx( RefPicList(1 - ColFromL0Flag) ); colIdx++) 585 585 { 586 if( pcSlice->getRefPic( RefPicList(1 - ColFromL0Flag), colIdx)-> getIsILR() )586 if( pcSlice->getRefPic( RefPicList(1 - ColFromL0Flag), colIdx)->isILR() ) 587 587 { 588 588 ColRefIdx = colIdx; -
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncSearch.cpp
r74 r95 3289 3289 #if (ENCODER_FAST_MODE) 3290 3290 TComPic* pcPic = pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxTemp ); 3291 if( !testILR && pcPic-> getIsILR() && (ePartSize == SIZE_2Nx2N) )3291 if( !testILR && pcPic->isILR() && (ePartSize == SIZE_2Nx2N) ) 3292 3292 { 3293 3293 continue; … … 3533 3533 Bool testIter = true; 3534 3534 TComPic* pcPic = pcCU->getSlice()->getRefPic( RefPicList(1 - iRefList), iRefIdxBi[1 - iRefList] ); 3535 if(pcPic->getIsILR() && (ePartSize == SIZE_2Nx2N)) 3535 if(pcPic->isILR() && (ePartSize == SIZE_2Nx2N)) 3536 { 3536 3537 testIter = false; //the fixed part is ILR, skip this iteration 3538 } 3537 3539 if(testIter) 3538 3540 { … … 3544 3546 { 3545 3547 #if (ENCODER_FAST_MODE) 3546 Bool testRefIdx = true; 3547 pcPic = pcCU->getSlice()->getRefPic( RefPicList(iRefList) , iRefIdxTemp ); 3548 if(pcPic->getIsILR() && (ePartSize == SIZE_2Nx2N)) 3549 testRefIdx = false; //the refined part is ILR, skip this reference pic 3550 if(testRefIdx) 3551 { 3548 Bool testRefIdx = true; 3549 pcPic = pcCU->getSlice()->getRefPic( RefPicList(iRefList) , iRefIdxTemp ); 3550 if(pcPic->isILR() && (ePartSize == SIZE_2Nx2N)) 3551 { 3552 testRefIdx = false; //the refined part is ILR, skip this reference pic 3553 } 3554 if(testRefIdx) 3555 { 3552 3556 #endif 3553 3557 uiBitsTemp = uiMbBits[2] + uiMotBits[1-iRefList]; … … 3585 3589 } 3586 3590 #if (ENCODER_FAST_MODE) 3587 }3588 #endif3589 3591 } 3592 #endif 3593 } 3590 3594 #if (ENCODER_FAST_MODE) 3591 3595 } // for loop-iRefIdxTemp … … 4208 4212 // Do integer search 4209 4213 #if REF_IDX_ME_ZEROMV 4210 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )-> getIsILR()) //ILR reference pic4214 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->isILR()) //ILR reference pic 4211 4215 { 4212 4216 rcMv.setZero(); //use Mv(0, 0) for integer ME … … 4241 4245 { 4242 4246 #if REF_IDX_ME_ZEROMV 4243 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )-> getIsILR()) //ILR reference pic4247 if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->isILR()) //ILR reference pic 4244 4248 { 4245 4249 xPatternSearchFracDIFMv0( pcCU, pcPatternKey, piRefY, iRefStride, &rcMv, cMvHalf, cMvQter, ruiCost, bBi ); … … 6214 6218 Bool foundILR = false; 6215 6219 for( Int refIdx = 0; refIdx < pcCU->getSlice()->getNumRefIdx(eRefPicList); refIdx++ ) 6216 if( pcCU->getSlice()->getRefPic(eRefPicList, refIdx)-> getIsILR() )6220 if( pcCU->getSlice()->getRefPic(eRefPicList, refIdx)->isILR() ) 6217 6221 { 6218 6222 iRefIdxTemp = refIdx;
Note: See TracChangeset for help on using the changeset viewer.