- Timestamp:
- 28 Jan 2013, 21:06:38 (12 years ago)
- Location:
- trunk/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComPicSym.cpp
r2 r11 191 191 { 192 192 m_apcTComSlice[m_uiNumAllocatedSlice-1]->copySliceInfo( m_apcTComSlice[m_uiNumAllocatedSlice-2] ); 193 #if SET_SLICE_LAYER_ID 194 m_apcTComSlice[m_uiNumAllocatedSlice-1]->initSlice( m_apcTComSlice[m_uiNumAllocatedSlice-1]->getLayerId() ); 195 #else 193 196 m_apcTComSlice[m_uiNumAllocatedSlice-1]->initSlice(); 197 #endif 194 198 } 195 199 } -
trunk/source/Lib/TLibCommon/TComSlice.cpp
r2 r11 153 153 154 154 155 #if SET_SLICE_LAYER_ID 156 Void TComSlice::initSlice( UInt layerId ) 157 #else 155 158 Void TComSlice::initSlice() 156 { 159 #endif 160 { 161 #if SET_SLICE_LAYER_ID 162 m_layerId = layerId; 163 #endif 157 164 m_aiNumRefIdx[0] = 0; 158 165 m_aiNumRefIdx[1] = 0; -
trunk/source/Lib/TLibCommon/TComSlice.h
r2 r11 1289 1289 TComSlice(); 1290 1290 virtual ~TComSlice(); 1291 #if SET_SLICE_LAYER_ID 1292 Void initSlice ( UInt layerId ); 1293 #else 1291 1294 Void initSlice (); 1295 #endif 1292 1296 1293 1297 Void setVPS ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; } -
trunk/source/Lib/TLibCommon/TypeDef.h
r10 r11 46 46 #define SVC_UPSAMPLING 1 ///< upsampling filters 47 47 #define PHASE_DERIVATION_IN_INTEGER 1 ///< upsampling filters implementation using only integer arithmetic 48 #define SET_SLICE_LAYER_ID 1 ///< set layerId to the slice 48 49 49 50 #define AVC_BASE 0 ///< YUV BL reading for AVC base SVC -
trunk/source/Lib/TLibDecoder/TDecTop.cpp
r6 r11 344 344 cFillSlice.setSPS( m_parameterSetManagerDecoder.getFirstSPS() ); 345 345 cFillSlice.setPPS( m_parameterSetManagerDecoder.getFirstPPS() ); 346 #if SET_SLICE_LAYER_ID 347 cFillSlice.initSlice( m_parameterSetManagerDecoder.getFirstSPS()->getLayerId() ); 348 #else 346 349 cFillSlice.initSlice(); 350 #endif 347 351 TComPic *cFillPic; 348 352 xGetNewPicBuffer(&cFillSlice,cFillPic); 349 353 cFillPic->getSlice(0)->setSPS( m_parameterSetManagerDecoder.getFirstSPS() ); 350 354 cFillPic->getSlice(0)->setPPS( m_parameterSetManagerDecoder.getFirstPPS() ); 355 #if SET_SLICE_LAYER_ID 356 cFillPic->getSlice(0)->initSlice( cFillPic->getLayerId() ); 357 #else 351 358 cFillPic->getSlice(0)->initSlice(); 359 #endif 352 360 353 361 TComList<TComPic*>::iterator iterPic = m_cListPic.begin(); … … 440 448 { 441 449 TComPic*& pcPic = m_pcPic; 450 #if SET_SLICE_LAYER_ID 451 m_apcSlicePilot->initSlice( nalu.m_layerId ); 452 #else 442 453 m_apcSlicePilot->initSlice(); 454 #endif 443 455 444 456 if (m_bFirstSliceInPicture) -
trunk/source/Lib/TLibEncoder/TEncSlice.cpp
r2 r11 192 192 rpcSlice->setSliceBits(0); 193 193 rpcSlice->setPic( pcPic ); 194 #if SET_SLICE_LAYER_ID 195 rpcSlice->initSlice( pcPic->getLayerId() ); 196 #else 194 197 rpcSlice->initSlice(); 198 #endif 195 199 rpcSlice->setPicOutputFlag( true ); 196 200 rpcSlice->setPOC( uiPOCCurr ); 197 201 198 #if SVC_EXTENSION 202 #if SVC_EXTENSION && !SET_SLICE_LAYER_ID 199 203 rpcSlice->setLayerId( pcPic->getLayerId()); 200 204 #endif
Note: See TracChangeset for help on using the changeset viewer.