source: 3DVCSoftware/branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibEncoder/TEncEntropy.h

Last change on this file was 213, checked in by mitsubishi-htm, 12 years ago

A final release, as planned

  • Migrate to HTM 5.1
  • For VC project files, only VC9 file is updated
  • To be used as an additional anchor for CE1.h for 3rd JCTVC meeting at Geneva
  • Property svn:eol-style set to native
File size: 18.3 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
[213]78#if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046
[100]79  virtual Void  codeVPS                 ( TComVPS* pcVPS )                                      = 0;
[77]80#endif
[100]81
[56]82#if HHI_MPI
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;
[213]117#if LGE_ILLUCOMP_B0045
118  virtual Void codeICFlag        ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
119#endif
[166]120#if FORCE_REF_VSP==1
121  virtual Void codeVspFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
122#endif
[2]123  virtual Void codeMergeFlag     ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
124  virtual Void codeMergeIndex    ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[5]125#if HHI_INTER_VIEW_RESIDUAL_PRED
[2]126  virtual Void codeResPredFlag   ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[5]127#endif
[2]128  virtual Void codeSplitFlag     ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
129 
130  virtual Void codePartSize      ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth ) = 0;
131  virtual Void codePredMode      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
132 
[213]133#if RWTH_SDC_DLT_B0036
134  virtual Void codeSDCFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
135  virtual Void codeSDCResidualData  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiSegment ) = 0;
136  virtual Void codeSDCPredMode          ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
137#endif
138 
[56]139#if BURST_IPCM
140  virtual Void codeIPCMInfo      ( TComDataCU* pcCU, UInt uiAbsPartIdx, Int numIPCM, Bool firstIPCMFlag) = 0;
141#else
142  virtual Void codeIPCMInfo      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
143#endif
144
[2]145  virtual Void codeTransformSubdivFlag( UInt uiSymbol, UInt uiCtx ) = 0;
146  virtual Void codeQtCbf         ( TComDataCU* pcCU, UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth ) = 0;
147  virtual Void codeQtRootCbf     ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
148  virtual Void codeIntraDirLumaAng( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
149 
150  virtual Void codeIntraDirChroma( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
151  virtual Void codeInterDir      ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
152  virtual Void codeRefFrmIdx     ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList )      = 0;
153  virtual Void codeMvd           ( TComDataCU* pcCU, UInt uiAbsPartIdx, RefPicList eRefList )      = 0;
154  virtual Void codeDeltaQP       ( TComDataCU* pcCU, UInt uiAbsPartIdx ) = 0;
[56]155  virtual Void codeCoeffNxN      ( TComDataCU* pcCU, TCoeff* pcCoef, UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt uiDepth, TextType eTType ) = 0;
[2]156 
157  virtual Void codeAlfFlag          ( UInt uiCode ) = 0;
158  virtual Void codeAlfUvlc          ( UInt uiCode ) = 0;
159  virtual Void codeAlfSvlc          ( Int   iCode ) = 0;
[56]160#if LCU_SYNTAX_ALF
161  virtual Void codeAlfFixedLengthIdx( UInt idx, UInt numFilterSetsInBuffer) = 0;
162  virtual Void codeAPSAlflag(UInt uiCode) = 0;
163#endif
164  /// set slice granularity
165  virtual Void setSliceGranularity(Int iSliceGranularity) = 0;
166
167  /// get slice granularity
168  virtual Int  getSliceGranularity()                      = 0;
169
[2]170  virtual Void codeAlfCtrlFlag      ( UInt uiSymbol ) = 0;
[56]171  virtual Void codeSaoFlag          ( UInt uiCode ) = 0;
172  virtual Void codeSaoUvlc          ( UInt uiCode ) = 0;
173  virtual Void codeSaoSvlc          ( Int   iCode ) = 0;
174#if SAO_UNIT_INTERLEAVING
175  virtual Void codeSaoRun          ( UInt   uiCode, UInt uiMaxValue  ) = 0;
176  virtual Void codeSaoMergeLeft    ( UInt   uiCode, UInt uiCompIdx  ) = 0;
177  virtual Void codeSaoMergeUp      ( UInt   uiCode) = 0;
178  virtual Void codeSaoTypeIdx      ( UInt   uiCode) = 0;
179  virtual Void codeSaoUflc         ( UInt   uiCode) = 0;
[2]180#endif
[56]181  virtual Void estBit               (estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, TextType eTType) = 0;
[2]182 
[56]183  virtual Void updateContextTables ( SliceType eSliceType, Int iQp, Bool bExecuteFinish )   = 0;
184  virtual Void updateContextTables ( SliceType eSliceType, Int iQp )   = 0;
185  virtual Void writeTileMarker             ( UInt uiTileIdx, UInt uiBitsUsed ) = 0;
186
187  virtual Void codeAPSInitInfo  (TComAPS* pcAPS)= 0;
188  virtual Void codeFinish       (Bool bEnd)= 0;
189
190  virtual Void codeDFFlag (UInt uiCode, const Char *pSymbolName) = 0;
191  virtual Void codeDFSvlc (Int iCode, const Char *pSymbolName)   = 0;
192
[2]193  virtual ~TEncEntropyIf() {}
[56]194
[2]195};
196
197/// entropy encoder class
198class TEncEntropy
199{
[56]200private:
201  UInt    m_uiBakAbsPartIdx;
202  UInt    m_uiBakChromaOffset;
203#if UNIFIED_TRANSFORM_TREE
204  UInt    m_bakAbsPartIdxCU;
205#endif
206
[2]207public:
208  Void    setEntropyCoder           ( TEncEntropyIf* e, TComSlice* pcSlice );
209  Void    setBitstream              ( TComBitIf* p )          { m_pcEntropyCoderIf->setBitstream(p);  }
210  Void    resetBits                 ()                        { m_pcEntropyCoderIf->resetBits();      }
211  Void    resetCoeffCost            ()                        { m_pcEntropyCoderIf->resetCoeffCost(); }
212  UInt    getNumberOfWrittenBits    ()                        { return m_pcEntropyCoderIf->getNumberOfWrittenBits(); }
213  UInt    getCoeffCost              ()                        { return  m_pcEntropyCoderIf->getCoeffCost(); }
214  Void    resetEntropy              ()                        { m_pcEntropyCoderIf->resetEntropy();  }
[56]215#if CABAC_INIT_FLAG
216  Void    determineCabacInitIdx     ()                        { m_pcEntropyCoderIf->determineCabacInitIdx(); }
217#endif
[2]218 
219  Void    encodeSliceHeader         ( TComSlice* pcSlice );
[56]220  Void    encodeTileMarkerFlag       (TComSlice* pcSlice) {m_pcEntropyCoderIf->codeTileMarkerFlag(pcSlice);}
221#if TILES_WPP_ENTRY_POINT_SIGNALLING
222  Void    encodeTilesWPPEntryPoint( TComSlice* pSlice );
223#else
224  Void    encodeSliceHeaderSubstreamTable( TComSlice* pcSlice );
225#endif
[2]226  Void    encodeTerminatingBit      ( UInt uiIsLast );
227  Void    encodeSliceFinish         ();
[56]228#if OL_FLUSH
229  Void    encodeFlush               ();
230  Void    encodeStart               ();
231#endif
232#if LCU_SYNTAX_ALF
233  Void encodeAlfFlag(UInt code) {m_pcEntropyCoderIf->codeAlfFlag(code);}
234  Void encodeAlfStoredFilterSetIdx(UInt idx, UInt numFilterSetsInBuffer);
235  Void encodeAlfFixedLengthRun(UInt run, UInt rx, UInt numLCUInWidth);
236  Void encodeAlfParam(AlfParamSet* pAlfParamSet, Bool bSentInAPS = true, Int firstLCUAddr = 0, Bool alfAcrossSlice= true);
237  Void encodeAlfParamSet(AlfParamSet* pAlfParamSet, Int numLCUInWidth, Int numLCU, Int firstLCUAddr, Bool alfAcrossSlice, Int startCompIdx, Int endCompIdx);
238  Bool getAlfRepeatRowFlag(Int compIdx, AlfParamSet* pAlfParamSet, Int lcuIdx, Int lcuPos, Int startlcuPosX, Int endlcuPosX, Int numLCUInWidth);
239  Int  getAlfRun(Int compIdx, AlfParamSet* pAlfParamSet, Int lcuIdxInSlice, Int lcuPos, Int startlcuPosX, Int endlcuPosX);
240  Void encodeAPSAlfFlag(UInt code) {m_pcEntropyCoderIf->codeAPSAlflag(code);}
241#endif 
[2]242  Void encodeAlfParam(ALFParam* pAlfParam);
243 
244  TEncEntropyIf*      m_pcEntropyCoderIf;
245 
246public:
[213]247#if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046
[100]248  Void encodeVPS               ( TComVPS* pcVPS);
[77]249#endif
[2]250  // SPS
[56]251#if HHI_MPI
252  Void encodeSPS               ( TComSPS* pcSPS, Bool bIsDepth );
253#else
[2]254  Void encodeSPS               ( TComSPS* pcSPS );
[56]255#endif
[2]256  Void encodePPS               ( TComPPS* pcPPS );
257  void encodeSEI(const SEI&);
258  Bool getAlfCtrl() {return m_pcEntropyCoderIf->getAlfCtrl();}
259  UInt getMaxAlfCtrlDepth() {return m_pcEntropyCoderIf->getMaxAlfCtrlDepth();}
260  Void setAlfCtrl(Bool bAlfCtrl) {m_pcEntropyCoderIf->setAlfCtrl(bAlfCtrl);}
261  Void setMaxAlfCtrlDepth(UInt uiMaxAlfCtrlDepth) {m_pcEntropyCoderIf->setMaxAlfCtrlDepth(uiMaxAlfCtrlDepth);}
262 
263  Void encodeSplitFlag         ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[213]264#if LGE_ILLUCOMP_B0045
265  Void encodeICFlag            ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
266#endif
[2]267  Void encodeSkipFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[166]268#if FORCE_REF_VSP==1
269  Void encodeVspFlag           ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
270#endif
[2]271  Void encodePUWise       ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
272  Void encodeInterDirPU   ( TComDataCU* pcSubCU, UInt uiAbsPartIdx  );
273  Void encodeRefFrmIdxPU  ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
274  Void encodeMvdPU        ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
275  Void encodeMVPIdxPU     ( TComDataCU* pcSubCU, UInt uiAbsPartIdx, RefPicList eRefList );
276  Void encodeMergeFlag    ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx );
277  Void encodeMergeIndex   ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false );
[5]278#if HHI_INTER_VIEW_RESIDUAL_PRED
[2]279  Void encodeResPredFlag  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false );
[5]280#endif
[2]281  Void encodeAlfCtrlFlag       ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[56]282
283  /// set slice granularity
284  Void setSliceGranularity (Int iSliceGranularity) {m_pcEntropyCoderIf->setSliceGranularity(iSliceGranularity);}
285
286  /// encode ALF CU control flag
287  Void encodeAlfCtrlFlag(UInt uiFlag);
288 
289  Void encodeApsExtensionFlag() {m_pcEntropyCoderIf->codeApsExtensionFlag();};
290
291  Void encodeAlfCtrlParam(AlfCUCtrlInfo& cAlfParam, Int iNumCUsInPic);
292
[2]293  Void encodePredMode          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
294  Void encodePartSize          ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[56]295  Void encodeIPCMInfo          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[2]296  Void encodePredInfo          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
297  Void encodeIntraDirModeLuma  ( TComDataCU* pcCU, UInt uiAbsPartIdx );
298 
299  Void encodeIntraDirModeChroma( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
300 
[56]301#if !UNIFIED_TRANSFORM_TREE
[2]302  Void encodeTransformIdx      ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiDepth, Bool bRD = false );
[56]303#endif
[2]304  Void encodeTransformSubdivFlag( UInt uiSymbol, UInt uiCtx );
305  Void encodeQtCbf             ( TComDataCU* pcCU, UInt uiAbsPartIdx, TextType eType, UInt uiTrDepth );
306  Void encodeQtRootCbf         ( TComDataCU* pcCU, UInt uiAbsPartIdx );
307  Void encodeQP                ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
[56]308  Void updateContextTables     ( SliceType eSliceType, Int iQp, Bool bExecuteFinish )   { m_pcEntropyCoderIf->updateContextTables( eSliceType, iQp, bExecuteFinish );     }
309  Void updateContextTables     ( SliceType eSliceType, Int iQp )                        { m_pcEntropyCoderIf->updateContextTables( eSliceType, iQp, true );               }
310  Void writeTileMarker              ( UInt uiTileIdx, UInt uiBitsUsed ) { m_pcEntropyCoderIf->writeTileMarker( uiTileIdx, uiBitsUsed ); }
[2]311 
[56]312  Void encodeAPSInitInfo          (TComAPS* pcAPS) {m_pcEntropyCoderIf->codeAPSInitInfo(pcAPS);}
313  Void encodeFinish               (Bool bEnd) {m_pcEntropyCoderIf->codeFinish(bEnd);}
314  Void encodeScalingList       ( TComScalingList* scalingList );
315  Void encodeDFParams          (TComAPS* pcAPS);
[213]316 
317#if RWTH_SDC_DLT_B0036
318  Void encodeSDCFlag          ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
319  Void encodeSDCResidualData  ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
320  Void encodeSDCPredMode   ( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD = false );
321#endif
[56]322
[2]323private:
[56]324#if UNIFIED_TRANSFORM_TREE
325  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 );
326#else
327  Void xEncodeTransformSubdiv  ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt absTUPartIdx, UInt uiDepth, UInt uiInnerQuadIdx, UInt& uiYCbfFront3, UInt& uiUCbfFront3, UInt& uiVCbfFront3 );
328  Void xEncodeCoeff            ( TComDataCU* pcCU, UInt uiLumaOffset, UInt uiChromaOffset, UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, UInt uiTrIdx, UInt uiCurrTrIdx, Bool& bCodeDQP );
329#endif // !UNIFIED_TRANSFORM_TREE
[2]330public:
[56]331  Void encodeCoeff             ( TComDataCU* pcCU,                 UInt uiAbsPartIdx, UInt uiDepth, UInt uiWidth, UInt uiHeight, Bool& bCodeDQP );
[2]332 
[56]333  Void encodeCoeffNxN         ( TComDataCU* pcCU, TCoeff* pcCoeff, UInt uiAbsPartIdx, UInt uiTrWidth, UInt uiTrHeight, UInt uiDepth, TextType eType );
[2]334 
[56]335  Void estimateBit             ( estBitsSbacStruct* pcEstBitsSbac, Int width, Int height, TextType eTType);
[2]336 
337  // ALF-related
338  Void codeAuxCountBit(ALFParam* pAlfParam, Int64* ruiRate);
339  Void codeFiltCountBit(ALFParam* pAlfParam, Int64* ruiRate);
340  Void codeAux (ALFParam* pAlfParam);
341  Void codeFilt (ALFParam* pAlfParam);
342  Int codeFilterCoeff(ALFParam* ALFp);
[56]343  Int writeFilterCodingParams(int minKStart, int minScanVal, int maxScanVal, int kMinTab[]);
344
[2]345  Int writeFilterCoeffs(int sqrFiltLength, int filters_per_group, int pDepthInt[], 
346                        int **FilterCoeff, int kMinTab[]);
347  Int golombEncode(int coeff, int k);
348  Int lengthGolomb(int coeffVal, int k);
[56]349#if SAO_UNIT_INTERLEAVING
350  Void    encodeSaoUnit(Int rx, Int ry, Int compIdx, SAOParam* saoParam, Int repeatedRow);
351  Void    encodeSaoOffset(SaoLcuParam* saoLcuParam);
352  Void    encodeSaoUnitInterleaving(Int rx, Int ry, SAOParam* saoParam, TComDataCU* cu, Int cuAddrInSlice, Int cuAddrUpInSlice, Bool lfCrossSliceBoundaryFlag);
353  Void    encodeSaoParam         (TComAPS*  aps);
354#else
355  Void    encodeSaoOnePart       (SAOParam* pSaoParam, Int iPartIdx, Int iYCbCr);
356  Void    encodeQuadTreeSplitFlag(SAOParam* pSaoParam, Int iPartIdx, Int iYCbCr);
357  Void    encodeSaoParam         (SAOParam* pSaoParam);
[2]358#endif
359
[56]360  static Int countNonZeroCoeffs( TCoeff* pcCoef, UInt uiSize );
361
[2]362};// END CLASS DEFINITION TEncEntropy
363
[56]364//! \}
[2]365
366#endif // __TENCENTROPY__
367
Note: See TracBrowser for help on using the repository browser.