Changeset 595 in SHVCSoftware for trunk/source/Lib/TLibEncoder/TEncSearch.h


Ignore:
Timestamp:
2 Feb 2014, 06:01:53 (11 years ago)
Author:
seregin
Message:

merge with SHM-5.0-dev branch

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/source

  • trunk/source/Lib/TLibEncoder/TEncSearch.h

    r540 r595  
    44 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2013, ITU/ISO/IEC
     6 * Copyright (c) 2010-2014, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    9797  TEncCfg*        m_pcEncCfg;
    9898 
    99 #if SVC_EXTENSION
    100   TEncTop**       m_ppcTEncTop;
    101 #endif
    102  
    10399  // interface to classes
    104100  TComTrQuant*    m_pcTrQuant;
     
    118114  TEncSbac***     m_pppcRDSbacCoder;
    119115  TEncSbac*       m_pcRDGoOnSbacCoder;
    120   Bool            m_bUseSBACRD;
    121116  DistParam       m_cDistParam;
    122117 
     
    130125  UInt            m_auiMVPIdxCost[AMVP_MAX_NUM_CANDS+1][AMVP_MAX_NUM_CANDS+1]; //th array bounds
    131126
     127#if SVC_EXTENSION
     128  TEncTop**       m_ppcTEncTop;
    132129#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    133130  Bool            m_disableILP;
    134131#endif
     132#endif //SVC_EXTENAION
    135133
    136134public:
     
    207205                                );
    208206 
    209 #if (ENCODER_FAST_MODE)
    210   Bool predInterSearchILRUni    ( TComDataCU* pcCU, TComYuv*    pcOrgYuv, TComYuv*&   rpcPredYuv, TComYuv*&   rpcResiYuv, TComYuv*&   rpcRecoYuv, UInt        refLayerId );
    211 #endif
    212  
    213207  /// encode residual and compute rd-cost for inter mode
    214208  Void encodeResAndCalcRdInterCU( TComDataCU* pcCU,
     
    226220  Void IPCMSearch (TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv );
    227221
     222#if SVC_EXTENSION
     223#if (ENCODER_FAST_MODE)
     224  Bool predInterSearchILRUni    ( TComDataCU* pcCU, TComYuv*    pcOrgYuv, TComYuv*&   rpcPredYuv, TComYuv*&   rpcResiYuv, TComYuv*&   rpcRecoYuv, UInt        refLayerId );
     225#endif 
    228226#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
    229227  Void setDisableILP(Bool a) {m_disableILP = a;}
    230228#endif
     229#endif //SVC_EXTENSION
    231230
    232231protected:
     
    453452                                   ,Bool biPred
    454453                                   );
     454 
     455  Void xExtDIFUpSamplingH( TComPattern* pcPattern, Bool biPred  );
     456  Void xExtDIFUpSamplingQ( TComPattern* pcPatternKey, TComMv halfPelRef, Bool biPred );
     457 
     458  // -------------------------------------------------------------------------------------------------------------------
     459  // T & Q & Q-1 & T-1
     460  // -------------------------------------------------------------------------------------------------------------------
     461 
     462  Void xEncodeResidualQT( TComDataCU* pcCU, UInt uiAbsPartIdx, const UInt uiDepth, Bool bSubdivAndCbf, TextType eType );
     463  Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, UInt &ruiDist, UInt *puiZeroDist );
     464  Void xSetResidualQTData( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx,UInt absTUPartIdx, TComYuv* pcResi, UInt uiDepth, Bool bSpatial );
     465 
     466  UInt  xModeBitsIntra ( TComDataCU* pcCU, UInt uiMode, UInt uiPU, UInt uiPartOffset, UInt uiDepth, UInt uiInitTrDepth );
     467  UInt  xUpdateCandList( UInt uiMode, Double uiCost, UInt uiFastCandNum, UInt * CandModeList, Double * CandCostList );
     468 
     469  // -------------------------------------------------------------------------------------------------------------------
     470  // compute symbol bits
     471  // -------------------------------------------------------------------------------------------------------------------
     472 
     473  Void xAddSymbolBitsInter        ( TComDataCU*   pcCU,
     474                                   UInt          uiQp,
     475                                   UInt          uiTrMode,
     476                                   UInt&         ruiBits,
     477                                   TComYuv*&     rpcYuvRec,
     478                                   TComYuv*      pcYuvPred,
     479                                   TComYuv*&     rpcYuvResi );
     480 
     481  Void  setWpScalingDistParam( TComDataCU* pcCU, Int iRefIdx, RefPicList eRefPicListCur );
     482  inline  Void  setDistParamComp( UInt uiComp )  { m_cDistParam.uiComp = uiComp; }
     483
     484#if SVC_EXTENSION
    455485#if REF_IDX_ME_ZEROMV
    456486  Void xPatternSearchFracDIFMv0  ( TComDataCU*   pcCU,
     
    464494                                   Bool          biPred );
    465495#endif
    466   Void xExtDIFUpSamplingH( TComPattern* pcPattern, Bool biPred  );
    467   Void xExtDIFUpSamplingQ( TComPattern* pcPatternKey, TComMv halfPelRef, Bool biPred );
    468  
    469   // -------------------------------------------------------------------------------------------------------------------
    470   // T & Q & Q-1 & T-1
    471   // -------------------------------------------------------------------------------------------------------------------
    472  
    473   Void xEncodeResidualQT( TComDataCU* pcCU, UInt uiAbsPartIdx, const UInt uiDepth, Bool bSubdivAndCbf, TextType eType );
    474   Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, UInt &ruiDist, UInt *puiZeroDist );
    475   Void xSetResidualQTData( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx,UInt absTUPartIdx, TComYuv* pcResi, UInt uiDepth, Bool bSpatial );
    476  
    477   UInt  xModeBitsIntra ( TComDataCU* pcCU, UInt uiMode, UInt uiPU, UInt uiPartOffset, UInt uiDepth, UInt uiInitTrDepth );
    478   UInt  xUpdateCandList( UInt uiMode, Double uiCost, UInt uiFastCandNum, UInt * CandModeList, Double * CandCostList );
    479  
    480   // -------------------------------------------------------------------------------------------------------------------
    481   // compute symbol bits
    482   // -------------------------------------------------------------------------------------------------------------------
    483  
    484   Void xAddSymbolBitsInter        ( TComDataCU*   pcCU,
    485                                    UInt          uiQp,
    486                                    UInt          uiTrMode,
    487                                    UInt&         ruiBits,
    488                                    TComYuv*&     rpcYuvRec,
    489                                    TComYuv*      pcYuvPred,
    490                                    TComYuv*&     rpcYuvResi );
    491  
    492   Void  setWpScalingDistParam( TComDataCU* pcCU, Int iRefIdx, RefPicList eRefPicListCur );
    493   inline  Void  setDistParamComp( UInt uiComp )  { m_cDistParam.uiComp = uiComp; }
    494  
     496#endif //SVC_EXTENSION 
     497
    495498};// END CLASS DEFINITION TEncSearch
    496499
Note: See TracChangeset for help on using the changeset viewer.