Module org.glassfish.grizzly
Class RangeEncoder
java.lang.Object
org.glassfish.grizzly.compression.lzma.impl.rangecoder.RangeEncoder
RangeEncoder
- Author:
- Igor Pavlov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(short[] probs, int index, int symbol) void
encodeDirectBits
(int v, int numTotalBits) 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
setBuffer
(Buffer dst, MemoryManager mm) void
shiftLow()
-
Field Details
-
kNumBitPriceShiftBits
public static final int kNumBitPriceShiftBits- See Also:
-
-
Constructor Details
-
RangeEncoder
public RangeEncoder()
-
-
Method Details
-
setBuffer
-
releaseBuffer
-
init
public void init() -
flushData
- 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)
-