Package SevenZip.Compression.RangeCoder

Examples of SevenZip.Compression.RangeCoder.BitTreeEncoder


 
  public Encoder() {
    for (int i = 0; i < kNumOpts; i++)
      this._optimum[i] = new Optimal();
    for (int i = 0; i < Base.kNumLenToPosStates; i++)
      this._posSlotEncoder[i] = new BitTreeEncoder(Base.kNumPosSlotBits);
  }
View Full Code Here


          i - baseVal);
    }
   
    for (int lenToPosState = 0; lenToPosState < Base.kNumLenToPosStates; lenToPosState++) {
      int posSlot;
      BitTreeEncoder encoder = this._posSlotEncoder[lenToPosState];
     
      int st = (lenToPosState << Base.kNumPosSlotBits);
      for (posSlot = 0; posSlot < this._distTableSize; posSlot++)
        this._posSlotPrices[st + posSlot] = encoder.GetPrice(posSlot);
      for (posSlot = Base.kEndPosModelIndex; posSlot < this._distTableSize; posSlot++)
        this._posSlotPrices[st + posSlot] += (((posSlot >> 1) - 1) - Base.kNumAlignBits) << SevenZip.Compression.RangeCoder.Encoder.kNumBitPriceShiftBits;
     
      int st2 = lenToPosState * Base.kNumFullDistances;
      int i;
View Full Code Here

TOP

Related Classes of SevenZip.Compression.RangeCoder.BitTreeEncoder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.