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

public abstract class RangeEncoder extends RangeCoder
  • Constructor Details

    • RangeEncoder

      public RangeEncoder()
  • Method Details

    • reset

      public void reset()
    • getPendingSize

      public int getPendingSize()
    • finish

      public int finish() throws IOException
      Throws:
      IOException
    • encodeBit

      public void encodeBit(short[] probs, int index, int bit) throws IOException
      Throws:
      IOException
    • getBitPrice

      public static int getBitPrice(int prob, int bit)
    • encodeBitTree

      public void encodeBitTree(short[] probs, int symbol) throws IOException
      Throws:
      IOException
    • getBitTreePrice

      public static int getBitTreePrice(short[] probs, int symbol)
    • encodeReverseBitTree

      public void encodeReverseBitTree(short[] probs, int symbol) throws IOException
      Throws:
      IOException
    • getReverseBitTreePrice

      public static int getReverseBitTreePrice(short[] probs, int symbol)
    • encodeDirectBits

      public void encodeDirectBits(int value, int count) throws IOException
      Throws:
      IOException
    • getDirectBitsPrice

      public static int getDirectBitsPrice(int count)