source: 3DVCSoftware/branches/HTM-9.3-dev3-Qualcomm/source/Lib/TLibEncoder/TEncSearch.h @ 781

Last change on this file since 781 was 781, checked in by qualcomm, 10 years ago

integration of JCT3V-G0122 (generalize SDC to all depth intra modes) by Qualcomm.

  • Property svn:eol-style set to native
File size: 25.0 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-2013, 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  Bool            m_bUseSBACRD;
117  DistParam       m_cDistParam;
118 
119  // Misc.
120  Pel*            m_pTempPel;
121  const UInt*     m_puiDFilter;
122  Int             m_iMaxDeltaQP;
123
124#if H_3D_VSO // M17
125  TComYuv         m_cYuvRecTemp; 
126#endif
127  // AMVP cost computation
128  // UInt            m_auiMVPIdxCost[AMVP_MAX_NUM_CANDS+1][AMVP_MAX_NUM_CANDS];
129  UInt            m_auiMVPIdxCost[AMVP_MAX_NUM_CANDS+1][AMVP_MAX_NUM_CANDS+1]; //th array bounds
130 
131public:
132  TEncSearch();
133  virtual ~TEncSearch();
134 
135  Void init(  TEncCfg*      pcEncCfg,
136            TComTrQuant*  pcTrQuant,
137            Int           iSearchRange,
138            Int           bipredSearchRange,
139            Int           iFastSearch,
140            Int           iMaxDeltaQP,
141            TEncEntropy*  pcEntropyCoder,
142            TComRdCost*   pcRdCost,
143            TEncSbac***   pppcRDSbacCoder,
144            TEncSbac*     pcRDGoOnSbacCoder );
145 
146protected:
147 
148  /// sub-function for motion vector refinement used in fractional-pel accuracy
149  UInt  xPatternRefinement( TComPattern* pcPatternKey,
150                           TComMv baseRefMv,
151                           Int iFrac, TComMv& rcMvFrac );
152 
153  typedef struct
154  {
155    Pel*  piRefY;
156    Int   iYStride;
157    Int   iBestX;
158    Int   iBestY;
159    UInt  uiBestRound;
160    UInt  uiBestDistance;
161    UInt  uiBestSad;
162    UChar ucPointNr;
163  } IntTZSearchStruct;
164 
165  // sub-functions for ME
166  __inline Void xTZSearchHelp         ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStruct, const Int iSearchX, const Int iSearchY, const UChar ucPointNr, const UInt uiDistance );
167  __inline Void xTZ2PointSearch       ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB );
168  __inline Void xTZ8PointSquareSearch ( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB, const Int iStartX, const Int iStartY, const Int iDist );
169  __inline Void xTZ8PointDiamondSearch( TComPattern* pcPatternKey, IntTZSearchStruct& rcStrukt, TComMv* pcMvSrchRngLT, TComMv* pcMvSrchRngRB, const Int iStartX, const Int iStartY, const Int iDist );
170 
171  Void xGetInterPredictionError( TComDataCU* pcCU, TComYuv* pcYuvOrg, Int iPartIdx, UInt& ruiSAD, Bool Hadamard );
172
173public:
174  Void  preestChromaPredMode    ( TComDataCU* pcCU, 
175                                  TComYuv*    pcOrgYuv, 
176                                  TComYuv*    pcPredYuv );
177  Void  estIntraPredQT          ( TComDataCU* pcCU, 
178                                  TComYuv*    pcOrgYuv, 
179                                  TComYuv*    pcPredYuv, 
180                                  TComYuv*    pcResiYuv, 
181                                  TComYuv*    pcRecoYuv,
182                                  UInt&       ruiDistC,
183                                  Bool        bLumaOnly );
184  Void  estIntraPredChromaQT    ( TComDataCU* pcCU, 
185                                  TComYuv*    pcOrgYuv, 
186                                  TComYuv*    pcPredYuv, 
187                                  TComYuv*    pcResiYuv, 
188                                  TComYuv*    pcRecoYuv,
189                                  UInt        uiPreCalcDistC );
190 
191 
192  /// encoder estimation - inter prediction (non-skip)
193  Void predInterSearch          ( TComDataCU* pcCU,
194                                  TComYuv*    pcOrgYuv,
195                                  TComYuv*&   rpcPredYuv,
196                                  TComYuv*&   rpcResiYuv,
197                                  TComYuv*&   rpcRecoYuv,
198#if H_3D_FAST_TEXTURE_ENCODING
199                                  Bool        bFMD,
200#endif
201                                  Bool        bUseRes = false
202#if AMP_MRG
203                                 ,Bool        bUseMRG = false
204#endif
205                                );
206 
207  /// encode residual and compute rd-cost for inter mode
208  Void encodeResAndCalcRdInterCU( TComDataCU* pcCU,
209                                  TComYuv*    pcYuvOrg,
210                                  TComYuv*    pcYuvPred,
211                                  TComYuv*&   rpcYuvResi,
212                                  TComYuv*&   rpcYuvResiBest,
213                                  TComYuv*&   rpcYuvRec,
214                                  Bool        bSkipRes );
215#if H_3D_INTER_SDC
216  Void encodeResAndCalcRdInterSDCCU( TComDataCU* pcCU,
217    TComYuv* pcOrg, 
218    TComYuv* pcPred, 
219    TComYuv* pcResi, 
220    TComYuv* pcRec, 
221    const UInt uiDepth );
222#endif
223  /// set ME search range
224  Void setAdaptiveSearchRange   ( Int iDir, Int iRefIdx, Int iSearchRange) { m_aaiAdaptSR[iDir][iRefIdx] = iSearchRange; }
225 
226  Void xEncPCM    (TComDataCU* pcCU, UInt uiAbsPartIdx, Pel* piOrg, Pel* piPCM, Pel* piPred, Pel* piResi, Pel* piReco, UInt uiStride, UInt uiWidth, UInt uiHeight, TextType eText);
227  Void IPCMSearch (TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv );
228protected:
229 
230  // -------------------------------------------------------------------------------------------------------------------
231  // Intra search
232  // -------------------------------------------------------------------------------------------------------------------
233 
234  Void  xEncSubdivCbfQT           ( TComDataCU*  pcCU,
235                                    UInt         uiTrDepth,
236                                    UInt         uiAbsPartIdx,
237                                    Bool         bLuma,
238                                    Bool         bChroma );
239
240  Void  xEncCoeffQT               ( TComDataCU*  pcCU,
241                                    UInt         uiTrDepth,
242                                    UInt         uiAbsPartIdx,
243                                    TextType     eTextType,
244                                    Bool         bRealCoeff );
245  Void  xEncIntraHeader           ( TComDataCU*  pcCU,
246                                    UInt         uiTrDepth,
247                                    UInt         uiAbsPartIdx,
248                                    Bool         bLuma,
249                                    Bool         bChroma );
250  UInt  xGetIntraBitsQT           ( TComDataCU*  pcCU,
251                                    UInt         uiTrDepth,
252                                    UInt         uiAbsPartIdx,
253                                    Bool         bLuma,
254                                    Bool         bChroma,
255                                    Bool         bRealCoeff );
256  UInt  xGetIntraBitsQTChroma    ( TComDataCU*   pcCU,
257                                   UInt          uiTrDepth,
258                                   UInt          uiAbsPartIdx,
259                                   UInt          uiChromaId,
260                                   Bool          bRealCoeff );
261 
262  Void  xIntraCodingLumaBlk       ( TComDataCU*  pcCU,
263                                    UInt         uiTrDepth,
264                                    UInt         uiAbsPartIdx,
265                                    TComYuv*     pcOrgYuv, 
266                                    TComYuv*     pcPredYuv, 
267                                    TComYuv*     pcResiYuv, 
268#if H_3D_VSO
269                                    Dist&        ruiDist,
270#else
271                                    UInt&        ruiDist,
272#endif
273                                    Int         default0Save1Load2 = 0
274#if H_3D_DIM_ENC
275                                  , Bool          zeroResi = false
276#endif
277                                    );
278  Void  xIntraCodingChromaBlk     ( TComDataCU*  pcCU,
279                                    UInt         uiTrDepth,
280                                    UInt         uiAbsPartIdx,
281                                    TComYuv*     pcOrgYuv, 
282                                    TComYuv*     pcPredYuv, 
283                                    TComYuv*     pcResiYuv, 
284                                    UInt&        ruiDist,
285                                    UInt         uiChromaId,
286                                    Int          default0Save1Load2 = 0 );
287
288  Void  xRecurIntraCodingQT       ( TComDataCU*  pcCU, 
289                                    UInt         uiTrDepth,
290                                    UInt         uiAbsPartIdx, 
291                                    Bool         bLumaOnly,
292                                    TComYuv*     pcOrgYuv, 
293                                    TComYuv*     pcPredYuv, 
294                                    TComYuv*     pcResiYuv, 
295#if H_3D_VSO
296                                    Dist&        ruiDistY,
297#else
298                                    UInt&        ruiDistY,
299#endif
300                                    UInt&        ruiDistC,
301#if HHI_RQT_INTRA_SPEEDUP
302                                   Bool         bCheckFirst,
303#endif
304                                   Double&      dRDCost
305#if H_3D_DIM_ENC
306                                   , Bool          zeroResi = false
307#endif
308                                   );
309 
310  Void  xSetIntraResultQT         ( TComDataCU*  pcCU,
311                                    UInt         uiTrDepth,
312                                    UInt         uiAbsPartIdx,
313                                    Bool         bLumaOnly,
314                                    TComYuv*     pcRecoYuv );
315 
316  Void  xRecurIntraChromaCodingQT ( TComDataCU*  pcCU, 
317                                    UInt         uiTrDepth,
318                                    UInt         uiAbsPartIdx, 
319                                    TComYuv*     pcOrgYuv, 
320                                    TComYuv*     pcPredYuv, 
321                                    TComYuv*     pcResiYuv, 
322                                    UInt&        ruiDist );
323  Void  xSetIntraResultChromaQT   ( TComDataCU*  pcCU,
324                                    UInt         uiTrDepth,
325                                    UInt         uiAbsPartIdx,
326                                    TComYuv*     pcRecoYuv );
327 
328  Void  xStoreIntraResultQT       ( TComDataCU*  pcCU,
329                                    UInt         uiTrDepth,
330                                    UInt         uiAbsPartIdx,
331                                    Bool         bLumaOnly );
332  Void  xLoadIntraResultQT        ( TComDataCU*  pcCU,
333                                    UInt         uiTrDepth,
334                                    UInt         uiAbsPartIdx,
335                                    Bool         bLumaOnly );
336  Void xStoreIntraResultChromaQT  ( TComDataCU*  pcCU,
337                                    UInt         uiTrDepth,
338                                    UInt         uiAbsPartIdx,
339                                    UInt         stateU0V1Both2 );
340  Void xLoadIntraResultChromaQT   ( TComDataCU*  pcCU,
341                                    UInt         uiTrDepth,
342                                    UInt         uiAbsPartIdx,
343                                    UInt         stateU0V1Both2 );
344
345#if H_3D_DIM
346  // -------------------------------------------------------------------------------------------------------------------
347  // Depth intra search
348  // -------------------------------------------------------------------------------------------------------------------
349  Void xCalcBiSegDCs              ( Pel* ptrSrc, UInt srcStride, Bool* biSegPattern, Int patternStride, Pel& valDC1, Pel& valDC2 );
350#if H_3D_DIM_DMM
351  Void xSearchDmmDeltaDCs         ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piOrig, Pel* piPredic, UInt uiStride, Bool* biSegPattern, Int patternStride, UInt uiWidth, UInt uiHeight, Pel& rDeltaDC1, Pel& rDeltaDC2 );
352  Void xSearchDmm1Wedge           ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride, UInt uiWidth, UInt uiHeight, UInt& ruiTabIdx );
353#endif
354#if H_3D_DIM_SDC
355  Void xIntraCodingSDC            ( TComDataCU* pcCU, UInt uiAbsPartIdx, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, Dist& ruiDist, Double& dRDCost, 
356#if QC_GENERIC_SDC_G0122
357    Bool bZeroResidual, Int iSDCDeltaResi
358#else
359    Bool bResidual
360#endif
361    );
362#endif
363#endif
364
365  // -------------------------------------------------------------------------------------------------------------------
366  // Inter search (AMP)
367  // -------------------------------------------------------------------------------------------------------------------
368 
369  Void xEstimateMvPredAMVP        ( TComDataCU* pcCU,
370                                    TComYuv*    pcOrgYuv,
371                                    UInt        uiPartIdx,
372                                    RefPicList  eRefPicList,
373                                    Int         iRefIdx,
374                                    TComMv&     rcMvPred,
375                                    Bool        bFilled = false
376                                  , UInt*       puiDistBiP = NULL
377                                  #if ZERO_MVD_EST
378                                  , UInt*       puiDist = NULL
379                                  #endif
380                                     );
381 
382  Void xCheckBestMVP              ( TComDataCU* pcCU,
383                                    RefPicList  eRefPicList,
384                                    TComMv      cMv,
385                                    TComMv&     rcMvPred,
386                                    Int&        riMVPIdx,
387                                    UInt&       ruiBits,
388                                    UInt&       ruiCost );
389 
390  UInt xGetTemplateCost           ( TComDataCU* pcCU,
391                                    UInt        uiPartIdx,
392                                    UInt        uiPartAddr,
393                                    TComYuv*    pcOrgYuv,
394                                    TComYuv*    pcTemplateCand,
395                                    TComMv      cMvCand,
396                                    Int         iMVPIdx,
397                                    Int         iMVPNum,
398                                    RefPicList  eRefPicList,
399                                    Int         iRefIdx,
400                                    Int         iSizeX,
401                                    Int         iSizeY
402                                  #if ZERO_MVD_EST
403                                  , UInt&       ruiDist
404                                  #endif
405                                   );
406 
407 
408  Void xCopyAMVPInfo              ( AMVPInfo*   pSrc, AMVPInfo* pDst );
409  UInt xGetMvpIdxBits             ( Int iIdx, Int iNum );
410  Void xGetBlkBits                ( PartSize  eCUMode, Bool bPSlice, Int iPartIdx,  UInt uiLastMode, UInt uiBlkBit[3]);
411 
412  Void xMergeEstimation           ( TComDataCU*     pcCU,
413                                    TComYuv*        pcYuvOrg,
414                                    Int             iPartIdx,
415                                    UInt&           uiInterDir,
416                                    TComMvField*    pacMvField,
417                                    UInt&           uiMergeIndex,
418                                    UInt&           ruiCost
419                                  , TComMvField* cMvFieldNeighbours, 
420                                    UChar* uhInterDirNeighbours
421#if H_3D_VSP
422                                  , Int* vspFlag
423                                  , InheritedVSPDisInfo*  inheritedVSPDisInfo
424#endif
425#if H_3D_SPIVMP
426                                  , Bool* pbSPIVMPFlag, TComMvField* pcMvFieldSP, UChar* puhInterDirSP
427#endif
428                                  , Int& numValidMergeCand
429                                   );
430
431  Void xRestrictBipredMergeCand   ( TComDataCU*     pcCU,
432                                    UInt            puIdx,
433                                    TComMvField*    mvFieldNeighbours, 
434                                    UChar*          interDirNeighbours, 
435#if H_3D_VSP
436                                    Int* vspFlag,
437#endif
438                                    Int             numValidMergeCand );
439
440  // -------------------------------------------------------------------------------------------------------------------
441  // motion estimation
442  // -------------------------------------------------------------------------------------------------------------------
443 
444  Void xMotionEstimation          ( TComDataCU*   pcCU,
445                                    TComYuv*      pcYuvOrg,
446                                    Int           iPartIdx,
447                                    RefPicList    eRefPicList,
448                                    TComMv*       pcMvPred,
449                                    Int           iRefIdxPred,
450                                    TComMv&       rcMv,
451                                    UInt&         ruiBits,
452                                    UInt&         ruiCost,
453                                    Bool          bBi = false  );
454 
455  Void xTZSearch                  ( TComDataCU*   pcCU,
456                                    TComPattern*  pcPatternKey,
457                                    Pel*          piRefY,
458                                    Int           iRefStride,
459                                    TComMv*       pcMvSrchRngLT,
460                                    TComMv*       pcMvSrchRngRB,
461                                    TComMv&       rcMv,
462                                    UInt&         ruiSAD );
463 
464  Void xSetSearchRange            ( TComDataCU*   pcCU,
465                                    TComMv&       cMvPred,
466                                    Int           iSrchRng,
467                                    TComMv&       rcMvSrchRngLT,
468                                    TComMv&       rcMvSrchRngRB );
469 
470  Void xPatternSearchFast         ( TComDataCU*   pcCU,
471                                    TComPattern*  pcPatternKey,
472                                    Pel*          piRefY,
473                                    Int           iRefStride,
474                                    TComMv*       pcMvSrchRngLT,
475                                    TComMv*       pcMvSrchRngRB,
476                                    TComMv&       rcMv,
477                                    UInt&         ruiSAD );
478 
479  Void xPatternSearch             ( TComPattern*  pcPatternKey,
480                                    Pel*          piRefY,
481                                    Int           iRefStride,
482                                    TComMv*       pcMvSrchRngLT,
483                                    TComMv*       pcMvSrchRngRB,
484                                    TComMv&       rcMv,
485                                    UInt&         ruiSAD );
486 
487  Void xPatternSearchFracDIF      ( TComDataCU*   pcCU,
488                                    TComPattern*  pcPatternKey,
489                                    Pel*          piRefY,
490                                    Int           iRefStride,
491                                    TComMv*       pcMvInt,
492                                    TComMv&       rcMvHalf,
493                                    TComMv&       rcMvQter,
494                                    UInt&         ruiCost
495                                   ,Bool biPred
496                                   );
497 
498  Void xExtDIFUpSamplingH( TComPattern* pcPattern, Bool biPred  );
499  Void xExtDIFUpSamplingQ( TComPattern* pcPatternKey, TComMv halfPelRef, Bool biPred );
500 
501  // -------------------------------------------------------------------------------------------------------------------
502  // T & Q & Q-1 & T-1
503  // -------------------------------------------------------------------------------------------------------------------
504 
505  Void xEncodeResidualQT( TComDataCU* pcCU, UInt uiAbsPartIdx, const UInt uiDepth, Bool bSubdivAndCbf, TextType eType );
506#if H_3D_VSO // M26
507  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 );
508#else
509  Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, UInt &ruiDist, UInt *puiZeroDist );
510#endif
511  Void xSetResidualQTData( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx,UInt absTUPartIdx, TComYuv* pcResi, UInt uiDepth, Bool bSpatial );
512 
513  UInt  xModeBitsIntra ( TComDataCU* pcCU, UInt uiMode, UInt uiPU, UInt uiPartOffset, UInt uiDepth, UInt uiInitTrDepth );
514  UInt  xUpdateCandList( UInt uiMode, Double uiCost, UInt uiFastCandNum, UInt * CandModeList, Double * CandCostList );
515 
516  // -------------------------------------------------------------------------------------------------------------------
517  // compute symbol bits
518  // -------------------------------------------------------------------------------------------------------------------
519 
520  Void xAddSymbolBitsInter        ( TComDataCU*   pcCU,
521                                   UInt          uiQp,
522                                   UInt          uiTrMode,
523                                   UInt&         ruiBits,
524                                   TComYuv*&     rpcYuvRec,
525                                   TComYuv*      pcYuvPred,
526                                   TComYuv*&     rpcYuvResi );
527 
528  Void  setWpScalingDistParam( TComDataCU* pcCU, Int iRefIdx, RefPicList eRefPicListCur );
529  inline  Void  setDistParamComp( UInt uiComp )  { m_cDistParam.uiComp = uiComp; }
530 
531};// END CLASS DEFINITION TEncSearch
532
533//! \}
534
535#endif // __TENCSEARCH__
Note: See TracBrowser for help on using the repository browser.