Ignore:
Timestamp:
12 Aug 2013, 11:21:53 (11 years ago)
Author:
mediatek-htm
Message:

Integration of JCT3V-E0182. The MACRO is "MTK_TEXTURE_MRGCAND_BUGFIX_E0182".

By Yi-Wen Chen (yiwen.chen@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-2.0-dev1-Mediatek/source/Lib/TLibCommon/TComPic.cpp

    r566 r567  
    710710}
    711711#endif
     712#if MTK_TEXTURE_MRGCAND_BUGFIX_E0182
     713Void TComPic::checkTextureRef(  )
     714{
     715  TComSlice* pcCurrSlice = getSlice(getCurrSliceIdx());
     716  TComPic* pcTextPic = pcCurrSlice->getTexturePic();
     717  TComSlice* pcTextSlice = pcTextPic->getSlice(0); // currently only support single slice
     718
     719  for( Int iTextRefDir = 0; (iTextRefDir < (pcTextSlice->isInterB()? 2:1) ) && !pcTextSlice->isIntra(); iTextRefDir ++ )
     720  {
     721    for( Int iTextRefIdx =0; iTextRefIdx<pcTextSlice->getNumRefIdx(( RefPicList )iTextRefDir ); iTextRefIdx++)
     722    {
     723      Int iTextRefPOC    = pcTextSlice->getRefPOC( ( RefPicList )iTextRefDir, iTextRefIdx);
     724      Int iTextRefViewId = pcTextSlice->getRefPic( ( RefPicList )iTextRefDir, iTextRefIdx)->getViewIndex();
     725      m_aiTexToDepRef[iTextRefDir][iTextRefIdx] = -1;
     726      Int iCurrRefDir = iTextRefDir;
     727      for( Int iCurrRefIdx =0; ( iCurrRefIdx<pcCurrSlice->getNumRefIdx(( RefPicList )iCurrRefDir ) ) && ( m_aiTexToDepRef[iTextRefDir][iTextRefIdx] < 0 ) ; iCurrRefIdx++)
     728      {
     729        if( pcCurrSlice->getRefPOC( ( RefPicList )iCurrRefDir, iCurrRefIdx ) == iTextRefPOC &&
     730          pcCurrSlice->getRefPic( ( RefPicList )iCurrRefDir, iCurrRefIdx)->getViewIndex() == iTextRefViewId )
     731        { 
     732          m_aiTexToDepRef[iTextRefDir][iTextRefIdx] = iCurrRefIdx;
     733        }
     734      }
     735    }
     736
     737  }
     738}
     739
     740Int TComPic::isTextRefValid(Int iTextRefDir, Int iTextRefIdx)
     741{
     742  return m_aiTexToDepRef[iTextRefDir][iTextRefIdx];
     743}
     744#endif
    712745//! \}
Note: See TracChangeset for help on using the changeset viewer.