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

splitting parameter sets for layers

File:
1 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.");
Note: See TracChangeset for help on using the changeset viewer.