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


Ignore:
Timestamp:
15 Aug 2013, 14:59:46 (11 years ago)
Author:
etri
Message:

N0120 max_tid_il_ref_pics_plus1_present_flag

Location:
branches/SHM-3.0-dev/source
Files:
6 edited

Legend:

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

    r334 r337  
    888888  }
    889889#endif
     890#if N0120_MAX_TID_REF_PRESENT_FLAG
     891  vps->setMaxTidIlRefPicsPlus1PresentFlag(true);
     892  if (vps->getMaxTidIlRefPicsPlus1PresentFlag())
     893  {
     894    for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++)
     895    {
     896      vps->setMaxSublayerForIlpPlus1(i, vps->getMaxTLayers()+1);
     897    }
     898  }
     899  else
     900  {
     901    for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++)
     902    {
     903      vps->setMaxSublayerForIlpPlus1(i, 7);
     904    }
     905  }
     906#endif
    890907#if ILP_SSH_SIG
    891908    vps->setIlpSshSignalingEnabledFlag(true);
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.cpp

    r334 r337  
    16621662#endif
    16631663#if JCTVC_M0203_INTERLAYER_PRED_IDC
     1664#if N0120_MAX_TID_REF_PRESENT_FLAG
     1665  m_maxTidIlRefPicsPlus1PresentFlag = true;
     1666#endif
    16641667  for( Int i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++)
    16651668  {
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TComSlice.h

    r334 r337  
    494494  UInt       m_maxSublayerForIlpPlus1[MAX_VPS_LAYER_ID_PLUS1 - 1];
    495495#endif
     496#if N0120_MAX_TID_REF_PRESENT_FLAG
     497  Bool       m_maxTidIlRefPicsPlus1PresentFlag;
     498#endif
    496499#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    497500  Bool       m_singleLayerForNonIrapFlag;
     
    660663  Void   setMaxSublayerForIlpPlus1(Int layerId, UInt maxSublayer)   { m_maxSublayerForIlpPlus1[layerId] = maxSublayer;            }
    661664#endif
     665#if N0120_MAX_TID_REF_PRESENT_FLAG
     666  Bool   getMaxTidIlRefPicsPlus1PresentFlag()                   { return m_maxTidIlRefPicsPlus1PresentFlag ;}
     667  Void   setMaxTidIlRefPicsPlus1PresentFlag(Bool x)             { m_maxTidIlRefPicsPlus1PresentFlag = x;}
     668#endif
    662669#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    663670  Bool   getSingleLayerForNonIrapFlag()                             { return m_singleLayerForNonIrapFlag; }
  • branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h

    r336 r337  
    112112#if JCTVC_M0203_INTERLAYER_PRED_IDC
    113113#define ILR_RESTR                        1     ///< JCTVC-M0209 Inter-layer RPS and RPL
     114#define N0120_MAX_TID_REF_PRESENT_FLAG   1      ///< JCTVC-N0120 max_tid_ref_pics_plus1_present_flag
    114115#endif
    115116#if REF_IDX_MFM
  • branches/SHM-3.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r328 r337  
    951951#endif
    952952#if JCTVC_M0203_INTERLAYER_PRED_IDC
     953#if N0120_MAX_TID_REF_PRESENT_FLAG
     954  READ_FLAG( uiCode, "max_tid_il_ref_pics_plus1_present_flag"); vps->setMaxTidIlRefPicsPlus1PresentFlag(uiCode ? true : false);
     955  if (vps->getMaxTidIlRefPicsPlus1PresentFlag())
     956  {
     957    for(i = 0; i < vps->getMaxLayers() - 1; i++)
     958    {
     959      READ_CODE( 3, uiCode, "max_sublayer_for_ilp_plus1[i]" ); vps->setMaxSublayerForIlpPlus1(i, uiCode);
     960      assert( uiCode <= vps->getMaxTLayers() );
     961    }
     962  }
     963  else
     964  {
     965    for(i = 0; i < vps->getMaxLayers() - 1; i++)
     966    {
     967      vps->setMaxSublayerForIlpPlus1(i, 7);
     968    }
     969  }
     970#else
    953971  for(i = 0; i < vps->getMaxLayers() - 1; i++)
    954972  {
     
    956974    assert( uiCode <= vps->getMaxTLayers() );
    957975  }
     976#endif
    958977#endif
    959978#if ILP_SSH_SIG
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r328 r337  
    749749#endif
    750750#if JCTVC_M0203_INTERLAYER_PRED_IDC
     751#if N0120_MAX_TID_REF_PRESENT_FLAG
     752   WRITE_FLAG( vps->getMaxTidIlRefPicsPlus1PresentFlag(), "max_tid_il_ref_pics_plus1_present_flag");
     753   if (vps->getMaxTidIlRefPicsPlus1PresentFlag())
     754   {
     755     for( i = 0; i < vps->getMaxLayers() - 1; i++)
     756     {
     757       WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );
     758     }
     759   }
     760#else
    751761  for( i = 0; i < vps->getMaxLayers() - 1; i++)
    752762  {
    753763    WRITE_CODE(vps->getMaxSublayerForIlpPlus1(i), 3, "max_sublayer_for_ilp_plus1[i]" );
    754764  }
     765#endif
    755766#endif
    756767#if ILP_SSH_SIG
Note: See TracChangeset for help on using the changeset viewer.