Ignore:
Timestamp:
11 May 2012, 21:20:17 (13 years ago)
Author:
hschwarz
Message:

updated trunk (move to HM6.1)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibDecoder/TDecBinCoderCABAC.h

    r5 r56  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license.
     4 * granted under this license. 
    55 *
    6  * Copyright (c) 2010-2011, ISO/IEC
     6 * Copyright (c) 2010-2012, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    1515 *    this list of conditions and the following disclaimer in the documentation
    1616 *    and/or other materials provided with the distribution.
    17  *  * Neither the name of the ISO/IEC nor the names of its contributors may
     17 *  * Neither the name of the ITU/ISO/IEC nor the names of its contributors may
    1818 *    be used to endorse or promote products derived from this software without
    1919 *    specific prior written permission.
     
    3232 */
    3333
    34 
    35 
    3634/** \file     TDecBinCoderCABAC.h
    3735    \brief    binary entropy decoder of CABAC
     
    4139#define __TDEC_BIN_CODER_CABAC__
    4240
    43 #include "../TLibCommon/TComCABACTables.h"
     41#include "TLibCommon/TComCABACTables.h"
    4442#include "TDecBinCoder.h"
    4543
     44//! \ingroup TLibDecoder
     45//! \{
    4646
    4747class TDecBinCABAC : public TDecBinIf
     
    5050  TDecBinCABAC ();
    5151  virtual ~TDecBinCABAC();
    52 
    53   Void  init              ( TComBitstream* pcTComBitstream );
     52 
     53  Void  init              ( TComInputBitstream* pcTComBitstream );
    5454  Void  uninit            ();
    55 
     55 
    5656  Void  start             ();
    5757  Void  finish            ();
    58 
     58#if OL_FLUSH
     59  Void  flush             ();
     60#endif
     61 
    5962  Void  decodeBin         ( UInt& ruiBin, ContextModel& rcCtxModel );
    6063  Void  decodeBinEP       ( UInt& ruiBin                           );
     64  Void  decodeBinsEP      ( UInt& ruiBin, Int numBins              );
    6165  Void  decodeBinTrm      ( UInt& ruiBin                           );
     66 
     67  Void  resetBac          ();
     68#if BURST_IPCM
     69  Void  decodeNumSubseqIPCM( Int& numSubseqIPCM ) ;
     70#endif
     71  Void  decodePCMAlignBits();
     72  Void  xReadPCMCode      ( UInt uiLength, UInt& ruiCode );
     73 
     74  Void  copyState         ( TDecBinIf* pcTDecBinIf );
     75  TDecBinCABAC* getTDecBinCABAC()  { return this; }
     76#if !OL_FLUSH_ALIGN
     77  Int   getBitsReadAhead() { return -m_bitsNeeded; }
     78#endif
    6279
    6380private:
    64   Void  xReadBit          ( UInt& ruiVal );
    65 
    66 private:
    67   TComBitstream*      m_pcTComBitstream;
     81  TComInputBitstream* m_pcTComBitstream;
    6882  UInt                m_uiRange;
    6983  UInt                m_uiValue;
     84#if OL_FLUSH && !OL_FLUSH_ALIGN
     85  UInt                m_uiLastByte;
     86#endif
     87  Int                 m_bitsNeeded;
    7088};
    7189
     90//! \}
    7291
    7392#endif
Note: See TracChangeset for help on using the changeset viewer.