Changeset 499 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 27 Jun 2013, 00:45:09 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp
r486 r499 221 221 m_numEntryPointOffsets = 0; 222 222 m_enableTMVPFlag = true; 223 #if H_3D_TMVP 224 m_aiAlterRefIdx[0] = -1; 225 m_aiAlterRefIdx[1] = -1; 226 #endif 223 227 } 224 228 … … 699 703 } 700 704 #if H_3D 705 #if H_3D_TMVP 706 Void TComSlice::generateAlterRefforTMVP() 707 { 708 for ( UInt uiRefListIdx = 0; uiRefListIdx < 2; uiRefListIdx++ ) 709 { 710 if ( this->getNumRefIdx( RefPicList( uiRefListIdx ) ) == 0) 711 continue; 712 713 Bool bZeroIdxLtFlag = this->getRefPic(RefPicList(uiRefListIdx), 0)->getIsLongTerm(); 714 for(Int i = 1; i < this->getNumRefIdx(RefPicList(uiRefListIdx)); i++ ) 715 { 716 if ( ( bZeroIdxLtFlag && !this->getRefPic(RefPicList(uiRefListIdx), i)->getIsLongTerm() ) || 717 (!bZeroIdxLtFlag && this->getRefPic(RefPicList(uiRefListIdx), i)->getIsLongTerm() ) ) 718 { 719 this->setAlterRefIdx(RefPicList(uiRefListIdx),i); 720 break; 721 } 722 } 723 } 724 } 725 #endif 701 726 Void TComSlice::setCamparaSlice( Int** aaiScale, Int** aaiOffset ) 702 727 {
Note: See TracChangeset for help on using the changeset viewer.