Changeset 176 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
10 May 2013, 00:11:31 (12 years ago)
Author:
seregin
Message:

clean up for JCTVC_M0458_INTERLAYER_RPS_SIG

Location:
branches/SHM-2.0-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r175 r176  
    669669        pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumRefIdx(REF_PIC_LIST_1)+pcSlice->getNumILRRefIdx());
    670670      }
    671 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    672         // currently only one reference layer is supported in software and no decision logic to select yet.
    673         // hence num of active inter layer references is set to one always
    674           pcSlice->setActiveNumILRRefIdx(1);
    675 #endif
    676671    }
    677672#endif
  • branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r174 r176  
    194194  rpcSlice->setPic( pcPic );
    195195#if SVC_EXTENSION
     196  UInt layerId = pcPic->getLayerId();
    196197  rpcSlice->setVPS( vps );
    197   rpcSlice->initSlice( pcPic->getLayerId() );
     198  rpcSlice->initSlice( layerId );
    198199#else
    199200  rpcSlice->initSlice();
     
    486487  xStoreWPparam( pPPS->getUseWP(), pPPS->getWPBiPred() );
    487488
     489#if SVC_EXTENSION
     490  if( layerId > 0 )
     491  {
    488492#if JCTVC_M0458_INTERLAYER_RPS_SIG
    489493  // currently only one reference layer is supported in software and no decision logic to select yet.
    490494  // hence num of active inter layer references is set to one always
    491   rpcSlice->setActiveNumILRRefIdx(1);
     495    if( rpcSlice->getNumILRRefIdx() > 0 )
     496    {
     497      rpcSlice->setActiveNumILRRefIdx(1);
     498      rpcSlice->setInterLayerPredEnabledFlag(1);
     499    }
     500#else
     501    rpcSlice->setNumILRRefIdx( rpcSlice->getVPS()->getNumDirectRefLayers( layerId ) );
    492502#endif
     503  }
     504
     505#endif
    493506}
    494507
Note: See TracChangeset for help on using the changeset viewer.