Ignore:
Timestamp:
27 Jun 2013, 00:45:09 (11 years ago)
Author:
zhang
Message:

Changes include: DV-MVP(H_3D_IDV), TMVP merging candidate(H_3D_TMVP, target reference index changes, scaling based on view order index) and cleanups (H_3D_CLEANUPS)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp

    r486 r499  
    221221  m_numEntryPointOffsets = 0;
    222222  m_enableTMVPFlag = true;
     223#if H_3D_TMVP
     224  m_aiAlterRefIdx[0]                  = -1;
     225  m_aiAlterRefIdx[1]                  = -1;
     226#endif
    223227}
    224228
     
    699703}
    700704#if H_3D
     705#if H_3D_TMVP
     706Void 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
    701726Void TComSlice::setCamparaSlice( Int** aaiScale, Int** aaiOffset )
    702727
Note: See TracChangeset for help on using the changeset viewer.