Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/WeightPredAnalysis.h

    r1179 r1313  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    6 * Copyright (c) 2010-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    3838#define __WEIGHTPREDANALYSIS__
    3939
    40 #include "../TLibCommon/TypeDef.h"
     40#include "../TLibCommon/CommonDef.h"
    4141#include "../TLibCommon/TComSlice.h"
    4242#include "TEncCavlc.h"
     
    4444class  WeightPredAnalysis
    4545{
    46   Bool m_weighted_pred_flag;
    47   Bool  m_weighted_bipred_flag;
    48   wpScalingParam  m_wp[2][MAX_NUM_REF][3];
     46private:
    4947
    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];
    5550
    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);
    6167
    6268public:
     
    6571
    6672  // 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);
    7276};
    7377
    7478#endif // __WEIGHTPREDANALYSIS__
    75 
    76 
Note: See TracChangeset for help on using the changeset viewer.