Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/WeightPredAnalysis.h
- Timestamp:
- 11 May 2012, 21:20:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/WeightPredAnalysis.h
r5 r56 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 1,ISO/IEC6 * Copyright (c) 2010-2012, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 15 15 * this list of conditions and the following disclaimer in the documentation 16 16 * and/or other materials provided with the distribution. 17 * * Neither the name of the I SO/IEC nor the names of its contributors may17 * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may 18 18 * be used to endorse or promote products derived from this software without 19 19 * specific prior written permission. … … 32 32 */ 33 33 34 35 36 34 /** \file WeightedPredAnalysis.h 37 35 \brief encoder class … … 42 40 #include "../TLibCommon/TypeDef.h" 43 41 #include "../TLibCommon/TComSlice.h" 42 #include "TEncCavlc.h" 44 43 45 #ifdef WEIGHT_PRED 46 47 #ifdef MSYS_LINUX 48 typedef long long LInt; 49 #else 50 typedef __int64 LInt; 51 #endif 52 53 class WeightPredAnalysis { 54 44 class WeightPredAnalysis 45 { 46 Bool m_weighted_pred_flag; 47 Int m_weighted_bipred_idc; 55 48 wpScalingParam m_wp[2][MAX_NUM_REF][3]; 56 49 … … 63 56 Int64 xCalcDCValue(Pel *pPel, Int iWidth, Int iHeight, Int iStride); 64 57 Int64 xCalcACValue(Pel *pPel, Int iWidth, Int iHeight, Int iStride, Int64 iDC); 65 Int64 xCalcDCValueUV(Pel *pPel, Int iWidth, Int iHeight, Int iStride);66 Int64 xCalcACValueUV(Pel *pPel, Int iWidth, Int iHeight, Int iStride, Int64 iDC);67 58 Int64 xCalcSADvalueWP(Pel *pOrgPel, Pel *pRefPel, Int iWidth, Int iHeight, Int iOrgStride, Int iRefStride, Int iDenom, Int iWeight, Int iOffset); 68 Int64 xCalcSADvalueWPUV(Pel *pOrgPel, Pel *pRefPel, Int iWidth, Int iHeight, Int iOrgStride, Int iRefStride, Int iDenom, Int iWeight, Int iOffset); 69 Bool xSelectWP(TComSlice *slice, wpScalingParam weightPredTable[2][MAX_NUM_REF][3], Int iDenom); 59 Bool xSelectWP(TComSlice *slice, wpScalingParam weightPredTable[2][MAX_NUM_REF][3], Int iDenom); 70 60 71 61 public: 62 72 63 WeightPredAnalysis(); 73 64 … … 75 66 Bool xCalcACDCParamSlice(TComSlice *slice); 76 67 Bool xEstimateWPParamSlice(TComSlice *slice); 68 69 Void xStoreWPparam(Bool weighted_pred_flag, Int weighted_bipred_idc); 70 Void xRestoreWPparam(TComSlice *slice); 71 Void xCheckWPEnable(TComSlice *slice); 77 72 }; 78 73 79 #endif // WEIGHT_PRED 80 81 #endif // __WEIGHTPREDANALYSIS__ 74 #endif // __WEIGHTPREDANALYSIS__ 82 75 83 76
Note: See TracChangeset for help on using the changeset viewer.