public final class FastArithmeticDecoderPlus extends Object implements FastArithmeticDecoderI
Date: 1/15/12
Time: 11:02 AM| Constructor and Description |
|---|
FastArithmeticDecoderPlus(int numSymbols) |
| Modifier and Type | Method and Description |
|---|---|
int |
decode(it.unimi.dsi.io.InputBitStream ibs)
Decodes a symbol.
|
void |
flush(it.unimi.dsi.io.InputBitStream ibs)
Flushes (reads) the disambiguating bits.
|
void |
flush(it.unimi.dsi.io.InputBitStream input,
int delegateIndex) |
long |
getWindow()
Returns the current bit stream window.
|
void |
reposition(it.unimi.dsi.io.InputBitStream input)
Reposition the input stream.
|
void |
reposition(it.unimi.dsi.io.InputBitStream input,
int delegateIndex) |
void |
reset()
Resets the decoder before decoding a new message.
|
public void reset()
FastArithmeticDecoderIreset in interface FastArithmeticDecoderIpublic int decode(it.unimi.dsi.io.InputBitStream ibs)
throws IOException
FastArithmeticDecoderIdecode in interface FastArithmeticDecoderIibs - the input stream.IOException - if ibs does.public void flush(it.unimi.dsi.io.InputBitStream ibs)
throws IOException
FastArithmeticDecoderIThis method must be called when all symbols have been decoded. After
the call, exactly #BITS excess bits will be present in the
current window of the decoder. You can get them using FastArithmeticDecoderI.getWindow();
usually you will then unget them to the bit stream.
flush in interface FastArithmeticDecoderIibs - the input stream.IOException - if ibs does.public void flush(it.unimi.dsi.io.InputBitStream input,
int delegateIndex)
throws IOException
IOExceptionpublic long getWindow()
FastArithmeticDecoderIgetWindow in interface FastArithmeticDecoderI#BITS bits.public void reposition(it.unimi.dsi.io.InputBitStream input)
throws IOException
FastArithmeticDecoderIreposition in interface FastArithmeticDecoderIIOExceptionpublic void reposition(it.unimi.dsi.io.InputBitStream input,
int delegateIndex)
throws IOException
IOExceptionCopyright © 2017 Campagne Laboratory. All rights reserved.