Package SevenZip.Compression.RangeCoder
Class Encoder
java.lang.Object
SevenZip.Compression.RangeCoder.Encoder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode
(short[] probs, int index, int symbol) void
EncodeDirectBits
(int v, int numTotalBits) void
void
static int
GetPrice
(int Prob, int symbol) static int
GetPrice0
(int Prob) static int
GetPrice1
(int Prob) long
void
Init()
static void
InitBitModels
(short[] probs) void
void
SetStream
(OutputStream stream) void
ShiftLow()
-
Field Details
-
kNumBitPriceShiftBits
public static final int kNumBitPriceShiftBits- See Also:
-
-
Constructor Details
-
Encoder
public Encoder()
-
-
Method Details
-
SetStream
-
ReleaseStream
public void ReleaseStream() -
Init
public void Init() -
FlushData
- Throws:
IOException
-
FlushStream
- Throws:
IOException
-
ShiftLow
- Throws:
IOException
-
EncodeDirectBits
- Throws:
IOException
-
GetProcessedSizeAdd
public long GetProcessedSizeAdd() -
InitBitModels
public static void InitBitModels(short[] probs) -
Encode
- Throws:
IOException
-
GetPrice
public static int GetPrice(int Prob, int symbol) -
GetPrice0
public static int GetPrice0(int Prob) -
GetPrice1
public static int GetPrice1(int Prob)
-