Changeset 399 in SHVCSoftware


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
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r398 r399  
    941941    {
    942942#if N0120_MAX_TID_REF_CFG
    943       vps->setMaxSublayerForIlpPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1());
     943      vps->setMaxTidIlRefPicsPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1());
    944944#else
    945       vps->setMaxSublayerForIlpPlus1(i, vps->getMaxTLayers()+1);
     945      vps->setMaxTidIlRefPicsPlus1(i, vps->getMaxTLayers()+1);
    946946#endif
    947947    }
     
    951951    for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ )
    952952    {
    953       vps->setMaxSublayerForIlpPlus1(i, 7);
     953      vps->setMaxTidIlRefPicsPlus1(i, 7);
    954954    }
    955955  }
  • 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
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r398 r399  
    10031003    for(i = 0; i < vps->getMaxLayers() - 1; i++)
    10041004    {
    1005       READ_CODE( 3, uiCode, "max_sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode);
     1005      READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode);
    10061006#if N0120_MAX_TID_REF_CFG
    10071007      assert( uiCode <= vps->getMaxTLayers());
     
    10151015    for(i = 0; i < vps->getMaxLayers() - 1; i++)
    10161016    {
    1017       vps->setMaxSublayerForIlpPlus1(i, 7);
     1017      vps->setMaxTidIlRefPicsPlus1(i, 7);
    10181018    }
    10191019  }
     
    10211021  for(i = 0; i < vps->getMaxLayers() - 1; i++)
    10221022  {
    1023     READ_CODE( 3, uiCode, "max_sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode);
     1023    READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode);
    10241024    assert( uiCode <= vps->getMaxTLayers() );
    10251025  }
  • branches/SHM-3.1-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r389 r399  
    467467
    468468  Int remainingInterLayerReferencesFlag = 0;
    469   if ( currTid <= pcSlice->getVPS()->getMaxSublayerForIlpPlus1(latestDecLayerId) - 1 )
     469  if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId) - 1 )
    470470  {
    471471    for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ )
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r398 r399  
    788788     for( i = 0; i < vps->getMaxLayers() - 1; i++)
    789789     {
    790        WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );
     790       WRITE_CODE(vps->getMaxTidIlRefPicsPlus1(i), 3, "max_tid_il_ref_pics_plus1[i]" );
    791791     }
    792792   }
     
    794794  for( i = 0; i < vps->getMaxLayers() - 1; i++)
    795795  {
    796     WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );
     796    WRITE_CODE(vps->getMaxTidIlRefPicsPlus1(i), 3, "max_tid_il_ref_pics_plus1[i]" );
    797797  }
    798798#endif
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r389 r399  
    594594#if ILR_RESTR && ILR_RESTR_FIX
    595595        // Apply temporal layer restriction to inter-layer prediction
    596         Int maxSubLayerForILPPlus1 = m_pcEncTop->getVPS()->getMaxSublayerForIlpPlus1(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getLayerId());
    597         if( ((Int)(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getTLayer())<=maxSubLayerForILPPlus1-1) || (maxSubLayerForILPPlus1==0 && pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getRapPicFlag()) )
     596        Int maxTidIlRefPicsPlus1 = m_pcEncTop->getVPS()->getMaxTidIlRefPicsPlus1(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getLayerId());
     597        if( ((Int)(pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getRapPicFlag()) )
    598598        {
    599599          interLayerPredLayerIdcTmp[activeNumILRRefIdxTmp++] = refLayerIdc; // add picture to the list of valid inter-layer pictures
Note: See TracChangeset for help on using the changeset viewer.