public abstract class RangeEncoder extends RangeCoder
Constructor and Description |
---|
RangeEncoder() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBit(short[] probs,
int index,
int bit) |
void |
encodeBitTree(short[] probs,
int symbol) |
void |
encodeDirectBits(int value,
int count) |
void |
encodeReverseBitTree(short[] probs,
int symbol) |
int |
finish() |
static int |
getBitPrice(int prob,
int bit) |
static int |
getBitTreePrice(short[] probs,
int symbol) |
static int |
getDirectBitsPrice(int count) |
int |
getPendingSize() |
static int |
getReverseBitTreePrice(short[] probs,
int symbol) |
void |
reset() |
initProbs
public void reset()
public int getPendingSize()
public int finish() throws java.io.IOException
java.io.IOException
public void encodeBit(short[] probs, int index, int bit) throws java.io.IOException
java.io.IOException
public static int getBitPrice(int prob, int bit)
public void encodeBitTree(short[] probs, int symbol) throws java.io.IOException
java.io.IOException
public static int getBitTreePrice(short[] probs, int symbol)
public void encodeReverseBitTree(short[] probs, int symbol) throws java.io.IOException
java.io.IOException
public static int getReverseBitTreePrice(short[] probs, int symbol)
public void encodeDirectBits(int value, int count) throws java.io.IOException
java.io.IOException
public static int getDirectBitsPrice(int count)