Changeset 90 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibCommon
- Timestamp:
- 20 Mar 2013, 22:00:39 (12 years ago)
- 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 44 44 //! \ingroup TLibCommon 45 45 //! \{ 46 47 #if SVC_EXTENSION 48 ParameterSetMap<TComVPS> ParameterSetManager::m_vpsMap(MAX_NUM_VPS); 49 Int ParameterSetManager::m_activeVPSId = -1; 50 #endif 46 51 47 52 TComSlice::TComSlice() … … 1904 1909 1905 1910 ParameterSetManager::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 1906 1917 : m_vpsMap(MAX_NUM_VPS) 1907 1918 , m_spsMap(MAX_NUM_SPS) … … 1910 1921 , m_activeSPSId(-1) 1911 1922 , m_activePPSId(-1) 1923 #endif 1912 1924 { 1913 1925 } … … 1946 1958 //! activate a PPS and depending on isIDR parameter also SPS and VPS 1947 1959 //! \returns true, if activation is successful 1948 #if SVC_EXTENSION1949 Bool ParameterSetManager::activatePPS(Int ppsId, Bool isIDR, UInt layerId)1950 #else1951 1960 Bool ParameterSetManager::activatePPS(Int ppsId, Bool isIDR) 1952 #endif1953 1961 { 1954 1962 TComPPS *pps = m_ppsMap.getPS(ppsId); … … 1956 1964 { 1957 1965 Int spsId = pps->getSPSId(); 1958 #if SVC_EXTENSION1959 if (!isIDR && (spsId != layerId ))1960 #else1961 1966 if (!isIDR && (spsId != m_activeSPSId)) 1962 #endif1963 1967 { 1964 1968 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 1676 1676 //! activate a PPS and depending on isIDR parameter also SPS and VPS 1677 1677 //! \returns true, if activation is successful 1678 #if SVC_EXTENSION1679 Bool activatePPS(Int ppsId, Bool isIDR, UInt layerId);1680 #else1681 1678 Bool activatePPS(Int ppsId, Bool isIDR); 1682 #endif1683 1679 1684 1680 TComVPS* getActiveVPS(){ return m_vpsMap.getPS(m_activeVPSId); }; … … 1687 1683 1688 1684 protected: 1689 1685 1686 #if SVC_EXTENSION 1687 static ParameterSetMap<TComVPS> m_vpsMap; 1688 #else 1690 1689 ParameterSetMap<TComVPS> m_vpsMap; 1690 #endif 1691 1691 ParameterSetMap<TComSPS> m_spsMap; 1692 1692 ParameterSetMap<TComPPS> m_ppsMap; 1693 1693 1694 #if SVC_EXTENSION 1695 static Int m_activeVPSId; 1696 #else 1694 1697 Int m_activeVPSId; 1698 #endif 1695 1699 Int m_activeSPSId; 1696 1700 Int m_activePPSId;
Note: See TracChangeset for help on using the changeset viewer.