Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
r1411 r1502 432 432 { 433 433 const ComponentID compID = ComponentID(comp); 434 #if SVC_EXTENSION435 const Int bitDepth = slice->getBitDepth(toChannelType(compID));436 #else437 434 const Int bitDepth = slice->getSPS()->getBitDepth(toChannelType(compID)); 438 #endif439 435 const Int range = bUseHighPrecisionWeighting ? (1<<bitDepth)/2 : 128; 440 436 const Int realLog2Denom = log2Denom + (bUseHighPrecisionWeighting ? RExt__PREDICTION_WEIGHTING_ANALYSIS_DC_PRECISION : (bitDepth - 8)); … … 453 449 refAC = ( refAC * currWeightACDCParam[comp].numSamples ) / refWeightACDCParam[comp].numSamples; 454 450 455 const Int bitDepthLuma = slice->get BitDepth(CHANNEL_TYPE_LUMA);456 const Int refBitDepthLuma = slice->getRefPic(eRefPicList, refIdxTemp)->getSlice(0)->get BitDepth(CHANNEL_TYPE_LUMA);451 const Int bitDepthLuma = slice->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA); 452 const Int refBitDepthLuma = slice->getRefPic(eRefPicList, refIdxTemp)->getSlice(0)->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA); 457 453 const Int delta = bitDepthLuma - refBitDepthLuma; 458 454 … … 557 553 const Int width = pPic->getWidth(compID); 558 554 const Int height = pPic->getHeight(compID); 559 #if SVC_EXTENSION560 const Int bitDepth = slice->getBitDepth(toChannelType(compID));561 #else562 555 const Int bitDepth = slice->getSPS()->getBitDepth(toChannelType(compID)); 563 #endif564 556 WPScalingParam &wp = m_wp[refList][refIdxTemp][compID]; 565 557 Int weight = wp.iWeight; … … 679 671 const Int width = pPic->getWidth(compID); 680 672 const Int height = pPic->getHeight(compID); 681 #if SVC_EXTENSION682 const Int bitDepth = slice->getBitDepth(toChannelType(compID));683 #else684 673 const Int bitDepth = slice->getSPS()->getBitDepth(toChannelType(compID)); 685 #endif686 674 687 675 // calculate SAD costs with/without wp for luma
Note: See TracChangeset for help on using the changeset viewer.