source: 3DVCSoftware/branches/HTM-DEV-0.3-dev1/source/Lib/TLibEncoder/TEncSearch.h @ 459

Last change on this file since 459 was 459, checked in by hhi, 11 years ago

Integation of depth intra methods in macro H_3D_DIM, including:

  • DMM coding modes in H_3D_DIM_DMM.
  • RBC coding mode in H_3D_DIM_RBC.
  • Property svn:eol-style set to native
File size: 24.8 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                                  Bool        bUseRes = false
199#if AMP_MRG
200                                 ,Bool        bUseMRG = false
201#endif
202                                );
203 
204  /// encode residual and compute rd-cost for inter mode
205  Void encodeResAndCalcRdInterCU( TComDataCU* pcCU,
206                                  TComYuv*    pcYuvOrg,
207                                  TComYuv*    pcYuvPred,
208                                  TComYuv*&   rpcYuvResi,
209                                  TComYuv*&   rpcYuvResiBest,
210                                  TComYuv*&   rpcYuvRec,
211                                  Bool        bSkipRes );
212 
213  /// set ME search range
214  Void setAdaptiveSearchRange   ( Int iDir, Int iRefIdx, Int iSearchRange) { m_aaiAdaptSR[iDir][iRefIdx] = iSearchRange; }
215 
216  Void xEncPCM    (TComDataCU* pcCU, UInt uiAbsPartIdx, Pel* piOrg, Pel* piPCM, Pel* piPred, Pel* piResi, Pel* piReco, UInt uiStride, UInt uiWidth, UInt uiHeight, TextType eText);
217  Void IPCMSearch (TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv );
218protected:
219 
220  // -------------------------------------------------------------------------------------------------------------------
221  // Intra search
222  // -------------------------------------------------------------------------------------------------------------------
223 
224  Void  xEncSubdivCbfQT           ( TComDataCU*  pcCU,
225                                    UInt         uiTrDepth,
226                                    UInt         uiAbsPartIdx,
227                                    Bool         bLuma,
228                                    Bool         bChroma );
229
230  Void  xEncCoeffQT               ( TComDataCU*  pcCU,
231                                    UInt         uiTrDepth,
232                                    UInt         uiAbsPartIdx,
233                                    TextType     eTextType,
234                                    Bool         bRealCoeff );
235  Void  xEncIntraHeader           ( TComDataCU*  pcCU,
236                                    UInt         uiTrDepth,
237                                    UInt         uiAbsPartIdx,
238                                    Bool         bLuma,
239                                    Bool         bChroma );
240  UInt  xGetIntraBitsQT           ( TComDataCU*  pcCU,
241                                    UInt         uiTrDepth,
242                                    UInt         uiAbsPartIdx,
243                                    Bool         bLuma,
244                                    Bool         bChroma,
245                                    Bool         bRealCoeff );
246  UInt  xGetIntraBitsQTChroma    ( TComDataCU*   pcCU,
247                                   UInt          uiTrDepth,
248                                   UInt          uiAbsPartIdx,
249                                   UInt          uiChromaId,
250                                   Bool          bRealCoeff );
251 
252  Void  xIntraCodingLumaBlk       ( TComDataCU*  pcCU,
253                                    UInt         uiTrDepth,
254                                    UInt         uiAbsPartIdx,
255                                    TComYuv*     pcOrgYuv, 
256                                    TComYuv*     pcPredYuv, 
257                                    TComYuv*     pcResiYuv, 
258#if H_3D_VSO
259                                    Dist&        ruiDist,
260#else
261                                    UInt&        ruiDist,
262#endif
263                                    Int         default0Save1Load2 = 0);
264  Void  xIntraCodingChromaBlk     ( TComDataCU*  pcCU,
265                                    UInt         uiTrDepth,
266                                    UInt         uiAbsPartIdx,
267                                    TComYuv*     pcOrgYuv, 
268                                    TComYuv*     pcPredYuv, 
269                                    TComYuv*     pcResiYuv, 
270                                    UInt&        ruiDist,
271                                    UInt         uiChromaId,
272                                    Int          default0Save1Load2 = 0 );
273
274  Void  xRecurIntraCodingQT       ( TComDataCU*  pcCU, 
275                                    UInt         uiTrDepth,
276                                    UInt         uiAbsPartIdx, 
277                                    Bool         bLumaOnly,
278                                    TComYuv*     pcOrgYuv, 
279                                    TComYuv*     pcPredYuv, 
280                                    TComYuv*     pcResiYuv, 
281#if H_3D_VSO
282                                    Dist&        ruiDistY,
283#else
284                                    UInt&        ruiDistY,
285#endif
286                                    UInt&        ruiDistC,
287#if HHI_RQT_INTRA_SPEEDUP
288                                   Bool         bCheckFirst,
289#endif
290                                   Double&      dRDCost );
291 
292  Void  xSetIntraResultQT         ( TComDataCU*  pcCU,
293                                    UInt         uiTrDepth,
294                                    UInt         uiAbsPartIdx,
295                                    Bool         bLumaOnly,
296                                    TComYuv*     pcRecoYuv );
297 
298  Void  xRecurIntraChromaCodingQT ( TComDataCU*  pcCU, 
299                                    UInt         uiTrDepth,
300                                    UInt         uiAbsPartIdx, 
301                                    TComYuv*     pcOrgYuv, 
302                                    TComYuv*     pcPredYuv, 
303                                    TComYuv*     pcResiYuv, 
304                                    UInt&        ruiDist );
305  Void  xSetIntraResultChromaQT   ( TComDataCU*  pcCU,
306                                    UInt         uiTrDepth,
307                                    UInt         uiAbsPartIdx,
308                                    TComYuv*     pcRecoYuv );
309 
310  Void  xStoreIntraResultQT       ( TComDataCU*  pcCU,
311                                    UInt         uiTrDepth,
312                                    UInt         uiAbsPartIdx,
313                                    Bool         bLumaOnly );
314  Void  xLoadIntraResultQT        ( TComDataCU*  pcCU,
315                                    UInt         uiTrDepth,
316                                    UInt         uiAbsPartIdx,
317                                    Bool         bLumaOnly );
318  Void xStoreIntraResultChromaQT  ( TComDataCU*  pcCU,
319                                    UInt         uiTrDepth,
320                                    UInt         uiAbsPartIdx,
321                                    UInt         stateU0V1Both2 );
322  Void xLoadIntraResultChromaQT   ( TComDataCU*  pcCU,
323                                    UInt         uiTrDepth,
324                                    UInt         uiAbsPartIdx,
325                                    UInt         stateU0V1Both2 );
326
327
328  // -------------------------------------------------------------------------------------------------------------------
329  // Depth intra search
330  // -------------------------------------------------------------------------------------------------------------------
331#if H_3D_DIM
332  Void xCalcBiSegDCs              ( Pel* ptrSrc, UInt srcStride, Bool* biSegPattern, Int patternStride, Pel& valDC1, Pel& valDC2 );
333#if H_3D_DIM_DMM
334  Void xSearchDmmDeltaDCs         ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piOrig, Pel* piPredic, UInt uiStride, Bool* biSegPattern, Int patternStride, UInt uiWidth, UInt uiHeight, Pel& rDeltaDC1, Pel& rDeltaDC2 );
335  Void xSearchDmm1Wedge           ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride, UInt uiWidth, UInt uiHeight, UInt& ruiTabIdx );
336  Void xSearchDmm2Wedge           ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride, UInt uiWidth, UInt uiHeight, UInt& ruiTabIdx, Int& riWedgeDeltaEnd );
337  Void xSearchDmm3Wedge           ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride, UInt uiWidth, UInt uiHeight, UInt& ruiTabIdx, UInt& ruiIntraTabIdx );
338#endif
339#if H_3D_DIM_RBC
340  Void xSearchRbcDeltaDCs         ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piOrig, Pel* piPredic, UInt uiStride, Bool* biSegPattern, Int patternStride, UInt uiWidth, UInt uiHeight, Pel& rDeltaDC1, Pel& rDeltaDC2 );
341  Bool xSearchRbcEdge             ( TComDataCU* pcCU, UInt uiAbsPtIdx, Pel* piRef, UInt uiRefStride,  Int  iWidth,  Int  iHeight );
342 
343  Bool xCheckTerminatedEdge       ( Bool* pbEdge, Int iX, Int iY, Int iWidth, Int iHeight );
344  Bool xConstructChainCode        ( TComDataCU* pcCU, UInt uiAbsPtIdx, UInt uiWidth, UInt uiHeight );
345#endif
346#endif
347
348  // -------------------------------------------------------------------------------------------------------------------
349  // Inter search (AMP)
350  // -------------------------------------------------------------------------------------------------------------------
351 
352  Void xEstimateMvPredAMVP        ( TComDataCU* pcCU,
353                                    TComYuv*    pcOrgYuv,
354                                    UInt        uiPartIdx,
355                                    RefPicList  eRefPicList,
356                                    Int         iRefIdx,
357                                    TComMv&     rcMvPred,
358                                    Bool        bFilled = false
359                                  , UInt*       puiDistBiP = NULL
360                                  #if ZERO_MVD_EST
361                                  , UInt*       puiDist = NULL
362                                  #endif
363                                     );
364 
365  Void xCheckBestMVP              ( TComDataCU* pcCU,
366                                    RefPicList  eRefPicList,
367                                    TComMv      cMv,
368                                    TComMv&     rcMvPred,
369                                    Int&        riMVPIdx,
370                                    UInt&       ruiBits,
371                                    UInt&       ruiCost );
372 
373  UInt xGetTemplateCost           ( TComDataCU* pcCU,
374                                    UInt        uiPartIdx,
375                                    UInt        uiPartAddr,
376                                    TComYuv*    pcOrgYuv,
377                                    TComYuv*    pcTemplateCand,
378                                    TComMv      cMvCand,
379                                    Int         iMVPIdx,
380                                    Int         iMVPNum,
381                                    RefPicList  eRefPicList,
382                                    Int         iRefIdx,
383                                    Int         iSizeX,
384                                    Int         iSizeY
385                                  #if ZERO_MVD_EST
386                                  , UInt&       ruiDist
387                                  #endif
388                                   );
389 
390 
391  Void xCopyAMVPInfo              ( AMVPInfo*   pSrc, AMVPInfo* pDst );
392  UInt xGetMvpIdxBits             ( Int iIdx, Int iNum );
393  Void xGetBlkBits                ( PartSize  eCUMode, Bool bPSlice, Int iPartIdx,  UInt uiLastMode, UInt uiBlkBit[3]);
394 
395  Void xMergeEstimation           ( TComDataCU*     pcCU,
396                                    TComYuv*        pcYuvOrg,
397                                    Int             iPartIdx,
398                                    UInt&           uiInterDir,
399                                    TComMvField*    pacMvField,
400                                    UInt&           uiMergeIndex,
401                                    UInt&           ruiCost
402                                  , TComMvField* cMvFieldNeighbours, 
403                                    UChar* uhInterDirNeighbours,
404                                    Int& numValidMergeCand
405                                   );
406
407  Void xRestrictBipredMergeCand   ( TComDataCU*     pcCU,
408                                    UInt            puIdx,
409                                    TComMvField*    mvFieldNeighbours, 
410                                    UChar*          interDirNeighbours, 
411                                    Int             numValidMergeCand );
412
413  // -------------------------------------------------------------------------------------------------------------------
414  // motion estimation
415  // -------------------------------------------------------------------------------------------------------------------
416 
417  Void xMotionEstimation          ( TComDataCU*   pcCU,
418                                    TComYuv*      pcYuvOrg,
419                                    Int           iPartIdx,
420                                    RefPicList    eRefPicList,
421                                    TComMv*       pcMvPred,
422                                    Int           iRefIdxPred,
423                                    TComMv&       rcMv,
424                                    UInt&         ruiBits,
425                                    UInt&         ruiCost,
426                                    Bool          bBi = false  );
427 
428  Void xTZSearch                  ( TComDataCU*   pcCU,
429                                    TComPattern*  pcPatternKey,
430                                    Pel*          piRefY,
431                                    Int           iRefStride,
432                                    TComMv*       pcMvSrchRngLT,
433                                    TComMv*       pcMvSrchRngRB,
434                                    TComMv&       rcMv,
435                                    UInt&         ruiSAD );
436 
437  Void xSetSearchRange            ( TComDataCU*   pcCU,
438                                    TComMv&       cMvPred,
439                                    Int           iSrchRng,
440                                    TComMv&       rcMvSrchRngLT,
441                                    TComMv&       rcMvSrchRngRB );
442 
443  Void xPatternSearchFast         ( TComDataCU*   pcCU,
444                                    TComPattern*  pcPatternKey,
445                                    Pel*          piRefY,
446                                    Int           iRefStride,
447                                    TComMv*       pcMvSrchRngLT,
448                                    TComMv*       pcMvSrchRngRB,
449                                    TComMv&       rcMv,
450                                    UInt&         ruiSAD );
451 
452  Void xPatternSearch             ( TComPattern*  pcPatternKey,
453                                    Pel*          piRefY,
454                                    Int           iRefStride,
455                                    TComMv*       pcMvSrchRngLT,
456                                    TComMv*       pcMvSrchRngRB,
457                                    TComMv&       rcMv,
458                                    UInt&         ruiSAD );
459 
460  Void xPatternSearchFracDIF      ( TComDataCU*   pcCU,
461                                    TComPattern*  pcPatternKey,
462                                    Pel*          piRefY,
463                                    Int           iRefStride,
464                                    TComMv*       pcMvInt,
465                                    TComMv&       rcMvHalf,
466                                    TComMv&       rcMvQter,
467                                    UInt&         ruiCost
468                                   ,Bool biPred
469                                   );
470 
471  Void xExtDIFUpSamplingH( TComPattern* pcPattern, Bool biPred  );
472  Void xExtDIFUpSamplingQ( TComPattern* pcPatternKey, TComMv halfPelRef, Bool biPred );
473 
474  // -------------------------------------------------------------------------------------------------------------------
475  // T & Q & Q-1 & T-1
476  // -------------------------------------------------------------------------------------------------------------------
477 
478  Void xEncodeResidualQT( TComDataCU* pcCU, UInt uiAbsPartIdx, const UInt uiDepth, Bool bSubdivAndCbf, TextType eType );
479#if H_3D_VSO // M26
480  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 );
481#else
482  Void xEstimateResidualQT( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx, UInt absTUPartIdx,TComYuv* pcResi, const UInt uiDepth, Double &rdCost, UInt &ruiBits, UInt &ruiDist, UInt *puiZeroDist );
483#endif
484  Void xSetResidualQTData( TComDataCU* pcCU, UInt uiQuadrant, UInt uiAbsPartIdx,UInt absTUPartIdx, TComYuv* pcResi, UInt uiDepth, Bool bSpatial );
485 
486  UInt  xModeBitsIntra ( TComDataCU* pcCU, UInt uiMode, UInt uiPU, UInt uiPartOffset, UInt uiDepth, UInt uiInitTrDepth );
487  UInt  xUpdateCandList( UInt uiMode, Double uiCost, UInt uiFastCandNum, UInt * CandModeList, Double * CandCostList );
488 
489  // -------------------------------------------------------------------------------------------------------------------
490  // compute symbol bits
491  // -------------------------------------------------------------------------------------------------------------------
492 
493  Void xAddSymbolBitsInter        ( TComDataCU*   pcCU,
494                                   UInt          uiQp,
495                                   UInt          uiTrMode,
496                                   UInt&         ruiBits,
497                                   TComYuv*&     rpcYuvRec,
498                                   TComYuv*      pcYuvPred,
499                                   TComYuv*&     rpcYuvResi );
500 
501  Void  setWpScalingDistParam( TComDataCU* pcCU, Int iRefIdx, RefPicList eRefPicListCur );
502  inline  Void  setDistParamComp( UInt uiComp )  { m_cDistParam.uiComp = uiComp; }
503 
504};// END CLASS DEFINITION TEncSearch
505
506//! \}
507
508#endif // __TENCSEARCH__
Note: See TracBrowser for help on using the repository browser.