Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComWeightPrediction.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComWeightPrediction.cpp
r1399 r1502 290 290 for ( Int yuv=0 ; yuv<numValidComponent ; yuv++ ) 291 291 { 292 #if SVC_EXTENSION293 const Int bitDepth = pcSlice->getBitDepth(toChannelType(ComponentID(yuv)));294 #else295 292 const Int bitDepth = pcSlice->getSPS()->getBitDepth(toChannelType(ComponentID(yuv))); 296 #endif297 293 const Int offsetScalingFactor = bUseHighPrecisionPredictionWeighting ? 1 : (1 << (bitDepth-8)); 298 294 … … 315 311 for ( Int yuv=0 ; yuv<numValidComponent ; yuv++ ) 316 312 { 317 #if SVC_EXTENSION318 const Int bitDepth = pcSlice->getBitDepth(toChannelType(ComponentID(yuv)));319 #else320 313 const Int bitDepth = pcSlice->getSPS()->getBitDepth(toChannelType(ComponentID(yuv))); 321 #endif322 314 const Int offsetScalingFactor = bUseHighPrecisionPredictionWeighting ? 1 : (1 << (bitDepth-8)); 323 315 … … 351 343 if( iRefIdx0 >= 0 && iRefIdx1 >= 0 ) 352 344 { 353 #if SVC_EXTENSION354 addWeightBi(pcYuvSrc0, pcYuvSrc1, pcCU->getSlice()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp0, pwp1, rpcYuvDst );355 #else356 345 addWeightBi(pcYuvSrc0, pcYuvSrc1, pcCU->getSlice()->getSPS()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp0, pwp1, rpcYuvDst ); 357 #endif358 346 } 359 347 else if ( iRefIdx0 >= 0 && iRefIdx1 < 0 ) 360 348 { 361 #if SVC_EXTENSION362 addWeightUni( pcYuvSrc0, pcCU->getSlice()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp0, rpcYuvDst );363 #else364 349 addWeightUni( pcYuvSrc0, pcCU->getSlice()->getSPS()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp0, rpcYuvDst ); 365 #endif366 350 } 367 351 else if ( iRefIdx0 < 0 && iRefIdx1 >= 0 ) 368 352 { 369 #if SVC_EXTENSION370 addWeightUni( pcYuvSrc1, pcCU->getSlice()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp1, rpcYuvDst );371 #else372 353 addWeightUni( pcYuvSrc1, pcCU->getSlice()->getSPS()->getBitDepths(), uiPartIdx, iWidth, iHeight, pwp1, rpcYuvDst ); 373 #endif374 354 } 375 355 else … … 407 387 getWpScaling(pcCU, -1, iRefIdx, pwpTmp, pwp); 408 388 } 409 #if SVC_EXTENSION410 addWeightUni( pcYuvSrc, pcCU->getSlice()->getBitDepths(), uiPartAddr, iWidth, iHeight, pwp, pcYuvPred );411 #else412 389 addWeightUni( pcYuvSrc, pcCU->getSlice()->getSPS()->getBitDepths(), uiPartAddr, iWidth, iHeight, pwp, pcYuvPred ); 413 #endif 414 } 390 }
Note: See TracChangeset for help on using the changeset viewer.