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


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

port rev 4525

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
3 edited

Legend:

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

    r1387 r1389  
    28242824Void TEncSearch::IPCMSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, TComYuv* pcRecoYuv )
    28252825{
    2826   UInt        uiDepth      = pcCU->getDepth(0);
    2827   const UInt  uiDistortion = 0;
    2828   UInt        uiBits;
     2826  UInt              uiDepth      = pcCU->getDepth(0);
     2827  const Distortion  uiDistortion = 0;
     2828  UInt              uiBits;
    28292829
    28302830  Double dCost;
     
    38573857  uiCost = m_pcRdCost->getDistPart( pcCU->getSlice()->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA), pcTemplateCand->getAddr(COMPONENT_Y, uiPartAddr), pcTemplateCand->getStride(COMPONENT_Y), pcOrgYuv->getAddr(COMPONENT_Y, uiPartAddr), pcOrgYuv->getStride(COMPONENT_Y), iSizeX, iSizeY, COMPONENT_Y, DF_SAD );
    38583858#endif
    3859   uiCost = (UInt) m_pcRdCost->calcRdCost( m_auiMVPIdxCost[iMVPIdx][iMVPNum], uiCost, false, DF_SAD );
     3859  uiCost = (UInt) m_pcRdCost->calcRdCost( m_auiMVPIdxCost[iMVPIdx][iMVPNum], uiCost, DF_SAD );
    38603860  return uiCost;
    38613861}
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1369 r1389  
    688688
    689689    // compute RD cost and choose the best
    690     Double dPicRdCost = m_pcRdCost->calcRdCost64( m_uiPicTotalBits, uiPicDist, true, DF_SSE_FRAME); // NOTE: Is the 'true' parameter really necessary?
     690    Double dPicRdCost = m_pcRdCost->calcRdCost( (Double)m_uiPicTotalBits, (Double)uiPicDist, DF_SSE_FRAME);
    691691
    692692    if ( dPicRdCost < dPicRdCostBest )
     
    13761376#if SVC_EXTENSION
    13771377#if JCTVC_M0259_LAMBDAREFINEMENT
    1378 Double TEncSlice::xCalEnhLambdaFactor( Double deltaQP , Double beta )
    1379 {
    1380   double tmp = beta * pow( 2.0 , deltaQP / 6 );
    1381   double gamma = tmp / ( tmp + 1 );
    1382   return( gamma );
     1378Double TEncSlice::xCalEnhLambdaFactor( Double deltaQP, Double beta )
     1379{
     1380  Double tmp = beta * pow( 2.0 , deltaQP / 6 );
     1381  Double gamma = tmp / ( tmp + 1 );
     1382  return gamma;
    13831383}
    13841384#endif
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.h

    r1369 r1389  
    147147
    148148#if SVC_EXTENSION && JCTVC_M0259_LAMBDAREFINEMENT
    149   Double  xCalEnhLambdaFactor( Double deltaQP , Double beta );
     149  Double  xCalEnhLambdaFactor( Double deltaQP, Double beta );
    150150#endif
    151151};
Note: See TracChangeset for help on using the changeset viewer.