Ignore:
Timestamp:
15 Apr 2015, 11:36:33 (10 years ago)
Author:
tech
Message:

Removed 3D-HEVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.0-MV-draft-3/source/Lib/TLibCommon/TComRdCost.h

    r1179 r1191  
    4646#include "TComSlice.h"
    4747#include "TComRdCostWeightPrediction.h"
    48 #if H_3D
    49 #include "../TLibRenderer/TRenModel.h"
    50 #endif
    5148
    5249//! \ingroup TLibCommon
     
    5754class DistParam;
    5855class TComPattern;
    59 #if H_3D
    60 class TComRdCost;
    61 #endif
    6256
    6357// ====================================================================================================================
     
    6862typedef UInt (*FpDistFunc) (DistParam*);
    6963
    70 #if H_3D
    71 #if H_3D_VSO
    72 typedef Dist (TComRdCost::*FpDistFuncVSO) ( Int, Int, Pel*, Int, Pel*, Int, UInt, UInt, Bool );
    73 #endif
    74 #endif
    7564// ====================================================================================================================
    7665// Class definition
     
    8574  Int   iStrideOrg;
    8675  Int   iStrideCur;
    87 #if H_3D_VSO
    88   // SAIT_VSO_EST_A0033
    89   Pel*  pVirRec;
    90   Pel*  pVirOrg;
    91   Int   iStrideVir;
    92 #endif
    93 #if H_3D_IC
    94   Bool  bUseIC;
    95 #endif
    96 #if H_3D_INTER_SDC
    97   Bool  bUseSDCMRSAD;
    98 #endif
    9976  Int   iRows;
    10077  Int   iCols;
     
    123100    iSubShift = 0;
    124101    bitDepth = 0;
    125 #if H_3D_VSO
    126     // SAIT_VSO_EST_A0033
    127     pVirRec = NULL;
    128     pVirOrg = NULL;
    129     iStrideVir = 0;
    130 #endif
    131 #if H_3D_INTER_SDC
    132     bUseSDCMRSAD = false;
    133 #endif
    134102  }
    135103};
     
    155123  UInt                    m_uiLambdaMotionSSE;
    156124  Double                  m_dFrameLambda;
    157 #if H_3D_VSO
    158   // SAIT_VSO_EST_A0033
    159   static Double           m_dDisparityCoeff;
    160 #endif
    161125 
    162126  // for motion cost
     
    175139#endif
    176140 
    177 #if H_3D_DBBP
    178   Bool                    m_bUseMask;
    179 #endif
    180141 
    181142public:
     
    183144  virtual ~TComRdCost();
    184145
    185 #if H_3D_VSO
    186   Double  calcRdCost  ( UInt   uiBits, Dist   uiDistortion, Bool bFlag = false, DFunc eDFunc = DF_DEFAULT );
    187   Double  calcRdCost64( UInt64 uiBits, Dist64 uiDistortion, Bool bFlag = false, DFunc eDFunc = DF_DEFAULT );
    188 #else
    189146  Double  calcRdCost  ( UInt   uiBits, UInt   uiDistortion, Bool bFlag = false, DFunc eDFunc = DF_DEFAULT );
    190147  Double  calcRdCost64( UInt64 uiBits, UInt64 uiDistortion, Bool bFlag = false, DFunc eDFunc = DF_DEFAULT );
    191 #endif
    192148
    193149 
     
    198154 
    199155  Double  getSqrtLambda ()   { return m_sqrtLambda; }
    200 #if H_3D_VSO
    201   // SAIT_VSO_EST_A0033
    202   Void    setDisparityCoeff( Double dDisparityCoeff ) { m_dDisparityCoeff = dDisparityCoeff; }
    203   Double  getDisparityCoeff()                         { return m_dDisparityCoeff; }
    204 #endif
    205156
    206157  Double  getLambda() { return m_dLambda; }
     
    215166  Void    setDistParam( DistParam& rcDP, Int bitDepth, Pel* p1, Int iStride1, Pel* p2, Int iStride2, Int iWidth, Int iHeight, Bool bHadamard = false );
    216167 
    217 #if H_3D_DBBP
    218   Void    setUseMask(Bool b) { m_bUseMask = b; }
    219 #endif
    220168 
    221169  UInt    calcHAD(Int bitDepth, Pel* pi0, Int iStride0, Pel* pi1, Int iStride1, Int iWidth, Int iHeight );
    222170 
    223 #if H_3D_FAST_DEPTH_INTRA
    224   UInt    calcVAR(Pel* pi0, Int stride, Int width, Int height, Int cuDepth);
    225 #endif 
    226171  // for motion cost
    227172#if !FIX203
     
    269214  static UInt xGetSSE64         ( DistParam* pcDtParam );
    270215  static UInt xGetSSE16N        ( DistParam* pcDtParam );
    271 #if H_3D_IC || H_3D_INTER_SDC
    272   static UInt xGetSADic         ( DistParam* pcDtParam );
    273   static UInt xGetSAD4ic        ( DistParam* pcDtParam );
    274   static UInt xGetSAD8ic        ( DistParam* pcDtParam );
    275   static UInt xGetSAD16ic       ( DistParam* pcDtParam );
    276   static UInt xGetSAD32ic       ( DistParam* pcDtParam );
    277   static UInt xGetSAD64ic       ( DistParam* pcDtParam );
    278   static UInt xGetSAD16Nic      ( DistParam* pcDtParam );
    279 #endif
    280216  static UInt xGetSAD           ( DistParam* pcDtParam );
    281217  static UInt xGetSAD4          ( DistParam* pcDtParam );
     
    286222  static UInt xGetSAD16N        ( DistParam* pcDtParam );
    287223 
    288 #if H_3D_VSO
    289   static UInt xGetVSD           ( DistParam* pcDtParam );
    290   static UInt xGetVSD4          ( DistParam* pcDtParam );
    291   static UInt xGetVSD8          ( DistParam* pcDtParam );
    292   static UInt xGetVSD16         ( DistParam* pcDtParam );
    293   static UInt xGetVSD32         ( DistParam* pcDtParam );
    294   static UInt xGetVSD64         ( DistParam* pcDtParam );
    295   static UInt xGetVSD16N        ( DistParam* pcDtParam );
    296 #endif
    297224
    298225#if AMP_SAD
    299 #if H_3D_IC || H_3D_INTER_SDC
    300   static UInt xGetSAD12ic       ( DistParam* pcDtParam );
    301   static UInt xGetSAD24ic       ( DistParam* pcDtParam );
    302   static UInt xGetSAD48ic       ( DistParam* pcDtParam );
    303 #endif
    304226  static UInt xGetSAD12         ( DistParam* pcDtParam );
    305227  static UInt xGetSAD24         ( DistParam* pcDtParam );
     
    308230#endif
    309231
    310 #if H_3D_IC || H_3D_INTER_SDC
    311   static UInt xGetHADsic          ( DistParam* pcDtParam );
    312 #endif
    313232  static UInt xGetHADs4         ( DistParam* pcDtParam );
    314233  static UInt xGetHADs8         ( DistParam* pcDtParam );
     
    317236  static UInt xCalcHADs4x4      ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep );
    318237  static UInt xCalcHADs8x8      ( Pel *piOrg, Pel *piCurr, Int iStrideOrg, Int iStrideCur, Int iStep );
    319 #if H_3D_DBBP
    320   static UInt xGetMaskedSSE     ( DistParam* pcDtParam );
    321   static UInt xGetMaskedSAD     ( DistParam* pcDtParam );
    322 #if !RWTH_DBBP_NO_SATD_K0028
    323   static UInt xGetMaskedHADs    ( DistParam* pcDtParam );
    324 #endif
    325   static UInt xGetMaskedVSD     ( DistParam* pcDtParam );
    326 #endif
    327238 
    328239public:
     
    333244#endif
    334245
    335 #if H_3D_VSO
    336   // SAIT_VSO_EST_A0033
    337   UInt        getDistPartVSD( TComDataCU* pcCu, UInt uiPartOffset, Pel* piCur, Int iCurStride,  Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bHad, DFunc eDFunc = DF_VSD);
    338   static UInt getVSDEstimate( Int dDM, Pel* pOrg, Int iOrgStride,  Pel* pVirRec, Pel* pVirOrg, Int iVirStride, Int x, Int y );
    339 
    340 private:
    341   Double                  m_dLambdaVSO;
    342   Double                  m_dSqrtLambdaVSO;
    343   UInt                    m_uiLambdaMotionSADVSO;
    344   UInt                    m_uiLambdaMotionSSEVSO;
    345   Double                  m_dFrameLambdaVSO;
    346   Bool                    m_bAllowNegDist;
    347   Bool                    m_bUseVSO;
    348   Bool                    m_bUseLambdaScaleVSO;
    349   UInt                    m_uiVSOMode;
    350 
    351   FpDistFuncVSO           m_fpDistortFuncVSO;
    352   TRenModel*              m_pcRenModel;
    353 
    354 
    355   // SAIT_VSO_EST_A0033
    356   TComPicYuv *            m_pcVideoRecPicYuv;
    357   TComPicYuv *            m_pcDepthPicYuv;
    358   Bool                    m_bUseEstimatedVSD;
    359 
    360   // LGE_WVSO_A0119
    361   Int                     m_iDWeight;
    362   Int                     m_iVSOWeight;
    363   Int                     m_iVSDWeight;
    364   Bool                    m_bUseWVSO;
    365 
    366 public:
    367 
    368   Void    setRenModel       ( TRenModel* pcRenModel ) { m_pcRenModel = pcRenModel; }
    369   TRenModel* getRenModel    ( )                       { return m_pcRenModel; }
    370   Void    setRenModelData   ( TComDataCU* pcCU, UInt uiAbsPartIndex, Pel* piData, Int iStride, Int iBlkWidth, Int iBlkHeight );
    371   Void    setLambdaVSO      ( Double dLambda );
    372   Void    setFrameLambdaVSO ( Double dLambda ) { m_dFrameLambdaVSO = dLambda; };
    373 
    374 
    375   Void    setUseVSO ( Bool bIn )         { m_bUseVSO = bIn; };
    376   Bool    getUseVSO ( )                  { return m_bUseVSO;};
    377 
    378   Bool    getUseRenModel ( )             { return (m_bUseVSO && m_uiVSOMode == 4); };
    379   Void    setUseLambdaScaleVSO(Bool bIn) { m_bUseLambdaScaleVSO = bIn; };
    380   Bool    getUseLambdaScaleVSO( )        { return m_bUseLambdaScaleVSO; };
    381 
    382   Void    setVSOMode( UInt uiIn);
    383   UInt    getVSOMode( )                  { return m_uiVSOMode; }
    384   Void    setAllowNegDist ( Bool bAllowNegDist );
    385 
    386   Double  getSqrtLambdaVSO ()   { return m_dSqrtLambdaVSO; }
    387   Double  getLambdaVSO ()       { return m_dLambdaVSO; }
    388 
    389   Dist   getDistPartVSO( TComDataCU* pcCU, UInt uiAbsPartIndex, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD );
    390   Double calcRdCostVSO ( UInt   uiBits, Dist   uiDistortion, Bool bFlag = false, DFunc eDFunc = DF_DEFAULT );
    391 
    392   // SAIT_VSO_EST_A0033
    393   Bool    getUseEstimatedVSD( )           { return m_bUseEstimatedVSD; };
    394   Void    setUseEstimatedVSD( Bool bIn )  { m_bUseEstimatedVSD = bIn; };
    395 
    396   TComPicYuv* getVideoRecPicYuv ()                               { return m_pcVideoRecPicYuv; };
    397   Void        setVideoRecPicYuv ( TComPicYuv* pcVideoRecPicYuv ) { m_pcVideoRecPicYuv = pcVideoRecPicYuv; };
    398   TComPicYuv* getDepthPicYuv    ()                               { return m_pcDepthPicYuv; };
    399   Void        setDepthPicYuv    ( TComPicYuv* pcDepthPicYuv )    { m_pcDepthPicYuv = pcDepthPicYuv; };
    400 
    401   // LGE_WVSO_A0119
    402   Void    setUseWVSO ( Bool bIn )         { m_bUseWVSO = bIn; };
    403   Bool    getUseWVSO ( )                  { return m_bUseWVSO;};
    404   Void    setDWeight   ( Int iDWeight   ) { m_iDWeight = iDWeight; };
    405   Int     getDWeight   ()                 { return m_iDWeight; };
    406   Void    setVSOWeight ( Int iVSOWeight ) { m_iVSOWeight = iVSOWeight; };
    407   Int     getVSOWeight ()                 { return m_iVSOWeight; };
    408   Void    setVSDWeight ( Int iVSDWeight ) { m_iVSDWeight = iVSDWeight; };
    409   Int     getVSDWeight ()                 { return m_iVSDWeight; };
    410 
    411 private:
    412   Dist xGetDistVSOMode4( Int iStartPosX, Int iStartPosY, Pel* piCur, Int iCurStride, Pel* piOrg, Int iOrgStride, UInt uiBlkWidth, UInt uiBlkHeight, Bool bSAD );
    413 
    414 #endif // H_3D_VSO
    415246
    416247};// END CLASS DEFINITION TComRdCost
Note: See TracChangeset for help on using the changeset viewer.