%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/yacy/libbuild/J7Zip-modified/src/SevenZip/Compression/RangeCoder/
Upload File :
Create Path :
Current File : //home/waritko/yacy/libbuild/J7Zip-modified/src/SevenZip/Compression/RangeCoder/BitDecoder.java

package SevenZip.Compression.RangeCoder;

import SevenZip.Compression.RangeCoder.Decoder;


public class BitDecoder extends BitModel
{
    public BitDecoder(int num) {
        super(num);
    }
  public int Decode(Decoder decoder)  throws java.io.IOException
  {
    int newBound = (decoder.Range >>> kNumBitModelTotalBits) * this.Prob;
    if ((decoder.Code ^ 0x80000000) < (newBound ^ 0x80000000))
    {
      decoder.Range = newBound;
      this.Prob += (kBitModelTotal - this.Prob) >>> numMoveBits;
      if ((decoder.Range & kTopMask) == 0)
      {
        decoder.Code = (decoder.Code << 8) | decoder.bufferedStream.read();
        decoder.Range <<= 8;
      }
      return 0;
    }
    else
    {
      decoder.Range -= newBound;
      decoder.Code -= newBound;
      this.Prob -= (this.Prob) >>> numMoveBits;
      if ((decoder.Range & kTopMask) == 0)
      {
        decoder.Code = (decoder.Code << 8) | decoder.bufferedStream.read();
        decoder.Range <<= 8;
      }
      return 1;
    }
  }
}

Zerion Mini Shell 1.0