Changeset 399 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
17 Sep 2013, 19:39:11 (11 years ago)
Author:
seregin
Message:

rename MaxSublayerForIlpPlus1 with MaxTidIlRefPicsPlus1

Location:
branches/SHM-3.1-dev/source/Lib/TLibCommon
Files:
2 edited

Legend:

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

    r396 r399  
    446446
    447447#if ILR_RESTR
    448     Int maxSubLayerForILPPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0;
    449     if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=  maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
     448    Int maxTidIlRefPicsPlus1 = ( m_layerId > 0 && m_activeNumILRRefIdx > 0)? m_pcVPS->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId()) : 0;
     449    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 && ( ( (Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=  maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )  )
    450450#else //#if ILR_RESTR
    451451    if( m_layerId > 0 && m_activeNumILRRefIdx > 0 )
     
    484484    for( i=0; i < m_pcVPS->getNumDirectRefLayers( m_layerId ); i++ )
    485485    {
    486       Int maxSubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[i]->getSlice(0)->getLayerId());
    487       if( ((Int)(ilpPic[i]->getSlice(0)->getTLayer())<= maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[i]->getSlice(0)->getRapPicFlag() ) )
     486      Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[i]->getSlice(0)->getLayerId());
     487      if( ((Int)(ilpPic[i]->getSlice(0)->getTLayer())<= maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[i]->getSlice(0)->getRapPicFlag() ) )
    488488      {
    489489        numInterLayerRPSPics++;
     
    625625        Int refLayerIdc = m_interLayerPredLayerIdc[i];
    626626#if ILR_RESTR
    627         Int maxSubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
    628         if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
     627        Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
     628        if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
    629629#endif
    630630          rpsCurrList0[cIdx] = ilpPic[refLayerIdc];
     
    653653        Int refLayerIdc = m_interLayerPredLayerIdc[i];
    654654#if ILR_RESTR
    655          Int maxSubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
    656         if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
     655         Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
     656        if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
    657657#endif
    658658        rpsCurrList0[cIdx] = ilpPic[refLayerIdc];
     
    690690        Int refLayerIdc = m_interLayerPredLayerIdc[i];
    691691#if ILR_RESTR
    692         Int maxSubLayerForILPPlus1 = getVPS()->getMaxSublayerForIlpPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
    693         if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
     692        Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerId());
     693        if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
    694694#endif
    695695        rpsCurrList1[cIdx] = ilpPic[refLayerIdc];
     
    18011801#if JCTVC_M0203_INTERLAYER_PRED_IDC
    18021802#if N0120_MAX_TID_REF_PRESENT_FLAG
    1803   m_maxTidIlRefPicsPlus1PresentFlag = true;
     1803  m_maxTidRefPresentFlag = true;
    18041804#endif
    18051805  for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++)
    18061806  {
    1807     m_maxSublayerForIlpPlus1[i] = m_uiMaxTLayers + 1;
     1807    m_maxTidIlRefPicsPlus1[i] = m_uiMaxTLayers + 1;
    18081808  }
    18091809#endif
  • branches/SHM-3.1-dev/source/Lib/TLibCommon/TComSlice.h

    r398 r399  
    524524#endif
    525525#if JCTVC_M0203_INTERLAYER_PRED_IDC
    526   UInt       m_maxSublayerForIlpPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];
     526  UInt       m_maxTidIlRefPicsPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];
    527527#endif
    528528#if N0120_MAX_TID_REF_PRESENT_FLAG
    529   Bool       m_maxTidIlRefPicsPlus1PresentFlag;
     529  Bool       m_maxTidRefPresentFlag;
    530530#endif
    531531#if M0040_ADAPTIVE_RESOLUTION_CHANGE
     
    717717#endif
    718718#if JCTVC_M0203_INTERLAYER_PRED_IDC
    719   UInt   getMaxSublayerForIlpPlus1(Int layerId)                     { return m_maxSublayerForIlpPlus1[layerId];                   }
    720   Void   setMaxSublayerForIlpPlus1(Int layerId, UInt maxSublayer)   { m_maxSublayerForIlpPlus1[layerId] = maxSublayer;            }
     719  UInt   getMaxTidIlRefPicsPlus1(Int layerId)                     { return m_maxTidIlRefPicsPlus1[layerId];                   }
     720  Void   setMaxTidIlRefPicsPlus1(Int layerId, UInt maxSublayer)   { m_maxTidIlRefPicsPlus1[layerId] = maxSublayer;            }
    721721#endif
    722722#if N0120_MAX_TID_REF_PRESENT_FLAG
    723   Bool   getMaxTidRefPresentFlag()                                  { return m_maxTidIlRefPicsPlus1PresentFlag ;}
    724   Void   setMaxTidRefPresentFlag(Bool x)                            { m_maxTidIlRefPicsPlus1PresentFlag = x;}
     723  Bool   getMaxTidRefPresentFlag()                                  { return m_maxTidRefPresentFlag ;}
     724  Void   setMaxTidRefPresentFlag(Bool x)                            { m_maxTidRefPresentFlag = x;}
    725725#endif
    726726#if M0040_ADAPTIVE_RESOLUTION_CHANGE
Note: See TracChangeset for help on using the changeset viewer.