Class RangeEncoder
java.lang.Object
org.graalvm.shadowed.org.tukaani.xz.rangecoder.RangeCoder
org.graalvm.shadowed.org.tukaani.xz.rangecoder.RangeEncoder
- Direct Known Subclasses:
RangeEncoderToBuffer,RangeEncoderToStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeBit(short[] probs, int index, int bit) voidencodeBitTree(short[] probs, int symbol) voidencodeDirectBits(int value, int count) voidencodeReverseBitTree(short[] probs, int symbol) intfinish()static intgetBitPrice(int prob, int bit) static intgetBitTreePrice(short[] probs, int symbol) static intgetDirectBitsPrice(int count) intstatic intgetReverseBitTreePrice(short[] probs, int symbol) voidreset()Methods inherited from class org.graalvm.shadowed.org.tukaani.xz.rangecoder.RangeCoder
initProbs
-
Constructor Details
-
RangeEncoder
public RangeEncoder()
-
-
Method Details
-
reset
public void reset() -
getPendingSize
public int getPendingSize() -
finish
- Throws:
IOException
-
encodeBit
- Throws:
IOException
-
getBitPrice
public static int getBitPrice(int prob, int bit) -
encodeBitTree
- Throws:
IOException
-
getBitTreePrice
public static int getBitTreePrice(short[] probs, int symbol) -
encodeReverseBitTree
- Throws:
IOException
-
getReverseBitTreePrice
public static int getReverseBitTreePrice(short[] probs, int symbol) -
encodeDirectBits
- Throws:
IOException
-
getDirectBitsPrice
public static int getDirectBitsPrice(int count)
-