Package SevenZip.Compression.RangeCoder
Class BitTreeEncoder
java.lang.Object
SevenZip.Compression.RangeCoder.BitTreeEncoder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
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, Encoder rangeEncoder, int NumBitLevels, int symbol) throws IOException - Throws:
IOException
-