Changeset 837 in 3DVCSoftware for branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/TComRdCost.h
- Timestamp:
- 8 Feb 2014, 00:23:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/TComRdCost.h
r833 r837 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2013, ITU/ISO/IEC6 * Copyright (c) 2010-2014, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 107 107 UInt uiComp; // uiComp = 0 (luma Y), 1 (chroma U), 2 (chroma V) 108 108 109 #if NS_HAD110 Bool bUseNSHAD;111 #endif112 113 109 // (vertical) subsampling shift (for reducing complexity) 114 110 // - 0 = no subsampling, 1 = even rows, 2 = every 4th, etc. … … 127 123 iSubShift = 0; 128 124 bitDepth = 0; 129 #if NS_HAD130 bUseNSHAD = false;131 #endif132 125 #if H_3D_VSO 133 126 // SAIT_VSO_EST_A0033 … … 155 148 #endif 156 149 157 #if WEIGHTED_CHROMA_DISTORTION158 150 Double m_cbDistortionWeight; 159 151 Double m_crDistortionWeight; 160 #endif161 152 Double m_dLambda; 162 153 Double m_sqrtLambda; … … 201 192 202 193 203 #if WEIGHTED_CHROMA_DISTORTION204 194 Void setCbDistortionWeight ( Double cbDistortionWeight) { m_cbDistortionWeight = cbDistortionWeight; }; 205 195 Void setCrDistortionWeight ( Double crDistortionWeight) { m_crDistortionWeight = crDistortionWeight; }; 206 #endif207 196 Void setLambda ( Double dLambda ); 208 197 Void setFrameLambda ( Double dLambda ) { m_dFrameLambda = dLambda; } … … 215 204 #endif 216 205 217 #if RATE_CONTROL_LAMBDA_DOMAIN218 206 Double getLambda() { return m_dLambda; } 219 #if M0036_RC_IMPROVEMENT220 207 Double getChromaWeight () {return((m_cbDistortionWeight+m_crDistortionWeight)/2.0);} 221 #endif222 #endif223 208 224 209 // Distortion Functions … … 227 212 Void setDistParam( UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc, DistParam& rcDistParam ); 228 213 Void setDistParam( TComPattern* pcPatternKey, Pel* piRefY, Int iRefStride, DistParam& rcDistParam ); 229 #if NS_HAD230 Void setDistParam( TComPattern* pcPatternKey, Pel* piRefY, Int iRefStride, Int iStep, DistParam& rcDistParam, Bool bHADME=false, Bool bUseNSHAD=false );231 Void setDistParam( DistParam& rcDP, Int bitDepth, Pel* p1, Int iStride1, Pel* p2, Int iStride2, Int iWidth, Int iHeight, Bool bHadamard = false, Bool bUseNSHAD=false );232 #else233 214 Void setDistParam( TComPattern* pcPatternKey, Pel* piRefY, Int iRefStride, Int iStep, DistParam& rcDistParam, Bool bHADME=false ); 234 215 Void setDistParam( DistParam& rcDP, Int bitDepth, Pel* p1, Int iStride1, Pel* p2, Int iStride2, Int iWidth, Int iHeight, Bool bHadamard = false ); 235 #endif236 216 237 217 #if H_3D_DBBP … … 337 317 static UInt xCalcHADs4x4 ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep ); 338 318 static UInt xCalcHADs8x8 ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep ); 339 #if NS_HAD340 static UInt xCalcHADs16x4 ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep );341 static UInt xCalcHADs4x16 ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep );342 #endif343 344 319 #if H_3D_DBBP 345 320 static UInt xGetMaskedSSE ( DistParam* pcDtParam ); … … 350 325 351 326 public: 352 #if WEIGHTED_CHROMA_DISTORTION353 327 UInt getDistPart(Int bitDepth, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, TextType eText = TEXT_LUMA, DFunc eDFunc = DF_SSE ); 354 #else 355 UInt getDistPart(Int bitDepth, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc = DF_SSE ); 356 #endif 357 358 #if (RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT) || KWU_RC_MADPRED_E0227 328 329 #if KWU_RC_MADPRED_E0227 359 330 UInt getSADPart ( Int bitDepth, Pel* pelCur, Int curStride, Pel* pelOrg, Int orgStride, UInt width, UInt height ); 360 331 #endif
Note: See TracChangeset for help on using the changeset viewer.