Changeset 473 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
15 Nov 2013, 10:52:52 (11 years ago)
Author:
nokia
Message:

Fix a compile time warning in WeightPredAnalysis::xUpdatingWPParameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp

    r468 r473  
    253253        if (slice->getRefPic(eRefPicList, refIdxTemp)->isILR(slice->getLayerId()))
    254254        {
    255           refAC *= (double)currWeightACDCParam[comp].iSamples/refWeightACDCParam[comp].iSamples;
     255          refAC = ( refAC * currWeightACDCParam[comp].iSamples ) /refWeightACDCParam[comp].iSamples;
    256256#if O0194_JOINT_US_BITSHIFT
    257           refAC *= (1<<(g_bitDepthYLayer[1]-g_bitDepthYLayer[0]));
    258           refDC *= (1<<(g_bitDepthYLayer[1]-g_bitDepthYLayer[0]));
     257          refAC <<= (g_bitDepthYLayer[1]-g_bitDepthYLayer[0]);
     258          refDC <<= (g_bitDepthYLayer[1]-g_bitDepthYLayer[0]);
    259259#endif
    260260         }
Note: See TracChangeset for help on using the changeset viewer.