- Timestamp:
- 3 Dec 2015, 18:40:14 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.cpp
r1489 r1496 48 48 49 49 #if SVC_EXTENSION 50 TComVPS * TComPicSym::m_vps = NULL;50 TComVPS TComPicSym::m_vps; 51 51 #endif 52 52 … … 87 87 m_sps = sps; 88 88 m_pps = pps; 89 90 if( !m_vps ) 91 { 92 m_vps = new TComVPS(vps); 93 } 94 else 95 { 96 *m_vps = vps; 97 } 98 89 m_vps = vps; 90 99 91 const ChromaFormat chromaFormatIDC = vps.getChromaFormatIdc(&sps, layerId); 100 92 const Int iPicWidth = vps.getPicWidthInLumaSamples(&sps, layerId); … … 223 215 m_pParentARLBuffer = NULL; 224 216 #endif 225 226 #if SVC_EXTENSION227 if( m_vps )228 {229 delete m_vps;230 m_vps = NULL;231 }232 #endif233 217 } 234 218 … … 239 223 m_apSlices.back()->setSPS(&m_sps); 240 224 #if SVC_EXTENSION 241 m_apSlices.back()->setVPS( m_vps);225 m_apSlices.back()->setVPS(&m_vps); 242 226 #endif 243 227 if (m_apSlices.size()>=2) -
branches/SHM-dev/source/Lib/TLibCommon/TComPicSym.h
r1494 r1496 122 122 #if SVC_EXTENSION 123 123 // SHM: temporal solution to keep VPS with a picture, ideally it should be picture specific, but currently sizeof(TComVPS) = 232897716 124 static TComVPS *m_vps;124 static TComVPS m_vps; 125 125 #if N0383_IL_CONSTRAINED_TILE_SETS_SEI 126 126 Int* m_piTileSetIdxMap; //the map of the tile set index relative to LCU raster scan address … … 155 155 156 156 #if SVC_EXTENSION 157 TComSlice * swapSliceObject(TComSlice* p, UInt i) { p->setVPS( m_vps); p->setSPS(&m_sps); p->setPPS(&m_pps); TComSlice *pTmp=m_apSlices[i];m_apSlices[i] = p; pTmp->setVPS(0); pTmp->setSPS(0); pTmp->setPPS(0); return pTmp; }157 TComSlice * swapSliceObject(TComSlice* p, UInt i) { p->setVPS(&m_vps); p->setSPS(&m_sps); p->setPPS(&m_pps); TComSlice *pTmp=m_apSlices[i];m_apSlices[i] = p; pTmp->setVPS(0); pTmp->setSPS(0); pTmp->setPPS(0); return pTmp; } 158 158 #else 159 159 TComSlice * swapSliceObject(TComSlice* p, UInt i) { p->setSPS(&m_sps); p->setPPS(&m_pps); TComSlice *pTmp=m_apSlices[i];m_apSlices[i] = p; pTmp->setSPS(0); pTmp->setPPS(0); return pTmp; }
Note: See TracChangeset for help on using the changeset viewer.