Changeset 1388 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
4 Aug 2015, 02:56:50 (9 years ago)
Author:
seregin
Message:

port rev 4524

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComRdCost.cpp

    r1341 r1388  
    105105      else
    106106      {
    107         dRdCost = floor(Double(uiDistortion) + (floor((Double(uiBits) * dLambda) + 0.5) / 65536.0));
     107        dRdCost = Double(uiDistortion) + ((Double(uiBits) * dLambda) / 65536.0);
    108108      }
    109109    }
     
    116116      else
    117117      {
    118         dRdCost = floor(Double(uiDistortion) + (Double(uiBits) * dLambda) + 0.5);
     118        dRdCost = Double(uiDistortion) + (Double(uiBits) * dLambda);
    119119      }
    120120    }
     
    174174      else
    175175      {
    176         dRdCost = floor(Double(uiDistortion) + (floor((Double(uiBits) * dLambda) + 0.5) / 65536.0));
     176        dRdCost = Double(uiDistortion) + ((Double(uiBits) * dLambda) / 65536.0);
    177177      }
    178178    }
     
    185185      else
    186186      {
    187         dRdCost = floor(Double(uiDistortion) + (Double(uiBits) * dLambda) + 0.5);
     187        dRdCost = Double(uiDistortion) + (Double(uiBits) * dLambda);
    188188      }
    189189    }
Note: See TracChangeset for help on using the changeset viewer.