source: 3DVCSoftware/branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibEncoder/TEncEntropy.h @ 852

Last change on this file since 852 was 254, checked in by mediatek-htm, 12 years ago

Integration of JCT3V-C0137

The added texture merging candidate is controlled by the MACRO "MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137"

From MediaTek
yiwen.chen@…

  • Property svn:eol-style set to native
File size: 18.2 KB
RevLine 
[5]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
[56]4 * granted under this license. 
[5]5 *
[56]6 * Copyright (c) 2010-2012, ITU/ISO/IEC
[5]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.
[56]17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
[5]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 */
[2]33
34/** \file     TEncEntropy.h
35    \brief    entropy encoder class (header)
36*/
37
38#ifndef __TENCENTROPY__
39#define __TENCENTROPY__
40
[56]41#include "TLibCommon/TComSlice.h"
42#include "TLibCommon/TComDataCU.h"
43#include "TLibCommon/TComBitStream.h"
44#include "TLibCommon/ContextModel.h"
45#include "TLibCommon/TComPic.h"
46#include "TLibCommon/TComTrQuant.h"
47#include "TLibCommon/TComAdaptiveLoopFilter.h"
48#include "TLibCommon/TComSampleAdaptiveOffset.h"
49
[2]50class TEncSbac;
51class TEncCavlc;
52class SEI;
53
54// ====================================================================================================================
55// Class definition
56// ====================================================================================================================
57
58/// entropy encoder pure class
59class TEncEntropyIf
60{
61public:
62  virtual Bool getAlfCtrl()                = 0;
63  virtual UInt getMaxAlfCtrlDepth()                = 0;
64  virtual Void setAlfCtrl(Bool bAlfCtrl)                = 0;
65  virtual Void setMaxAlfCtrlDepth(UInt uiMaxAlfCtrlDepth)                = 0;
66 
67  virtual Void  resetEntropy          ()                = 0;
[56]68#if CABAC_INIT_FLAG
69  virtual Void  determineCabacInitIdx ()                = 0;
70#endif
[2]71  virtual Void  setBitstream          ( TComBitIf* p )  = 0;
72  virtual Void  setSlice              ( TComSlice* p )  = 0;
73  virtual Void  resetBits             ()                = 0;
74  virtual Void  resetCoeffCost        ()                = 0;
75  virtual UInt  getNumberOfWrittenBits()                = 0;
76  virtual UInt  getCoeffCost          ()                = 0;
[56]77
[210]78#if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046
[100]79  virtual Void  codeVPS                 ( TComVPS* pcVPS )                                      = 0;
[77]80#endif
[100]81
[254]82#if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068
[56]83  virtual Void  codeSPS                 ( TComSPS* pcSPS, Bool bIsDepth )                       = 0;
[42]84#else
[56]85  virtual Void  codeSPS                 ( TComSPS* pcSPS )                                      = 0;
[42]86#endif
[2]87  virtual Void  codePPS                 ( TComPPS* pcPPS )                                      = 0;
88  virtual void codeSEI(const SEI&) = 0;
89  virtual Void  codeSliceHeader         ( TComSlice* pcSlice )                                  = 0;
[56]90  virtual Void codeTileMarkerFlag      ( TComSlice* pcSlice )                                  = 0;
91
92#if TILES_WPP_ENTRY_POINT_SIGNALLING
93  virtual Void  codeTilesWPPEntryPoint  ( TComSlice* pSlice )     = 0;
94#else
95  virtual Void  codeSliceHeaderSubstreamTable( TComSlice* pcSlice )                             = 0;
96#endif
[2]97  virtual Void  codeTerminatingBit      ( UInt uilsLast )                                       = 0;
98  virtual Void  codeSliceFinish         ()                                                      = 0;
[56]99#if OL_FLUSH
100  virtual Void  codeFlush               ()                                                      = 0;
101  virtual Void  encodeStart             ()                                                      = 0;
102#endif
[2]103 
104  virtual Void codeAlfCtrlDepth() = 0;
[56]105#if HHI_INTER_VIEW_MOTION_PRED
106  virtual Void codeMVPIdx ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList, Int iNum ) = 0;
107#else
[2]108  virtual Void codeMVPIdx ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList ) = 0;
[56]109#endif
110  virtual Void codeScalingList   ( TComScalingList* scalingList )      = 0;
[2]111 
112public:
113  virtual Void codeAlfCtrlFlag   ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[56]114  virtual Void codeApsExtensionFlag () = 0;
[2]115 
116  virtual Void codeSkipFlag      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[189]117#if LGE_ILLUCOMP_B0045
118  virtual Void codeICFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
119#endif
[2]120  virtual Void codeMergeFlag     ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
121  virtual Void codeMergeIndex    ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[5]122#if HHI_INTER_VIEW_RESIDUAL_PRED
[2]123  virtual Void codeResPredFlag   ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[5]124#endif
[2]125  virtual Void codeSplitFlag     ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
126 
127  virtual Void codePartSize      ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
128  virtual Void codePredMode      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
129 
[189]130#if RWTH_SDC_DLT_B0036
131  virtual Void codeSDCFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
132  virtual Void codeSDCResidualData  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiSegment ) = 0;
133  virtual Void codeSDCPredMode          ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
134#endif
135 
[56]136#if BURST_IPCM
137  virtual Void codeIPCMInfo      ( TComDataCU* pcCU, UInt uiAbsPartIdx, Int numIPCM, Bool firstIPCMFlag) = 0;
138#else
139  virtual Void codeIPCMInfo      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
140#endif
141
[2]142  virtual Void codeTransformSubdivFlag( UInt uiSymbol, UInt uiCtx ) = 0;
143  virtual Void codeQtCbf         ( TComDataCU* pcCU, UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth ) = 0;
144  virtual Void codeQtRootCbf     ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
145  virtual Void codeIntraDirLumaAng( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
146 
147  virtual Void codeIntraDirChroma( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
148  virtual Void codeInterDir      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
149  virtual Void codeRefFrmIdx     ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList )      = 0;
150  virtual Void codeMvd           ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList )      = 0;
151  virtual Void codeDeltaQP       ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[56]152  virtual Void codeCoeffNxN      ( TComDataCU* pcCU, TCoeff* pcCoef, UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt uiDepth, TextType eTType ) = 0;
[2]153 
154  virtual Void codeAlfFlag          ( UInt uiCode ) = 0;
155  virtual Void codeAlfUvlc          ( UInt uiCode ) = 0;
156  virtual Void codeAlfSvlc          ( Int   iCode ) = 0;
[56]157#if LCU_SYNTAX_ALF
158  virtual Void codeAlfFixedLengthIdx( UInt idx, UInt numFilterSetsInBuffer) = 0;
159  virtual Void codeAPSAlflag(UInt uiCode) = 0;
160#endif
161  /// set slice granularity
162  virtual Void setSliceGranularity(Int iSliceGranularity) = 0;
163
164  /// get slice granularity
165  virtual Int  getSliceGranularity()                      = 0;
166
[2]167  virtual Void codeAlfCtrlFlag      ( UInt uiSymbol ) = 0;
[56]168  virtual Void codeSaoFlag          ( UInt uiCode ) = 0;
169  virtual Void codeSaoUvlc          ( UInt uiCode ) = 0;
170  virtual Void codeSaoSvlc          ( Int   iCode ) = 0;
171#if SAO_UNIT_INTERLEAVING
172  virtual Void codeSaoRun          ( UInt   uiCode, UInt uiMaxValue  ) = 0;
173  virtual Void codeSaoMergeLeft    ( UInt   uiCode, UInt uiCompIdx  ) = 0;
174  virtual Void codeSaoMergeUp      ( UInt   uiCode) = 0;
175  virtual Void codeSaoTypeIdx      ( UInt   uiCode) = 0;
176  virtual Void codeSaoUflc         ( UInt   uiCode) = 0;
[2]177#endif
[56]178  virtual Void estBit               (estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, TextType eTType) = 0;
[2]179 
[56]180  virtual Void updateContextTables ( SliceType eSliceType, Int iQp, Bool bExecuteFinish )   = 0;
181  virtual Void updateContextTables ( SliceType eSliceType, Int iQp )   = 0;
182  virtual Void writeTileMarker             ( UInt uiTileIdx, UInt uiBitsUsed ) = 0;
183
184  virtual Void codeAPSInitInfo  (TComAPS* pcAPS)= 0;
185  virtual Void codeFinish       (Bool bEnd)= 0;
186
187  virtual Void codeDFFlag (UInt uiCode, const Char *pSymbolName) = 0;
188  virtual Void codeDFSvlc (Int iCode, const Char *pSymbolName)   = 0;
189
[2]190  virtual ~TEncEntropyIf() {}
[56]191
[2]192};
193
194/// entropy encoder class
195class TEncEntropy
196{
[56]197private:
198  UInt    m_uiBakAbsPartIdx;
199  UInt    m_uiBakChromaOffset;
200#if UNIFIED_TRANSFORM_TREE
201  UInt    m_bakAbsPartIdxCU;
202#endif
203
[2]204public:
205  Void    setEntropyCoder           ( TEncEntropyIf* e, TComSlice* pcSlice );
206  Void    setBitstream              ( TComBitIf* p )          { m_pcEntropyCoderIf->setBitstream(p);  }
207  Void    resetBits                 ()                        { m_pcEntropyCoderIf->resetBits();      }
208  Void    resetCoeffCost            ()                        { m_pcEntropyCoderIf->resetCoeffCost(); }
209  UInt    getNumberOfWrittenBits    ()                        { return m_pcEntropyCoderIf->getNumberOfWrittenBits(); }
210  UInt    getCoeffCost              ()                        { return  m_pcEntropyCoderIf->getCoeffCost(); }
211  Void    resetEntropy              ()                        { m_pcEntropyCoderIf->resetEntropy();  }
[56]212#if CABAC_INIT_FLAG
213  Void    determineCabacInitIdx     ()                        { m_pcEntropyCoderIf->determineCabacInitIdx(); }
214#endif
[2]215 
216  Void    encodeSliceHeader         ( TComSlice* pcSlice );
[56]217  Void    encodeTileMarkerFlag       (TComSlice* pcSlice) {m_pcEntropyCoderIf->codeTileMarkerFlag(pcSlice);}
218#if TILES_WPP_ENTRY_POINT_SIGNALLING
219  Void    encodeTilesWPPEntryPoint( TComSlice* pSlice );
220#else
221  Void    encodeSliceHeaderSubstreamTable( TComSlice* pcSlice );
222#endif
[2]223  Void    encodeTerminatingBit      ( UInt uiIsLast );
224  Void    encodeSliceFinish         ();
[56]225#if OL_FLUSH
226  Void    encodeFlush               ();
227  Void    encodeStart               ();
228#endif
229#if LCU_SYNTAX_ALF
230  Void encodeAlfFlag(UInt code) {m_pcEntropyCoderIf->codeAlfFlag(code);}
231  Void encodeAlfStoredFilterSetIdx(UInt idx, UInt numFilterSetsInBuffer);
232  Void encodeAlfFixedLengthRun(UInt run, UInt rx, UInt numLCUInWidth);
233  Void encodeAlfParam(AlfParamSet* pAlfParamSet, Bool bSentInAPS = true, Int firstLCUAddr = 0, Bool alfAcrossSlice= true);
234  Void encodeAlfParamSet(AlfParamSet* pAlfParamSet, Int numLCUInWidth, Int numLCU, Int firstLCUAddr, Bool alfAcrossSlice, Int startCompIdx, Int endCompIdx);
235  Bool getAlfRepeatRowFlag(Int compIdx, AlfParamSet* pAlfParamSet, Int lcuIdx, Int lcuPos, Int startlcuPosX, Int endlcuPosX, Int numLCUInWidth);
236  Int  getAlfRun(Int compIdx, AlfParamSet* pAlfParamSet, Int lcuIdxInSlice, Int lcuPos, Int startlcuPosX, Int endlcuPosX);
237  Void encodeAPSAlfFlag(UInt code) {m_pcEntropyCoderIf->codeAPSAlflag(code);}
238#endif 
[2]239  Void encodeAlfParam(ALFParam* pAlfParam);
240 
241  TEncEntropyIf*      m_pcEntropyCoderIf;
242 
243public:
[210]244#if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046
[100]245  Void encodeVPS               ( TComVPS* pcVPS);
[77]246#endif
[2]247  // SPS
[254]248#if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068
[56]249  Void encodeSPS               ( TComSPS* pcSPS, Bool bIsDepth );
250#else
[2]251  Void encodeSPS               ( TComSPS* pcSPS );
[56]252#endif
[2]253  Void encodePPS               ( TComPPS* pcPPS );
254  void encodeSEI(const SEI&);
255  Bool getAlfCtrl() {return m_pcEntropyCoderIf->getAlfCtrl();}
256  UInt getMaxAlfCtrlDepth() {return m_pcEntropyCoderIf->getMaxAlfCtrlDepth();}
257  Void setAlfCtrl(Bool bAlfCtrl) {m_pcEntropyCoderIf->setAlfCtrl(bAlfCtrl);}
258  Void setMaxAlfCtrlDepth(UInt uiMaxAlfCtrlDepth) {m_pcEntropyCoderIf->setMaxAlfCtrlDepth(uiMaxAlfCtrlDepth);}
259 
260  Void encodeSplitFlag         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[189]261#if LGE_ILLUCOMP_B0045
262  Void encodeICFlag            ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
263#endif
[2]264  Void encodeSkipFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
265  Void encodePUWise       ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
266  Void encodeInterDirPU   ( TComDataCU* pcSubCU, UInt uiAbsPartIdx  );
267  Void encodeRefFrmIdxPU  ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
268  Void encodeMvdPU        ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
269  Void encodeMVPIdxPU     ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
270  Void encodeMergeFlag    ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx );
271  Void encodeMergeIndex   ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false );
[244]272#if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138
[2]273  Void encodeResPredFlag  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false );
[5]274#endif
[2]275  Void encodeAlfCtrlFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[56]276
277  /// set slice granularity
278  Void setSliceGranularity (Int iSliceGranularity) {m_pcEntropyCoderIf->setSliceGranularity(iSliceGranularity);}
279
280  /// encode ALF CU control flag
281  Void encodeAlfCtrlFlag(UInt uiFlag);
282 
283  Void encodeApsExtensionFlag() {m_pcEntropyCoderIf->codeApsExtensionFlag();};
284
285  Void encodeAlfCtrlParam(AlfCUCtrlInfo& cAlfParam, Int iNumCUsInPic);
286
[2]287  Void encodePredMode          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
288  Void encodePartSize          ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[56]289  Void encodeIPCMInfo          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[2]290  Void encodePredInfo          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
291  Void encodeIntraDirModeLuma  ( TComDataCU* pcCU, UInt uiAbsPartIdx );
292 
293  Void encodeIntraDirModeChroma( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
294 
[56]295#if !UNIFIED_TRANSFORM_TREE
[2]296  Void encodeTransformIdx      ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[56]297#endif
[2]298  Void encodeTransformSubdivFlag( UInt uiSymbol, UInt uiCtx );
299  Void encodeQtCbf             ( TComDataCU* pcCU, UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth );
300  Void encodeQtRootCbf         ( TComDataCU* pcCU, UInt uiAbsPartIdx );
301  Void encodeQP                ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[56]302  Void updateContextTables     ( SliceType eSliceType, Int iQp, Bool bExecuteFinish )   { m_pcEntropyCoderIf->updateContextTables( eSliceType, iQp, bExecuteFinish );     }
303  Void updateContextTables     ( SliceType eSliceType, Int iQp )                        { m_pcEntropyCoderIf->updateContextTables( eSliceType, iQp, true );               }
304  Void writeTileMarker              ( UInt uiTileIdx, UInt uiBitsUsed ) { m_pcEntropyCoderIf->writeTileMarker( uiTileIdx, uiBitsUsed ); }
[2]305 
[56]306  Void encodeAPSInitInfo          (TComAPS* pcAPS) {m_pcEntropyCoderIf->codeAPSInitInfo(pcAPS);}
307  Void encodeFinish               (Bool bEnd) {m_pcEntropyCoderIf->codeFinish(bEnd);}
308  Void encodeScalingList       ( TComScalingList* scalingList );
309  Void encodeDFParams          (TComAPS* pcAPS);
[189]310 
311#if RWTH_SDC_DLT_B0036
312  Void encodeSDCFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
313  Void encodeSDCResidualData  ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
314  Void encodeSDCPredMode   ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
315#endif
[56]316
[2]317private:
[56]318#if UNIFIED_TRANSFORM_TREE
319  Void xEncodeTransform        ( TComDataCU* pcCU,UInt offsetLumaOffset, UInt offsetChroma, UInt uiAbsPartIdx, UInt absTUPartIdx, UInt uiDepth, UInt width, UInt height, UInt uiTrIdx, UInt uiInnerQuadIdx, UInt& uiYCbfFront3, UInt& uiUCbfFront3, UInt& uiVCbfFront3, Bool& bCodeDQP );
320#else
321  Void xEncodeTransformSubdiv  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt absTUPartIdx, UInt uiDepth, UInt uiInnerQuadIdx, UInt& uiYCbfFront3, UInt& uiUCbfFront3, UInt& uiVCbfFront3 );
322  Void xEncodeCoeff            ( TComDataCU* pcCU, UInt uiLumaOffset, UInt uiChromaOffset, UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, UInt uiTrIdx, UInt uiCurrTrIdx, Bool& bCodeDQP );
323#endif // !UNIFIED_TRANSFORM_TREE
[2]324public:
[56]325  Void encodeCoeff             ( TComDataCU* pcCU,                 UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, Bool& bCodeDQP );
[2]326 
[56]327  Void encodeCoeffNxN         ( TComDataCU* pcCU, TCoeff* pcCoeff, UInt uiAbsPartIdx, UInt uiTrWidth, UInt uiTrHeight, UInt uiDepth, TextType eType );
[2]328 
[56]329  Void estimateBit             ( estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, TextType eTType);
[2]330 
331  // ALF-related
332  Void codeAuxCountBit(ALFParam* pAlfParam, Int64* ruiRate);
333  Void codeFiltCountBit(ALFParam* pAlfParam, Int64* ruiRate);
334  Void codeAux (ALFParam* pAlfParam);
335  Void codeFilt (ALFParam* pAlfParam);
336  Int codeFilterCoeff(ALFParam* ALFp);
[56]337  Int writeFilterCodingParams(int minKStart, int minScanVal, int maxScanVal, int kMinTab[]);
338
[2]339  Int writeFilterCoeffs(int sqrFiltLength, int filters_per_group, int pDepthInt[], 
340                        int **FilterCoeff, int kMinTab[]);
341  Int golombEncode(int coeff, int k);
342  Int lengthGolomb(int coeffVal, int k);
[56]343#if SAO_UNIT_INTERLEAVING
344  Void    encodeSaoUnit(Int rx, Int ry, Int compIdx, SAOParam* saoParam, Int repeatedRow);
345  Void    encodeSaoOffset(SaoLcuParam* saoLcuParam);
346  Void    encodeSaoUnitInterleaving(Int rx, Int ry, SAOParam* saoParam, TComDataCU* cu, Int cuAddrInSlice, Int cuAddrUpInSlice, Bool lfCrossSliceBoundaryFlag);
347  Void    encodeSaoParam         (TComAPS*  aps);
348#else
349  Void    encodeSaoOnePart       (SAOParam* pSaoParam, Int iPartIdx, Int iYCbCr);
350  Void    encodeQuadTreeSplitFlag(SAOParam* pSaoParam, Int iPartIdx, Int iYCbCr);
351  Void    encodeSaoParam         (SAOParam* pSaoParam);
[2]352#endif
353
[56]354  static Int countNonZeroCoeffs( TCoeff* pcCoef, UInt uiSize );
355
[2]356};// END CLASS DEFINITION TEncEntropy
357
[56]358//! \}
[2]359
360#endif // __TENCENTROPY__
361
Note: See TracBrowser for help on using the repository browser.