Ignore:
Timestamp:
28 Jan 2013, 22:13:59 (11 years ago)
Author:
qualcomm
Message:

QC_C0047&51

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev2-Qualcomm/source/Lib/TLibCommon/TComSlice.cpp

    r210 r237  
    199199  m_numEntryPointOffsets = 0;
    200200#endif
     201#if QC_TMVP_MRG_REFIDX_C0047
     202  m_aiNewRefIdx[0]                  = -1;
     203  m_aiNewRefIdx[1]                  = -1;
     204#endif
    201205}
    202206
     
    419423    }
    420424  }
     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
    421445}
    422446
Note: See TracChangeset for help on using the changeset viewer.