Changeset 54 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncSlice.cpp
- Timestamp:
- 2 Mar 2013, 09:25:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncSlice.cpp
r51 r54 137 137 m_pcCfg = pcEncTop; 138 138 m_pcListPic = pcEncTop->getListPic(); 139 139 #if SVC_EXTENSION 140 m_ppcTEncTop = pcEncTop->getLayerEnc(); 141 #endif 140 142 m_pcGOPEncoder = pcEncTop->getGOPEncoder(); 141 143 m_pcCuEncoder = pcEncTop->getCuEncoder(); … … 186 188 rpcSlice->setSliceBits(0); 187 189 rpcSlice->setPic( pcPic ); 190 #if SET_SLICE_LAYER_ID 191 rpcSlice->initSlice( pcPic->getLayerId() ); 192 #else 188 193 rpcSlice->initSlice(); 194 #endif 189 195 rpcSlice->setPicOutputFlag( true ); 190 196 rpcSlice->setPOC( pocCurr ); 197 #if SVC_EXTENSION && !SET_SLICE_LAYER_ID 198 rpcSlice->setLayerId( pcPic->getLayerId()); 199 #endif 191 200 192 201 // depth computation based on GOP size … … 369 378 eSliceType = (pocLast == 0 || pocCurr % m_pcCfg->getIntraPeriod() == 0 || m_pcGOPEncoder->getGOPSize() == 0) ? I_SLICE : eSliceType; 370 379 380 #if REF_IDX_FRAMEWORK 381 if(m_pcCfg->getLayerId() > 0) 382 { 383 eSliceType=B_SLICE; 384 } 385 #endif 371 386 rpcSlice->setSliceType ( eSliceType ); 372 387 #endif … … 877 892 UInt uiTileStartLCU = 0; 878 893 UInt uiTileLCUX = 0; 894 895 #if INTRA_BL 896 m_pcCuEncoder->setBaseRecPic( rpcPic->getLayerId() > 0 ? rpcPic->getFullPelBaseRec() : NULL); 897 #endif 898 879 899 Bool depSliceSegmentsEnabled = pcSlice->getPPS()->getDependentSliceSegmentsEnabledFlag(); 880 900 uiCUAddr = rpcPic->getPicSym()->getCUOrderMap( uiStartCUAddr /rpcPic->getNumPartInCU()); … … 924 944 TComDataCU*& pcCU = rpcPic->getCU( uiCUAddr ); 925 945 pcCU->initCU( rpcPic, uiCUAddr ); 946 #if SVC_EXTENSION 947 pcCU->setLayerId(m_pcCfg->getLayerId()); 948 #endif 926 949 927 950 #if !RATE_CONTROL_LAMBDA_DOMAIN
Note: See TracChangeset for help on using the changeset viewer.