Class Encoder

java.lang.Object
SevenZip.Compression.RangeCoder.Encoder

public class Encoder extends Object
  • Field Details

  • Constructor Details

    • Encoder

      public Encoder()
  • Method Details

    • SetStream

      public void SetStream(OutputStream stream)
    • ReleaseStream

      public void ReleaseStream()
    • Init

      public void Init()
    • FlushData

      public void FlushData() throws IOException
      Throws:
      IOException
    • FlushStream

      public void FlushStream() throws IOException
      Throws:
      IOException
    • ShiftLow

      public void ShiftLow() throws IOException
      Throws:
      IOException
    • EncodeDirectBits

      public void EncodeDirectBits(int v, int numTotalBits) throws IOException
      Throws:
      IOException
    • GetProcessedSizeAdd

      public long GetProcessedSizeAdd()
    • InitBitModels

      public static void InitBitModels(short[] probs)
    • Encode

      public void Encode(short[] probs, int index, int symbol) throws IOException
      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)