Changeset 834 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 15 Jul 2014, 04:20:03 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r827 r834 47 47 #if SVC_EXTENSION 48 48 ParameterSetMap<TComVPS> ParameterSetManager::m_vpsMap(MAX_NUM_VPS); 49 ParameterSetMap<TComSPS> ParameterSetManager::m_spsMap(MAX_NUM_SPS); 50 ParameterSetMap<TComPPS> ParameterSetManager::m_ppsMap(MAX_NUM_PPS); 49 51 Int ParameterSetManager::m_activeVPSId = -1; 50 52 #endif … … 3679 3681 ParameterSetManager::ParameterSetManager() 3680 3682 #if SVC_EXTENSION 3681 : m_spsMap(MAX_NUM_SPS) 3682 , m_ppsMap(MAX_NUM_PPS) 3683 , m_activeSPSId(-1) 3683 : m_activeSPSId(-1) 3684 3684 , m_activePPSId(-1) 3685 3685 #else -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r825 r834 2514 2514 if ( m_paramsetMap.find(psId) != m_paramsetMap.end() ) 2515 2515 { 2516 #if Q0078_ADD_LAYER_SETS2517 m_paramsetMap.erase(psId);2518 #endif2519 2516 delete m_paramsetMap[psId]; 2520 2517 } … … 2542 2539 } 2543 2540 2544 #if Q0078_ADD_LAYER_SETS2545 Void removePS(Int psId)2546 {2547 assert(psId < m_maxId);2548 if (m_paramsetMap.find(psId) != m_paramsetMap.end())2549 {2550 m_paramsetMap.erase(psId);2551 #if Q0078_ADD_LAYER_SETS2552 delete m_paramsetMap[psId];2553 #endif2554 }2555 }2556 #endif2557 2558 2559 2541 private: 2560 2542 std::map<Int,T *> m_paramsetMap; … … 2579 2561 TComSPS* getSPS(Int spsId) { return m_spsMap.getPS(spsId); }; 2580 2562 TComSPS* getFirstSPS() { return m_spsMap.getFirstPS(); }; 2581 #if Q0078_ADD_LAYER_SETS2582 Void removeSPS(Int spsId) { m_spsMap.removePS(spsId); };2583 #endif2584 2563 2585 2564 //! store picture parameter set and take ownership of it … … 2588 2567 TComPPS* getPPS(Int ppsId) { return m_ppsMap.getPS(ppsId); }; 2589 2568 TComPPS* getFirstPPS() { return m_ppsMap.getFirstPS(); }; 2590 #if Q0078_ADD_LAYER_SETS2591 Void removePPS(Int ppsId) { m_ppsMap.removePS(ppsId); };2592 #endif2593 2569 2594 2570 //! activate a SPS from a active parameter sets SEI message … … 2608 2584 #if SVC_EXTENSION 2609 2585 static ParameterSetMap<TComVPS> m_vpsMap; 2586 static ParameterSetMap<TComSPS> m_spsMap; 2587 static ParameterSetMap<TComPPS> m_ppsMap; 2610 2588 #else 2611 2589 ParameterSetMap<TComVPS> m_vpsMap; 2612 #endif2613 2590 ParameterSetMap<TComSPS> m_spsMap; 2614 2591 ParameterSetMap<TComPPS> m_ppsMap; 2592 #endif 2615 2593 2616 2594 #if SVC_EXTENSION
Note: See TracChangeset for help on using the changeset viewer.