Ignore:
Timestamp:
11 Jun 2013, 20:35:00 (11 years ago)
Author:
zhang
Message:

Implementation of ARP from QC

File:
1 edited

Legend:

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

    r446 r464  
    14861486      m_dimensionId[i][j] = 0;
    14871487    }
     1488
     1489#if H_3D_ARP
     1490    m_uiUseAdvResPred[i]  = 0;
     1491    m_uiARPStepNum[i]     = 1;
     1492#endif
    14881493  }
    14891494#endif
     
    22572262  }
    22582263}
     2264
     2265#if H_3D_ARP
     2266Void TComSlice::setARPStepNum()                                 
     2267{
     2268  Bool bAllIvRef = true;
     2269
     2270  if(!getVPS()->getUseAdvRP(getLayerId()))
     2271  {
     2272    m_nARPStepNum = 0;
     2273  }
     2274  else
     2275  {
     2276    for( Int iRefListId = 0; iRefListId < 2; iRefListId++ )
     2277    {
     2278      RefPicList  eRefPicList = RefPicList( iRefListId );
     2279      Int iNumRefIdx = getNumRefIdx(eRefPicList);
     2280     
     2281      if( iNumRefIdx <= 0 )
     2282      {
     2283        continue;
     2284      }
     2285
     2286      for ( Int i = 0; i < iNumRefIdx; i++ )
     2287      {
     2288        if( getRefPic( eRefPicList, i)->getPOC() != getPOC() )
     2289        {
     2290          bAllIvRef = false;
     2291          break;
     2292        }
     2293      }
     2294
     2295      if( bAllIvRef == false ) { break; }
     2296    }
     2297    m_nARPStepNum = !bAllIvRef ? getVPS()->getARPStepNum(getLayerId()) : 0;
     2298  }
     2299}
     2300#endif
    22592301#endif
    22602302/** get scaling matrix from RefMatrixID
Note: See TracChangeset for help on using the changeset viewer.