Changeset 323 in SHVCSoftware for branches/SHM-3.0-dev


Ignore:
Timestamp:
2 Aug 2013, 22:59:06 (11 years ago)
Author:
seregin
Message:

cleanup ZERO_NUM_DIRECT_LAYERS

Location:
branches/SHM-3.0-dev/source/Lib
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.cpp

    r313 r323  
    385385
    386386#if REF_IDX_FRAMEWORK
    387 #if ZERO_NUM_DIRECT_LAYERS
    388387  if( m_layerId == 0 || ( m_layerId > 0 && ( m_activeNumILRRefIdx == 0 || !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) && (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) ) ) )
    389 #else
    390   if ((getLayerId() == 0) ||
    391       ((getSPS()->getLayerId()) &&  !((getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
    392        (getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA)) )
    393      )
    394 #endif
    395388  {
    396389#endif
     
    458451#if ILR_RESTR
    459452    Int maxSubLayerForILPPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0;
    460 #if ZERO_NUM_DIRECT_LAYERS
    461453    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=  maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
    462 #else
    463     if( m_layerId > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
    464 #endif
    465454#else //#if ILR_RESTR
    466 #if ZERO_NUM_DIRECT_LAYERS
    467455    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 )
    468 #else
    469     if( m_layerId > 0 )
    470 #endif
    471456#endif //#if ILR_RESTR
    472457    {
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h

    r322 r323  
    9696#define JCTVC_M0458_INTERLAYER_RPS_SIG   1      ///< implementation of JCTVC-L0178
    9797#if JCTVC_M0458_INTERLAYER_RPS_SIG
    98 #define ZERO_NUM_DIRECT_LAYERS           1      ///< support of zero direct reference layers
    9998#define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1      ///< Allow maximum of one resampling process for direct reference layers
    10099#endif
  • branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r321 r323  
    907907
    908908#if REF_IDX_FRAMEWORK
    909 #if ZERO_NUM_DIRECT_LAYERS
    910909    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
    911 #else
    912     if(m_layerId > 0)
    913 #endif
    914910    {
    915911      setILRPic(pcPic);
     
    13151311  if( vps->getNumDirectRefLayers( m_layerId ) <= 0 )
    13161312  {
    1317 #if ZERO_NUM_DIRECT_LAYERS
    13181313    return (TDecTop *)getLayerDec( 0 );
    1319 #else
    1320     return NULL;
    1321 #endif
    13221314  }
    13231315 
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r313 r323  
    645645      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
    646646    }
    647 #if ZERO_NUM_DIRECT_LAYERS
     647
    648648    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    649649    {
    650650      pcSlice->setSliceType(I_SLICE);
    651651    }
    652     else
    653 #endif
    654     if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
     652    else if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
    655653    {
    656654      if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
     
    760758
    761759#if REF_IDX_FRAMEWORK
    762 #if ZERO_NUM_DIRECT_LAYERS
    763760    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
    764 #else
    765     if(m_layerId > 0)
    766 #endif
    767761    {
    768762#if RESTR_CHK
     
    820814    //  Set reference list
    821815#if REF_IDX_FRAMEWORK
    822 #if ZERO_NUM_DIRECT_LAYERS
    823816    if(m_layerId ==  0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) )
    824 #else
    825     if(m_layerId ==  0)
    826 #endif
    827817    {
    828818      pcSlice->setRefPicList( rcListPic);
     
    832822#endif
    833823#if REF_IDX_FRAMEWORK
    834 #if ZERO_NUM_DIRECT_LAYERS
    835824    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
    836 #else
    837     if(m_layerId > 0)
    838 #endif
    839825    {
    840826      m_pcEncTop->setILRPic(pcPic);
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r313 r323  
    12041204  if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 )
    12051205  {
    1206 #if ZERO_NUM_DIRECT_LAYERS
    12071206    return (TEncTop *)getLayerEnc( 0 );
    1208 #else
    1209     return NULL;
    1210 #endif
    12111207  }
    12121208
Note: See TracChangeset for help on using the changeset viewer.