Changeset 1313 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/WeightPredAnalysis.h
- Timestamp:
- 13 Aug 2015, 17:38:13 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibEncoder/WeightPredAnalysis.h
r1179 r1313 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-2015, ITU/ISO/IEC6 * Copyright (c) 2010-2015, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 38 38 #define __WEIGHTPREDANALYSIS__ 39 39 40 #include "../TLibCommon/ TypeDef.h"40 #include "../TLibCommon/CommonDef.h" 41 41 #include "../TLibCommon/TComSlice.h" 42 42 #include "TEncCavlc.h" … … 44 44 class WeightPredAnalysis 45 45 { 46 Bool m_weighted_pred_flag; 47 Bool m_weighted_bipred_flag; 48 wpScalingParam m_wp[2][MAX_NUM_REF][3]; 46 private: 49 47 50 Int64 xCalcDCValueSlice(TComSlice *slice, Pel *pPel,Int *iSample); 51 Int64 xCalcACValueSlice(TComSlice *slice, Pel *pPel, Int64 iDC); 52 Int64 xCalcDCValueUVSlice(TComSlice *slice, Pel *pPel, Int *iSample); 53 Int64 xCalcACValueUVSlice(TComSlice *slice, Pel *pPel, Int64 iDC); 54 Int64 xCalcSADvalueWPSlice(TComSlice *slice, Pel *pOrgPel, Pel *pRefPel, Int iDenom, Int iWeight, Int iOffset); 48 // member variables 49 WPScalingParam m_wp[NUM_REF_PIC_LIST_01][MAX_NUM_REF][MAX_NUM_COMPONENT]; 55 50 56 Int64 xCalcDCValue(Pel *pPel, Int iWidth, Int iHeight, Int iStride); 57 Int64 xCalcACValue(Pel *pPel, Int iWidth, Int iHeight, Int iStride, Int64 iDC); 58 Int64 xCalcSADvalueWP(Int bitDepth, Pel *pOrgPel, Pel *pRefPel, Int iWidth, Int iHeight, Int iOrgStride, Int iRefStride, Int iDenom, Int iWeight, Int iOffset); 59 Bool xSelectWP(TComSlice *slice, wpScalingParam weightPredTable[2][MAX_NUM_REF][3], Int iDenom); 60 Bool xUpdatingWPParameters(TComSlice *slice, wpScalingParam weightPredTable[2][MAX_NUM_REF][3], Int log2Denom); 51 // member functions 52 53 Bool xSelectWP (TComSlice *const slice, const Int log2Denom); 54 Bool xUpdatingWPParameters(TComSlice *const slice, const Int log2Denom); 55 56 Int64 xCalcSADvalueWP (const Int bitDepth, 57 const Pel *pOrgPel, 58 const Pel *pRefPel, 59 const Int iWidth, 60 const Int iHeight, 61 const Int iOrgStride, 62 const Int iRefStride, 63 const Int iLog2Denom, 64 const Int iWeight, 65 const Int iOffset, 66 const Bool useHighPrecisionPredictionWeighting); 61 67 62 68 public: … … 65 71 66 72 // WP analysis : 67 Bool xCalcACDCParamSlice(TComSlice *slice); 68 Bool xEstimateWPParamSlice(TComSlice *slice); 69 Void xStoreWPparam(Bool weighted_pred_flag, Bool weighted_bipred_flag); 70 Void xRestoreWPparam(TComSlice *slice); 71 Void xCheckWPEnable(TComSlice *slice); 73 Void xCalcACDCParamSlice (TComSlice *const slice); 74 Void xEstimateWPParamSlice(TComSlice *const slice); 75 Void xCheckWPEnable (TComSlice *const slice); 72 76 }; 73 77 74 78 #endif // __WEIGHTPREDANALYSIS__ 75 76
Note: See TracChangeset for help on using the changeset viewer.