Module org.glassfish.grizzly
Class BitTreeEncoder
java.lang.Object
org.glassfish.grizzly.compression.lzma.impl.rangecoder.BitTreeEncoder
BitTreeEncoder
- Author:
- Igor Pavlov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(RangeEncoder rangeEncoder, int symbol) int
getPrice
(int symbol) void
init()
static void
reverseEncode
(short[] Models, int startIndex, RangeEncoder rangeEncoder, int NumBitLevels, int symbol) void
reverseEncode
(RangeEncoder rangeEncoder, int symbol) int
reverseGetPrice
(int symbol) static int
reverseGetPrice
(short[] Models, int startIndex, int NumBitLevels, int symbol)
-
Constructor Details
-
BitTreeEncoder
public BitTreeEncoder(int numBitLevels)
-
-
Method Details
-
init
public void init() -
encode
- Throws:
IOException
-
reverseEncode
- 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, RangeEncoder rangeEncoder, int NumBitLevels, int symbol) throws IOException - Throws:
IOException
-