Changeset 1389 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 4 Aug 2015, 03:02:06 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1387 r1389 2824 2824 Void TEncSearch::IPCMSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, TComYuv* pcRecoYuv ) 2825 2825 { 2826 UInt uiDepth = pcCU->getDepth(0);2827 const UIntuiDistortion = 0;2828 UInt uiBits;2826 UInt uiDepth = pcCU->getDepth(0); 2827 const Distortion uiDistortion = 0; 2828 UInt uiBits; 2829 2829 2830 2830 Double dCost; … … 3857 3857 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 ); 3858 3858 #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 ); 3860 3860 return uiCost; 3861 3861 } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1369 r1389 688 688 689 689 // compute RD cost and choose the best 690 Double dPicRdCost = m_pcRdCost->calcRdCost 64( 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); 691 691 692 692 if ( dPicRdCost < dPicRdCostBest ) … … 1376 1376 #if SVC_EXTENSION 1377 1377 #if JCTVC_M0259_LAMBDAREFINEMENT 1378 Double TEncSlice::xCalEnhLambdaFactor( Double deltaQP 1379 { 1380 double tmp = beta * pow( 2.0 , deltaQP / 6 );1381 double gamma = tmp / ( tmp + 1 );1382 return ( gamma );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; 1383 1383 } 1384 1384 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.h
r1369 r1389 147 147 148 148 #if SVC_EXTENSION && JCTVC_M0259_LAMBDAREFINEMENT 149 Double xCalEnhLambdaFactor( Double deltaQP 149 Double xCalEnhLambdaFactor( Double deltaQP, Double beta ); 150 150 #endif 151 151 };
Note: See TracChangeset for help on using the changeset viewer.