Changeset 90 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibCommon


Ignore:
Timestamp:
20 Mar 2013, 22:00:39 (12 years ago)
Author:
seregin
Message:

splitting parameter sets for layers

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

Legend:

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

    r89 r90  
    4444//! \ingroup TLibCommon
    4545//! \{
     46
     47#if SVC_EXTENSION
     48  ParameterSetMap<TComVPS> ParameterSetManager::m_vpsMap(MAX_NUM_VPS);
     49  Int ParameterSetManager::m_activeVPSId = -1;
     50#endif
    4651
    4752TComSlice::TComSlice()
     
    19041909
    19051910ParameterSetManager::ParameterSetManager()
     1911#if SVC_EXTENSION
     1912: m_spsMap(MAX_NUM_SPS)
     1913, m_ppsMap(MAX_NUM_PPS)
     1914, m_activeSPSId(-1)
     1915, m_activePPSId(-1)
     1916#else
    19061917: m_vpsMap(MAX_NUM_VPS)
    19071918, m_spsMap(MAX_NUM_SPS)
     
    19101921, m_activeSPSId(-1)
    19111922, m_activePPSId(-1)
     1923#endif
    19121924{
    19131925}
     
    19461958//! activate a PPS and depending on isIDR parameter also SPS and VPS
    19471959//! \returns true, if activation is successful
    1948 #if SVC_EXTENSION
    1949 Bool ParameterSetManager::activatePPS(Int ppsId, Bool isIDR, UInt layerId)
    1950 #else
    19511960Bool ParameterSetManager::activatePPS(Int ppsId, Bool isIDR)
    1952 #endif
    19531961{
    19541962  TComPPS *pps = m_ppsMap.getPS(ppsId);
     
    19561964  {
    19571965    Int spsId = pps->getSPSId();
    1958 #if SVC_EXTENSION
    1959     if (!isIDR && (spsId != layerId ))
    1960 #else
    19611966    if (!isIDR && (spsId != m_activeSPSId))
    1962 #endif
    19631967    {
    19641968      printf("Warning: tried to activate PPS referring to a inactive SPS at non-IDR.");
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComSlice.h

    r76 r90  
    16761676  //! activate a PPS and depending on isIDR parameter also SPS and VPS
    16771677  //! \returns true, if activation is successful
    1678 #if SVC_EXTENSION
    1679   Bool activatePPS(Int ppsId, Bool isIDR, UInt layerId);
    1680 #else
    16811678  Bool activatePPS(Int ppsId, Bool isIDR);
    1682 #endif
    16831679
    16841680  TComVPS* getActiveVPS(){ return m_vpsMap.getPS(m_activeVPSId); };
     
    16871683
    16881684protected:
    1689  
     1685
     1686#if SVC_EXTENSION
     1687  static ParameterSetMap<TComVPS> m_vpsMap;
     1688#else
    16901689  ParameterSetMap<TComVPS> m_vpsMap;
     1690#endif
    16911691  ParameterSetMap<TComSPS> m_spsMap;
    16921692  ParameterSetMap<TComPPS> m_ppsMap;
    16931693
     1694#if SVC_EXTENSION
     1695  static Int m_activeVPSId;
     1696#else
    16941697  Int m_activeVPSId;
     1698#endif
    16951699  Int m_activeSPSId;
    16961700  Int m_activePPSId;
Note: See TracChangeset for help on using the changeset viewer.