Changeset 726 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
23 Apr 2014, 08:24:48 (11 years ago)
Author:
seregin
Message:

checks for ILRP prediction type

Location:
branches/SHM-6-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r716 r726  
    29902990#if SVC_EXTENSION && REF_IDX_MFM
    29912991      // set motion mapping flag
    2992       rpcSlice->setMFMEnabledFlag( ( rpcSlice->getNumMotionPredRefLayers() > 0 && rpcSlice->getActiveNumILRRefIdx() ) ? true : false );
     2992      rpcSlice->setMFMEnabledFlag( ( rpcSlice->getNumMotionPredRefLayers() > 0 && rpcSlice->getActiveNumILRRefIdx() && !rpcSlice->isIntra() ) ? true : false );
    29932993#endif
    29942994      if ( rpcSlice->getSliceType() == B_SLICE )
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r725 r726  
    17371737    if( pcSlice->getMFMEnabledFlag() )
    17381738    {
    1739       Int refLayerId = pcSlice->getRefPic( pcSlice->getSliceType() == B_SLICE ? ( RefPicList )( 1 - pcSlice->getColFromL0Flag() ) : REF_PIC_LIST_0 , pcSlice->getColRefIdx() )->getLayerId();
     1739      TComPic* refPic = pcSlice->getRefPic( pcSlice->getSliceType() == B_SLICE ? ( RefPicList )( 1 - pcSlice->getColFromL0Flag() ) : REF_PIC_LIST_0 , pcSlice->getColRefIdx() );
     1740
     1741      assert( refPic );
     1742
     1743      Int refLayerId = refPic->getLayerId();
     1744
    17401745      if( refLayerId != pcSlice->getLayerId() )
    17411746      {
     
    17651770#endif
    17661771
    1767     if( m_layerId > 0 && pcSlice->getEnableTMVPFlag() )
     1772    if( m_layerId > 0 && !pcSlice->isIntra() && pcSlice->getEnableTMVPFlag() )
    17681773    {
    17691774      TComPic* refPic = pcSlice->getRefPic(RefPicList(1 - pcSlice->getColFromL0Flag()), pcSlice->getColRefIdx());
     1775
     1776      assert( refPic );
    17701777
    17711778      // It is a requirement of bitstream conformance when the collocated picture, used for temporal motion vector prediction, is an inter-layer reference picture,
Note: See TracChangeset for help on using the changeset viewer.