Changeset 540 in SHVCSoftware for trunk/source/Lib/TLibDecoder/TDecSlice.cpp
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/SHM-4.1-dev (added) merged: 501-539 /trunk merged: 499
- Property svn:mergeinfo changed
-
trunk/source
- Property svn:mergeinfo changed
/branches/SHM-4.1-dev/source (added) merged: 502-522,524-533,535,537-539
- Property svn:mergeinfo changed
-
trunk/source/Lib/TLibDecoder/TDecSlice.cpp
r345 r540 197 197 UInt uiTileLCUX; 198 198 Int iNumSubstreamsPerTile = 1; // if independent. 199 200 199 Bool depSliceSegmentsEnabled = rpcPic->getSlice(rpcPic->getCurrSliceIdx())->getPPS()->getDependentSliceSegmentsEnabledFlag(); 201 200 uiTileStartLCU = rpcPic->getPicSym()->getTComTile(rpcPic->getPicSym()->getTileIdxMap(iStartCUAddr))->getFirstCUAddr(); … … 323 322 g_bJustDoIt = g_bEncDecTraceEnable; 324 323 #endif 324 325 #if HM_CLEANUP_SAO 326 if ( pcSlice->getSPS()->getUseSAO() ) 327 { 328 SAOBlkParam& saoblkParam = (rpcPic->getPicSym()->getSAOBlkParam())[iCUAddr]; 329 if (pcSlice->getSaoEnabledFlag()||pcSlice->getSaoEnabledFlagChroma()) 330 { 331 Bool sliceEnabled[NUM_SAO_COMPONENTS]; 332 sliceEnabled[SAO_Y] = pcSlice->getSaoEnabledFlag(); 333 sliceEnabled[SAO_Cb]= sliceEnabled[SAO_Cr]= pcSlice->getSaoEnabledFlagChroma(); 334 335 Bool leftMergeAvail = false; 336 Bool aboveMergeAvail= false; 337 338 //merge left condition 339 Int rx = (iCUAddr % uiWidthInLCUs); 340 if(rx > 0) 341 { 342 leftMergeAvail = rpcPic->getSAOMergeAvailability(iCUAddr, iCUAddr-1); 343 } 344 //merge up condition 345 Int ry = (iCUAddr / uiWidthInLCUs); 346 if(ry > 0) 347 { 348 aboveMergeAvail = rpcPic->getSAOMergeAvailability(iCUAddr, iCUAddr-uiWidthInLCUs); 349 } 350 351 pcSbacDecoder->parseSAOBlkParam( saoblkParam, sliceEnabled, leftMergeAvail, aboveMergeAvail); 352 } 353 else 354 { 355 saoblkParam[SAO_Y ].modeIdc = SAO_MODE_OFF; 356 saoblkParam[SAO_Cb].modeIdc = SAO_MODE_OFF; 357 saoblkParam[SAO_Cr].modeIdc = SAO_MODE_OFF; 358 } 359 } 360 #else 325 361 if ( pcSlice->getSPS()->getUseSAO() && (pcSlice->getSaoEnabledFlag()||pcSlice->getSaoEnabledFlagChroma()) ) 326 362 { … … 374 410 } 375 411 } 412 #endif 413 376 414 m_pcCuDecoder->decodeCU ( pcCU, uiIsLast ); 377 415 m_pcCuDecoder->decompressCU ( pcCU );
Note: See TracChangeset for help on using the changeset viewer.