source: 3DVCSoftware/trunk/source/Lib/TLibEncoder/TEncSearch.h @ 872

Last change on this file since 872 was 872, checked in by tech, 10 years ago

Merged HTM-10.0-dev0@871. (MV-HEVC 7 HLS)

  • Property svn:eol-style set to native
File size: 25.1 KB
Line 
1/* The copyright in this software is being made available under the BSD
2 * License, included below. This software may be subject to other third party
3 * and contributor rights, including patent rights, and no such rights are
4 * granted under this license. 
5 *
6* Copyright (c) 2010-2014, ITU/ISO/IEC
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 *  * Redistributions of source code must retain the above copyright notice,
13 *    this list of conditions and the following disclaimer.
14 *  * Redistributions in binary form must reproduce the above copyright notice,
15 *    this list of conditions and the following disclaimer in the documentation
16 *    and/or other materials provided with the distribution.
17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
18 *    be used to endorse or promote products derived from this software without
19 *    specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34/** \file     TEncSearch.h
35    \brief    encoder search class (header)
36*/
37
38#ifndef __TENCSEARCH__
39#define __TENCSEARCH__
40
41// Include files
42#include "TLibCommon/TComYuv.h"
43#include "TLibCommon/TComMotionInfo.h"
44#include "TLibCommon/TComPattern.h"
45#include "TLibCommon/TComPrediction.h"
46#include "TLibCommon/TComTrQuant.h"
47#include "TLibCommon/TComPic.h"
48#include "TEncEntropy.h"
49#include "TEncSbac.h"
50#include "TEncCfg.h"
51
52//! \ingroup TLibEncoder
53//! \{
54
55class TEncCu;
56
57// ====================================================================================================================
58// Class definition
59// ====================================================================================================================
60
61/// encoder search class
62class TEncSearch : public TComPrediction
63{
64private:
65  TCoeff**        m_ppcQTTempCoeffY;
66  TCoeff**        m_ppcQTTempCoeffCb;
67  TCoeff**        m_ppcQTTempCoeffCr;
68  TCoeff*         m_pcQTTempCoeffY;
69  TCoeff*         m_pcQTTempCoeffCb;
70  TCoeff*         m_pcQTTempCoeffCr;
71#if ADAPTIVE_QP_SELECTION
72  Int**           m_ppcQTTempArlCoeffY;
73  Int**           m_ppcQTTempArlCoeffCb;
74  Int**           m_ppcQTTempArlCoeffCr;
75  Int*            m_pcQTTempArlCoeffY;
76  Int*            m_pcQTTempArlCoeffCb;
77  Int*            m_pcQTTempArlCoeffCr;
78#endif
79  UChar*          m_puhQTTempTrIdx;
80  UChar*          m_puhQTTempCbf[3];
81 
82  TComYuv*        m_pcQTTempTComYuv;
83  TComYuv         m_tmpYuvPred; // To be used in xGetInterPredictionError() to avoid constant memory allocation/deallocation
84  Pel*            m_pSharedPredTransformSkip[3];
85  TCoeff*         m_pcQTTempTUCoeffY;
86  TCoeff*         m_pcQTTempTUCoeffCb;
87  TCoeff*         m_pcQTTempTUCoeffCr;
88  UChar*          m_puhQTTempTransformSkipFlag[3];
89  TComYuv         m_pcQTTempTransformSkipTComYuv;
90#if ADAPTIVE_QP_SELECTION
91  Int*            m_ppcQTTempTUArlCoeffY;
92  Int*            m_ppcQTTempTUArlCoeffCb;
93  Int*            m_ppcQTTempTUArlCoeffCr;
94#endif
95protected:
96  // interface to option
97  TEncCfg*        m_pcEncCfg;
98 
99  // interface to classes
100  TComTrQuant*    m_pcTrQuant;
101  TComRdCost*     m_pcRdCost;
102  TEncEntropy*    m_pcEntropyCoder;
103 
104  // ME parameters
105  Int             m_iSearchRange;
106  Int             m_bipredSearchRange; // Search range for bi-prediction
107  Int             m_iFastSearch;
108  Int             m_aaiAdaptSR[2][33];
109  TComMv          m_cSrchRngLT;
110  TComMv          m_cSrchRngRB;
111  TComMv          m_acMvPredictors[3];
112 
113  // RD computation
114  TEncSbac***     m_pppcRDSbacCoder;
115  TEncSbac*       m_pcRDGoOnSbacCoder;
116  DistParam       m_cDistParam;
117 
118  // Misc.
119  Pel*            m_pTempPel;
120  const UInt*     m_puiDFilter;
121  Int             m_iMaxDeltaQP;
122
123#if H_3D_VSO // M17
124  TComYuv         m_cYuvRecTemp; 
125#endif
126  // AMVP cost computation
127  // UInt            m_auiMVPIdxCost[AMVP_MAX_NUM_CANDS+1][AMVP_MAX_NUM_CANDS];
128  UInt            m_auiMVPIdxCost[AMVP_MAX_NUM_CANDS+1][AMVP_MAX_NUM_CANDS+1]; //th array bounds
129 
130public:
131  TEncSearch();
132  virtual ~TEncSearch();
133 
134  Void init(  TEncCfg*      pcEncCfg,
135            TComTrQuant*  pcTrQuant,
136            Int           iSearchRange,
137            Int           bipredSearchRange,
138            Int           iFastSearch,
139            Int           iMaxDeltaQP,
140            TEncEntropy*  pcEntropyCoder,
141            TComRdCost*   pcRdCost,
142            TEncSbac***   pppcRDSbacCoder,
143            TEncSbac*     pcRDGoOnSbacCoder );
144 
145protected:
146 
147  /// sub-function for motion vector refinement used in fractional-pel accuracy
148  UInt  xPatternRefinement( TComPattern* pcPatternKey,
149                           TComMv baseRefMv,
150                           Int iFrac, TComMv& rcMvFrac );
151 
152  typedef struct
153  {
154    Pel*  piRefY;
155    Int   iYStride;
156    Int   iBestX;
157    Int   iBestY;
158    UInt  uiBestRound;
159    UInt  uiBestDistance;
160    UInt  uiBestSad;
161    UChar ucPointNr;
162  } IntTZSearchStruct;
163 
164  // sub-functions for ME
165  __inline Void xTZSearchHelp         ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStruct, const Int iSearchX, const Int iSearchY, const UChar ucPointNr, const UInt uiDistance );
166  __inline Void xTZ2PointSearch       ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB );
167  __inline Void xTZ8PointSquareSearch ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB, const Int iStartX, const Int iStartY, const Int iDist );
168  __inline Void xTZ8PointDiamondSearch( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB, const Int iStartX, const Int iStartY, const Int iDist );
169 
170  Void xGetInterPredictionError( TComDataCU* pcCU, TComYuv* pcYuvOrg, Int iPartIdx, UInt& ruiSAD, Bool Hadamard );
171
172public:
173  Void  preestChromaPredMode    ( TComDataCU* pcCU, 
174                                  TComYuv*    pcOrgYuv, 
175                                  TComYuv*    pcPredYuv );
176  Void  estIntraPredQT          ( TComDataCU* pcCU, 
177                                  TComYuv*    pcOrgYuv, 
178                                  TComYuv*    pcPredYuv, 
179                                  TComYuv*    pcResiYuv, 
180                                  TComYuv*    pcRecoYuv,
181                                  UInt&       ruiDistC,
182                                  Bool        bLumaOnly );
183  Void  estIntraPredChromaQT    ( TComDataCU* pcCU, 
184                                  TComYuv*    pcOrgYuv, 
185                                  TComYuv*    pcPredYuv, 
186                                  TComYuv*    pcResiYuv, 
187                                  TComYuv*    pcRecoYuv,
188                                  UInt        uiPreCalcDistC );
189 
190 
191  /// encoder estimation - inter prediction (non-skip)
192  Void predInterSearch          ( TComDataCU* pcCU,
193                                  TComYuv*    pcOrgYuv,
194                                  TComYuv*&   rpcPredYuv,
195                                  TComYuv*&   rpcResiYuv,
196                                  TComYuv*&   rpcRecoYuv,
197#if H_3D_FAST_TEXTURE_ENCODING
198                                  Bool        bFMD,
199#endif
200                                  Bool        bUseRes = false
201#if AMP_MRG
202                                 ,Bool        bUseMRG = false
203#endif
204                                );
205 
206  /// encode residual and compute rd-cost for inter mode
207  Void encodeResAndCalcRdInterCU( TComDataCU* pcCU,
208                                  TComYuv*    pcYuvOrg,
209                                  TComYuv*    pcYuvPred,
210                                  TComYuv*&   rpcYuvResi,
211                                  TComYuv*&   rpcYuvResiBest,
212                                  TComYuv*&   rpcYuvRec,
213                                  Bool        bSkipRes );
214#if H_3D_INTER_SDC
215  Void encodeResAndCalcRdInterSDCCU( TComDataCU* pcCU,
216    TComYuv* pcOrg, 
217    TComYuv* pcPred, 
218    TComYuv* pcResi, 
219    TComYuv* pcRec, 
220#if SEC_INTER_SDC_G0101
221    Int      uiOffset,
222#endif
223    const UInt uiDepth );
224#endif
225  /// set ME search range
226  Void setAdaptiveSearchRange   ( Int iDir, Int iRefIdx, Int iSearchRange) { m_aaiAdaptSR[iDir][iRefIdx] = iSearchRange; }
227 
228  Void xEncPCM    (TComDataCU* pcCU, UInt uiAbsPartIdx, Pel* piOrg, Pel* piPCM, Pel* piPred, Pel* piResi, Pel* piReco, UInt uiStride, UInt uiWidth, UInt uiHeight, TextType eText);
229  Void IPCMSearch (TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv );
230protected:
231 
232  // -------------------------------------------------------------------------------------------------------------------
233  // Intra search
234  // -------------------------------------------------------------------------------------------------------------------
235 
236  Void  xEncSubdivCbfQT           ( TComDataCU*  pcCU,
237                                    UInt         uiTrDepth,
238                                    UInt         uiAbsPartIdx,
239                                    Bool         bLuma,
240                                    Bool         bChroma );
241
242  Void  xEncCoeffQT               ( TComDataCU*  pcCU,
243                                    UInt         uiTrDepth,
244                                    UInt         uiAbsPartIdx,
245                                    TextType     eTextType,
246                                    Bool         bRealCoeff );
247  Void  xEncIntraHeader           ( TComDataCU*  pcCU,
248                                    UInt         uiTrDepth,
249                                    UInt         uiAbsPartIdx,
250                                    Bool         bLuma,
251                                    Bool         bChroma );
252  UInt  xGetIntraBitsQT           ( TComDataCU*  pcCU,
253                                    UInt         uiTrDepth,
254                                    UInt         uiAbsPartIdx,
255                                    Bool         bLuma,
256                                    Bool         bChroma,
257                                    Bool         bRealCoeff );
258  UInt  xGetIntraBitsQTChroma    ( TComDataCU*   pcCU,
259                                   UInt          uiTrDepth,
260                                   UInt          uiAbsPartIdx,
261                                   UInt          uiChromaId,
262                                   Bool          bRealCoeff );
263 
264  Void  xIntraCodingLumaBlk       ( TComDataCU*  pcCU,
265                                    UInt         uiTrDepth,
266                                    UInt         uiAbsPartIdx,
267                                    TComYuv*     pcOrgYuv, 
268                                    TComYuv*     pcPredYuv, 
269                                    TComYuv*     pcResiYuv, 
270#if H_3D_VSO
271                                    Dist&        ruiDist,
272#else
273                                    UInt&        ruiDist,
274#endif
275                                    Int         default0Save1Load2 = 0
276#if H_3D_DIM_ENC
277                                  , Bool          zeroResi = false
278#endif
279                                    );
280  Void  xIntraCodingChromaBlk     ( TComDataCU*  pcCU,
281                                    UInt         uiTrDepth,
282                                    UInt         uiAbsPartIdx,
283                                    TComYuv*     pcOrgYuv, 
284                                    TComYuv*     pcPredYuv, 
285                                    TComYuv*     pcResiYuv, 
286                                    UInt&        ruiDist,
287                                    UInt         uiChromaId,
288                                    Int          default0Save1Load2 = 0 );
289
290  Void  xRecurIntraCodingQT       ( TComDataCU*  pcCU, 
291                                    UInt         uiTrDepth,
292                                    UInt         uiAbsPartIdx, 
293                                    Bool         bLumaOnly,
294                                    TComYuv*     pcOrgYuv, 
295                                    TComYuv*     pcPredYuv, 
296                                    TComYuv*     pcResiYuv, 
297#if H_3D_VSO
298                                    Dist&        ruiDistY,
299#else
300                                    UInt&        ruiDistY,
301#endif
302                                    UInt&        ruiDistC,
303#if HHI_RQT_INTRA_SPEEDUP
304                                   Bool         bCheckFirst,
305#endif
306                                   Double&      dRDCost
307#if H_3D_DIM_ENC
308                                   , Bool          zeroResi = false
309#endif
310                                   );
311 
312  Void  xSetIntraResultQT         ( TComDataCU*  pcCU,
313                                    UInt         uiTrDepth,
314                                    UInt         uiAbsPartIdx,
315                                    Bool         bLumaOnly,
316                                    TComYuv*     pcRecoYuv );
317 
318  Void  xRecurIntraChromaCodingQT ( TComDataCU*  pcCU, 
319                                    UInt         uiTrDepth,
320                                    UInt         uiAbsPartIdx, 
321                                    TComYuv*     pcOrgYuv, 
322                                    TComYuv*     pcPredYuv, 
323                                    TComYuv*     pcResiYuv, 
324                                    UInt&        ruiDist );
325  Void  xSetIntraResultChromaQT   ( TComDataCU*  pcCU,
326                                    UInt         uiTrDepth,
327                                    UInt         uiAbsPartIdx,
328                                    TComYuv*     pcRecoYuv );
329 
330  Void  xStoreIntraResultQT       ( TComDataCU*  pcCU,
331                                    UInt         uiTrDepth,
332                                    UInt         uiAbsPartIdx,
333                                    Bool         bLumaOnly );
334  Void  xLoadIntraResultQT        ( TComDataCU*  pcCU,
335                                    UInt         uiTrDepth,
336                                    UInt         uiAbsPartIdx,
337                                    Bool         bLumaOnly );
338  Void xStoreIntraResultChromaQT  ( TComDataCU*  pcCU,
339                                    UInt         uiTrDepth,
340                                    UInt         uiAbsPartIdx,
341                                    UInt         stateU0V1Both2 );
342  Void xLoadIntraResultChromaQT   ( TComDataCU*  pcCU,
343                                    UInt         uiTrDepth,
344                                    UInt         uiAbsPartIdx,
345                                    UInt         stateU0V1Both2 );
346
347#if H_3D_DIM
348  // -------------------------------------------------------------------------------------------------------------------
349  // Depth intra search
350  // -------------------------------------------------------------------------------------------------------------------
351  Void xCalcBiSegDCs              ( Pel* ptrSrc, UInt srcStride, Bool* biSegPattern, Int patternStride, Pel& valDC1, Pel& valDC2 );
352#if H_3D_DIM_DMM
353  Void xSearchDmmDeltaDCs         ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piOrig, Pel* piPredic, UInt uiStride, Bool* biSegPattern, Int patternStride, UInt uiWidth, UInt uiHeight, Pel& rDeltaDC1, Pel& rDeltaDC2 );
354  Void xSearchDmm1Wedge           ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride, UInt uiWidth, UInt uiHeight, UInt& ruiTabIdx );
355#endif
356#if H_3D_DIM_SDC
357  Void xIntraCodingSDC            ( TComDataCU* pcCU, UInt uiAbsPartIdx, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, Dist& ruiDist, Double& dRDCost, 
358#if QC_GENERIC_SDC_G0122
359    Bool bZeroResidual, Int iSDCDeltaResi
360#else
361    Bool bResidual
362#endif
363    );
364#endif
365#endif
366
367  // -------------------------------------------------------------------------------------------------------------------
368  // Inter search (AMP)
369  // -------------------------------------------------------------------------------------------------------------------
370 
371  Void xEstimateMvPredAMVP        ( TComDataCU* pcCU,
372                                    TComYuv*    pcOrgYuv,
373                                    UInt        uiPartIdx,
374                                    RefPicList  eRefPicList,
375                                    Int         iRefIdx,
376                                    TComMv&     rcMvPred,
377                                    Bool        bFilled = false
378                                  , UInt*       puiDistBiP = NULL
379                                  #if ZERO_MVD_EST
380                                  , UInt*       puiDist = NULL
381                                  #endif
382                                     );
383 
384  Void xCheckBestMVP              ( TComDataCU* pcCU,
385                                    RefPicList  eRefPicList,
386                                    TComMv      cMv,
387                                    TComMv&     rcMvPred,
388                                    Int&        riMVPIdx,
389                                    UInt&       ruiBits,
390                                    UInt&       ruiCost );
391 
392  UInt xGetTemplateCost           ( TComDataCU* pcCU,
393                                    UInt        uiPartIdx,
394                                    UInt        uiPartAddr,
395                                    TComYuv*    pcOrgYuv,
396                                    TComYuv*    pcTemplateCand,
397                                    TComMv      cMvCand,
398                                    Int         iMVPIdx,
399                                    Int         iMVPNum,
400                                    RefPicList  eRefPicList,
401                                    Int         iRefIdx,
402                                    Int         iSizeX,
403                                    Int         iSizeY
404                                  #if ZERO_MVD_EST
405                                  , UInt&       ruiDist
406                                  #endif
407                                   );
408 
409 
410  Void xCopyAMVPInfo              ( AMVPInfo*   pSrc, AMVPInfo* pDst );
411  UInt xGetMvpIdxBits             ( Int iIdx, Int iNum );
412  Void xGetBlkBits                ( PartSize  eCUMode, Bool bPSlice, Int iPartIdx,  UInt uiLastMode, UInt uiBlkBit[3]);
413 
414  Void xMergeEstimation           ( TComDataCU*     pcCU,
415                                    TComYuv*        pcYuvOrg,
416                                    Int             iPartIdx,
417                                    UInt&           uiInterDir,
418                                    TComMvField*    pacMvField,
419                                    UInt&           uiMergeIndex,
420                                    UInt&           ruiCost
421                                  , TComMvField* cMvFieldNeighbours, 
422                                    UChar* uhInterDirNeighbours
423#if H_3D_VSP
424                                  , Int* vspFlag
425                                  , InheritedVSPDisInfo*  inheritedVSPDisInfo
426#endif
427#if H_3D_SPIVMP
428                                  , Bool* pbSPIVMPFlag, TComMvField* pcMvFieldSP, UChar* puhInterDirSP
429#endif
430                                  , Int& numValidMergeCand
431                                   );
432
433  Void xRestrictBipredMergeCand   ( TComDataCU*     pcCU,
434                                    UInt            puIdx,
435                                    TComMvField*    mvFieldNeighbours, 
436                                    UChar*          interDirNeighbours, 
437#if H_3D_VSP
438                                    Int* vspFlag,
439#endif
440                                    Int             numValidMergeCand );
441
442  // -------------------------------------------------------------------------------------------------------------------
443  // motion estimation
444  // -------------------------------------------------------------------------------------------------------------------
445 
446  Void xMotionEstimation          ( TComDataCU*   pcCU,
447                                    TComYuv*      pcYuvOrg,
448                                    Int           iPartIdx,
449                                    RefPicList    eRefPicList,
450                                    TComMv*       pcMvPred,
451                                    Int           iRefIdxPred,
452                                    TComMv&       rcMv,
453                                    UInt&         ruiBits,
454                                    UInt&         ruiCost,
455                                    Bool          bBi = false  );
456 
457  Void xTZSearch                  ( TComDataCU*   pcCU,
458                                    TComPattern*  pcPatternKey,
459                                    Pel*          piRefY,
460                                    Int           iRefStride,
461                                    TComMv*       pcMvSrchRngLT,
462                                    TComMv*       pcMvSrchRngRB,
463                                    TComMv&       rcMv,
464                                    UInt&         ruiSAD );
465 
466  Void xSetSearchRange            ( TComDataCU*   pcCU,
467                                    TComMv&       cMvPred,
468                                    Int           iSrchRng,
469                                    TComMv&       rcMvSrchRngLT,
470                                    TComMv&       rcMvSrchRngRB );
471 
472  Void xPatternSearchFast         ( TComDataCU*   pcCU,
473                                    TComPattern*  pcPatternKey,
474                                    Pel*          piRefY,
475                                    Int           iRefStride,
476                                    TComMv*       pcMvSrchRngLT,
477                                    TComMv*       pcMvSrchRngRB,
478                                    TComMv&       rcMv,
479                                    UInt&         ruiSAD );
480 
481  Void xPatternSearch             ( TComPattern*  pcPatternKey,
482                                    Pel*          piRefY,
483                                    Int           iRefStride,
484                                    TComMv*       pcMvSrchRngLT,
485                                    TComMv*       pcMvSrchRngRB,
486                                    TComMv&       rcMv,
487                                    UInt&         ruiSAD );
488 
489  Void xPatternSearchFracDIF      ( TComDataCU*   pcCU,
490                                    TComPattern*  pcPatternKey,
491                                    Pel*          piRefY,
492                                    Int           iRefStride,
493                                    TComMv*       pcMvInt,
494                                    TComMv&       rcMvHalf,
495                                    TComMv&       rcMvQter,
496                                    UInt&         ruiCost
497                                   ,Bool biPred
498                                   );
499 
500  Void xExtDIFUpSamplingH( TComPattern* pcPattern, Bool biPred  );
501  Void xExtDIFUpSamplingQ( TComPattern* pcPatternKey, TComMv halfPelRef, Bool biPred );
502 
503  // -------------------------------------------------------------------------------------------------------------------
504  // T & Q & Q-1 & T-1
505  // -------------------------------------------------------------------------------------------------------------------
506 
507  Void xEncodeResidualQT( TComDataCU* pcCU, UInt uiAbsPartIdx, const UInt uiDepth, Bool bSubdivAndCbf, TextType eType );
508#if H_3D_VSO // M26
509  Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcOrg, TComYuv* pcPred, TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, Dist &ruiDist, Dist *puiZeroDist );
510#else
511  Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, UInt &ruiDist, UInt *puiZeroDist );
512#endif
513  Void xSetResidualQTData( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx,UInt absTUPartIdx, TComYuv* pcResi, UInt uiDepth, Bool bSpatial );
514 
515  UInt  xModeBitsIntra ( TComDataCU* pcCU, UInt uiMode, UInt uiPU, UInt uiPartOffset, UInt uiDepth, UInt uiInitTrDepth );
516  UInt  xUpdateCandList( UInt uiMode, Double uiCost, UInt uiFastCandNum, UInt * CandModeList, Double * CandCostList );
517 
518  // -------------------------------------------------------------------------------------------------------------------
519  // compute symbol bits
520  // -------------------------------------------------------------------------------------------------------------------
521 
522  Void xAddSymbolBitsInter        ( TComDataCU*   pcCU,
523                                   UInt          uiQp,
524                                   UInt          uiTrMode,
525                                   UInt&         ruiBits,
526                                   TComYuv*&     rpcYuvRec,
527                                   TComYuv*      pcYuvPred,
528                                   TComYuv*&     rpcYuvResi );
529 
530  Void  setWpScalingDistParam( TComDataCU* pcCU, Int iRefIdx, RefPicList eRefPicListCur );
531  inline  Void  setDistParamComp( UInt uiComp )  { m_cDistParam.uiComp = uiComp; }
532 
533};// END CLASS DEFINITION TEncSearch
534
535//! \}
536
537#endif // __TENCSEARCH__
Note: See TracBrowser for help on using the repository browser.