Ignore:
Timestamp:
13 Aug 2015, 17:38:13 (9 years ago)
Author:
tech
Message:

Merged 14.1-update-dev1@1312.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncBinCoderCABAC.h

    r1179 r1313  
    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-2015, ITU/ISO/IEC
     6 * Copyright (c) 2010-2015, ITU/ISO/IEC
    77 * All rights reserved.
    88 *
     
    3636*/
    3737
    38 #ifndef __TENC_BIN_CODER_CABAC__
    39 #define __TENC_BIN_CODER_CABAC__
     38#ifndef __TENCBINCODERCABAC__
     39#define __TENCBINCODERCABAC__
    4040
    4141#include "TLibCommon/TComCABACTables.h"
     
    5050  TEncBinCABAC ();
    5151  virtual ~TEncBinCABAC();
    52  
     52
    5353  Void  init              ( TComBitIf* pcTComBitIf );
    5454  Void  uninit            ();
    55  
     55
    5656  Void  start             ();
    5757  Void  finish            ();
    58   Void  copyState         ( TEncBinIf* pcTEncBinIf );
     58  Void  copyState         ( const TEncBinIf* pcTEncBinIf );
    5959  Void  flush            ();
    6060
     
    6262  Void  encodePCMAlignBits();
    6363  Void  xWritePCMCode     ( UInt uiCode, UInt uiLength );
    64  
     64
    6565  Void  resetBits         ();
    6666  UInt  getNumWrittenBits ();
    67  
     67
    6868  Void  encodeBin         ( UInt  binValue,  ContextModel& rcCtxModel );
    6969  Void  encodeBinEP       ( UInt  binValue                            );
    7070  Void  encodeBinsEP      ( UInt  binValues, Int numBins              );
    7171  Void  encodeBinTrm      ( UInt  binValue                            );
    72  
     72
     73  Void  align             ();
     74  Void  encodeAlignedBinsEP( UInt  binValues, Int numBins             );
     75
    7376  TEncBinCABAC* getTEncBinCABAC()  { return this; }
    74  
     77  const TEncBinCABAC* getTEncBinCABAC() const { return this; }
     78
    7579  Void  setBinsCoded              ( UInt uiVal )  { m_uiBinsCoded = uiVal;               }
    7680  UInt  getBinsCoded              ()              { return m_uiBinsCoded;                }
    7781  Void  setBinCountingEnableFlag  ( Bool bFlag )  { m_binCountIncrement = bFlag ? 1 : 0; }
    7882  Bool  getBinCountingEnableFlag  ()              { return m_binCountIncrement != 0;     }
    79  
     83
    8084#if FAST_BIT_EST
    8185protected:
     
    8589  Void testAndWriteOut();
    8690  Void writeOut();
    87  
     91
    8892  TComBitIf*          m_pcTComBitIf;
    8993  UInt                m_uiLow;
Note: See TracChangeset for help on using the changeset viewer.