Package lzma.sdk.rangecoder
Class BitTreeEncoder
- java.lang.Object
-
- lzma.sdk.rangecoder.BitTreeEncoder
-
public class BitTreeEncoder extends Object
-
-
Constructor Summary
Constructors Constructor Description BitTreeEncoder(int numBitLevels)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(Encoder rangeEncoder, int symbol)
int
getPrice(int symbol)
void
init()
static void
reverseEncode(short[] Models, int startIndex, Encoder rangeEncoder, int NumBitLevels, int symbol)
void
reverseEncode(Encoder rangeEncoder, int symbol)
int
reverseGetPrice(int symbol)
static int
reverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
-
-
-
Method Detail
-
init
public void init()
-
encode
public void encode(Encoder rangeEncoder, int symbol) throws IOException
- Throws:
IOException
-
reverseEncode
public void reverseEncode(Encoder rangeEncoder, int symbol) throws IOException
- Throws:
IOException
-
getPrice
public int getPrice(int symbol)
-
reverseGetPrice
public int reverseGetPrice(int symbol)
-
reverseGetPrice
public static int reverseGetPrice(short[] Models, int startIndex, int NumBitLevels, int symbol)
-
reverseEncode
public static void reverseEncode(short[] Models, int startIndex, Encoder rangeEncoder, int NumBitLevels, int symbol) throws IOException
- Throws:
IOException
-
-