Changeset 237 in 3DVCSoftware for branches/HTM-5.1-dev2-Qualcomm/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 28 Jan 2013, 22:13:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev2-Qualcomm/source/Lib/TLibCommon/TComSlice.cpp
r210 r237 199 199 m_numEntryPointOffsets = 0; 200 200 #endif 201 #if QC_TMVP_MRG_REFIDX_C0047 202 m_aiNewRefIdx[0] = -1; 203 m_aiNewRefIdx[1] = -1; 204 #endif 201 205 } 202 206 … … 419 423 } 420 424 } 425 #if QC_TMVP_MRG_REFIDX_C0047 426 Int iCurrPOC = this->getPOC(); 427 for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ )//just to get one updated ref idx for merge in each L0/L1 direction, if it is not avaialbe, it is still -1 428 { 429 if ( this->getNumRefIdx( RefPicList( uiRefListIdx ) ) == 0) 430 continue; 431 432 Bool bZeroIdxInterViewFlag = ( this->getRefPic(RefPicList(uiRefListIdx), 0)->getPOC() == iCurrPOC ) ? true : false; 433 for(Int i = 1; i < this->getNumRefIdx(RefPicList(uiRefListIdx)); i++ ) 434 { 435 if ( (bZeroIdxInterViewFlag && this->getRefPic(RefPicList(uiRefListIdx), i)->getPOC() != iCurrPOC ) || 436 (!bZeroIdxInterViewFlag && this->getRefPic(RefPicList(uiRefListIdx), i)->getPOC() == iCurrPOC ) ) 437 { 438 this->setNewRefIdx(RefPicList(uiRefListIdx),i); 439 break; 440 } 441 } 442 } 443 444 #endif 421 445 } 422 446
Note: See TracChangeset for help on using the changeset viewer.