java.lang.Object
org.glassfish.grizzly.compression.lzma.impl.rangecoder.BitTreeEncoder

public class BitTreeEncoder extends Object
BitTreeEncoder
Author:
Igor Pavlov
  • Constructor Details

    • BitTreeEncoder

      public BitTreeEncoder(int numBitLevels)
  • Method Details

    • init

      public void init()
    • encode

      public void encode(RangeEncoder rangeEncoder, int symbol) throws IOException
      Throws:
      IOException
    • reverseEncode

      public void reverseEncode(RangeEncoder rangeEncoder, int symbol) throws IOException
      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, RangeEncoder rangeEncoder, int NumBitLevels, int symbol) throws IOException
      Throws:
      IOException