public class Decoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
Code |
private static int |
kBitModelTotal |
private static int |
kNumBitModelTotalBits |
private static int |
kNumMoveBits |
private static int |
kTopMask |
private int |
Range |
private java.io.InputStream |
Stream |
Constructor and Description |
---|
Decoder() |
Modifier and Type | Method and Description |
---|---|
int |
decodeBit(short[] probs,
int index) |
int |
decodeDirectBits(int numTotalBits) |
void |
init() |
static void |
initBitModels(short[] probs) |
void |
releaseStream() |
void |
setStream(java.io.InputStream stream) |
private static final int kTopMask
private static final int kNumBitModelTotalBits
private static final int kBitModelTotal
private static final int kNumMoveBits
private int Range
private int Code
private java.io.InputStream Stream
public final void setStream(java.io.InputStream stream)
public final void releaseStream()
public final void init() throws java.io.IOException
java.io.IOException
public final int decodeDirectBits(int numTotalBits) throws java.io.IOException
java.io.IOException
public int decodeBit(short[] probs, int index) throws java.io.IOException
java.io.IOException
public static void initBitModels(short[] probs)