38 #ifndef __TCOMRDCOST__
39 #define __TCOMRDCOST__
215 #endif // __TCOMRDCOST__
Distortion getCost(UInt b)
Void setDistortionWeight(const ComponentID compID, const Double distortionWeight)
Distortion(* FpDistFunc)(DistParam *)
Defines version information, constants and small in-line functions.
UInt Distortion
distortion measurement
static Distortion xGetSAD48(DistParam *pcDtParam)
static Distortion xGetHADs(DistParam *pcDtParam)
static Distortion xGetSSE4(DistParam *pcDtParam)
static Distortion xGetSAD64(DistParam *pcDtParam)
neighbouring pixel access class for all components
slice header and SPS class (header)
static Distortion xCalcHADs2x2(const Pel *piOrg, const Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
static Distortion xGetSSE(DistParam *pcDtParam)
Double m_dLambdaMotionSAD[2]
static Distortion xGetSAD32(DistParam *pcDtParam)
#define RExt__HIGH_BIT_DEPTH_SUPPORT
0 (default) use data type definitions for 8-10 bit video, 1 = use larger data types to allow for up t...
static Distortion xGetSAD24(DistParam *pcDtParam)
Void setCostMode(CostMode m)
static Distortion xCalcHADs8x8(const Pel *piOrg, const Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
Int iSubShift
During cost calculations, if distortion exceeds this value, cost calculations may early-terminate...
static Distortion xCalcHADs4x4(const Pel *piOrg, const Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep)
Double calcRdCost(Double numBits, Double distortion, DFunc eDFunc=DF_DEFAULT)
static Distortion xGetSAD16(DistParam *pcDtParam)
static Distortion xGetSSE8(DistParam *pcDtParam)
distortion parameter class
static Distortion xGetSSE16(DistParam *pcDtParam)
RD cost computation class.
static Distortion xGetSSE16N(DistParam *pcDtParam)
Void setLambda(Double dLambda, const BitDepths &bitDepths)
static Distortion xGetSSE64(DistParam *pcDtParam)
static Distortion xGetSAD(DistParam *pcDtParam)
Distortion m_maximumDistortionForEarlyExit
motion vector class (header)
Double m_dLambdaMotionSSE[2]
Distortion getCostOfVectorWithPredictor(const Int x, const Int y)
Double m_distortionWeight[MAX_NUM_COMPONENT]
Void setDistParam(UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc, DistParam &rcDistParam)
#define VECTOR_CODING__DISTORTION_CALCULATIONS
enable vector coding for distortion calculations 0 (default if SSE not possible) disable SSE vector c...
Void setPredictor(TComMv &rcMv)
RD cost computation namespace (header)
static Distortion xGetSAD4(DistParam *pcDtParam)
static Distortion xGetSSE32(DistParam *pcDtParam)
static Distortion xGetSAD16N(DistParam *pcDtParam)
neighbouring pixel access classes (header)
Void setFrameLambda(Double dLambda)
Void setCostScale(Int iCostScale)
Distortion getDistPart(Int bitDepth, const Pel *piCur, Int iCurStride, const Pel *piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, const ComponentID compID, DFunc eDFunc=DF_SSE)
basic motion vector class
static UInt xGetExpGolombNumberOfBits(Int iVal)
FpDistFunc m_afpDistortFunc[DF_TOTAL_FUNCTIONS]
static Distortion xGetSAD12(DistParam *pcDtParam)
const WPScalingParam * wpCur
Distortion calcHAD(Int bitDepth, const Pel *pi0, Int iStride0, const Pel *pi1, Int iStride1, Int iWidth, Int iHeight)
static Distortion xGetSAD8(DistParam *pcDtParam)
Void selectMotionLambda(Bool bSad, Int iAdd, Bool bIsTransquantBypass)
UInt getBitsOfVectorWithPredictor(const Int x, const Int y)
DFunc
distortion function index