Changeset 5 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComRdCost.h
- Timestamp:
- 12 Dec 2011, 18:35:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComRdCost.h
r2 r5 1 /* The copyright in this software is being made available under the BSD 2 * License, included below. This software may be subject to other third party 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 5 * 6 * Copyright (c) 2010-2011, ISO/IEC 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions are met: 11 * 12 * * Redistributions of source code must retain the above copyright notice, 13 * this list of conditions and the following disclaimer. 14 * * Redistributions in binary form must reproduce the above copyright notice, 15 * this list of conditions and the following disclaimer in the documentation 16 * and/or other materials provided with the distribution. 17 * * Neither the name of the ISO/IEC nor the names of its contributors may 18 * be used to endorse or promote products derived from this software without 19 * specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS 25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 1 34 /** \file TComRdCost.h 2 35 \brief RD cost computation classes (header) … … 58 91 FpDistFuncRnd DistFuncRnd; 59 92 #endif 60 #if SB_INTERVIEW_SKIP93 #if HHI_INTERVIEW_SKIP 61 94 Pel* pUsed; 62 95 Int iStrideUsed; … … 87 120 #endif 88 121 iSubShift = 0; 89 #if SB_INTERVIEW_SKIP122 #if HHI_INTERVIEW_SKIP 90 123 pUsed = 0; 91 124 iStrideUsed = 0; … … 116 149 Double m_dFrameLambda; 117 150 118 #if SB_INTERVIEW_SKIP_LAMBDA_SCALE151 #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE 119 152 Double m_dLambdaScale ; 120 153 #endif … … 148 181 149 182 Void setLambda ( Double dLambda ); 183 #if HHI_INTER_VIEW_MOTION_PRED 150 184 Void setLambdaMVReg ( Double dLambda ); 185 #endif 151 186 Void setFrameLambda ( Double dLambda ) { m_dFrameLambda = dLambda; } 152 187 153 #if SB_INTERVIEW_SKIP_LAMBDA_SCALE188 #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE 154 189 Void setLambdaScale ( Double dLambdaScale) { m_dLambdaScale = dLambdaScale; } 155 190 Double getLambdaScale ( ) { return m_dLambdaScale ; } … … 287 322 288 323 public: 289 #if SB_INTERVIEW_SKIP324 #if HHI_INTERVIEW_SKIP 290 325 UInt getDistPart( Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, Pel* piUsed, Int iUsedStride, UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc = DF_SSE ); 291 326 #endif 292 327 UInt getDistPart( Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, DFunc eDFunc = DF_SSE ); 293 328 294 //GT VSO 295 329 #if HHI_VSO 296 330 private: 297 331 Double m_dLambdaVSO; … … 301 335 Double m_dFrameLambdaVSO; 302 336 303 #if RDO_DIST_INT337 #if HHI_VSO_DIST_INT 304 338 Bool m_bAllowNegDist; 305 339 #endif … … 334 368 UInt getVSOMode( ) { return m_uiVSOMode; } 335 369 336 #if RDO_DIST_INT370 #if HHI_VSO_DIST_INT 337 371 Void setAllowNegDist ( Bool bAllowNegDist ); 338 372 #endif … … 346 380 347 381 private: 348 349 Dist xGetDistVSOMode1( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD );350 Dist xGetDistVSOMode2( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD );351 Dist xGetDistVSOMode3( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD );352 382 Dist xGetDistVSOMode4( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD ); 353 383 354 #if GERHARD_VQM_XCHECK 355 Dist xGetDistXCheck( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD ); 356 #endif 357 358 //GT VSO end 384 #endif // HHI_VSO 359 385 360 386 };// END CLASS DEFINITION TComRdCost
Note: See TracChangeset for help on using the changeset viewer.