Package SevenZip.Compression.RangeCoder

Examples of SevenZip.Compression.RangeCoder.BitTreeEncoder


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


    }

    for (int lenToPosState = 0; lenToPosState < Base.kNumLenToPosStates; lenToPosState++)
    {
      int posSlot;
      BitTreeEncoder encoder = _posSlotEncoder[lenToPosState];

      int st = (lenToPosState << Base.kNumPosSlotBits);
      for (posSlot = 0; posSlot < _distTableSize; posSlot++)
        _posSlotPrices[st + posSlot] = encoder.GetPrice(posSlot);
      for (posSlot = Base.kEndPosModelIndex; posSlot < _distTableSize; posSlot++)
        _posSlotPrices[st + posSlot] += ((((posSlot >> 1) - 1) - Base.kNumAlignBits) << SevenZip.Compression.RangeCoder.Encoder.kNumBitPriceShiftBits);

      int st2 = lenToPosState * Base.kNumFullDistances;
      int i;
View Full Code Here

    public LenEncoder()
    {
      for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++)
      {
        _lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits);
        _midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits);
      }
    }
View Full Code Here

       
        public LenEncoder()
        {
            for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++)
            {
                _lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits);
                _midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits);
            }
        }
View Full Code Here

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

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

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

      tempPrices[i] = BitTreeEncoder.ReverseGetPrice(_posEncoders, baseVal - posSlot - 1, footerBits, i - baseVal);
    }

    for (int lenToPosState = 0; lenToPosState < Base.kNumLenToPosStates; lenToPosState++) {
      int posSlot;
      BitTreeEncoder encoder = _posSlotEncoder[lenToPosState];

      int st = (lenToPosState << Base.kNumPosSlotBits);
      for (posSlot = 0; posSlot < _distTableSize; posSlot++)
        _posSlotPrices[st + posSlot] = encoder.GetPrice(posSlot);
      for (posSlot = Base.kEndPosModelIndex; posSlot < _distTableSize; posSlot++)
        _posSlotPrices[st + posSlot] += ((((posSlot >> 1) - 1) - Base.kNumAlignBits) << SevenZip.Compression.RangeCoder.Encoder.kNumBitPriceShiftBits);

      int st2 = lenToPosState * Base.kNumFullDistances;
      int i;
View Full Code Here

    BitTreeEncoder[]  _midCoder    = new BitTreeEncoder[Base.kNumPosStatesEncodingMax];
    BitTreeEncoder    _highCoder  = new BitTreeEncoder(Base.kNumHighLenBits);

    public LenEncoder() {
      for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++) {
        _lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits);
        _midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits);
      }
    }
View Full Code Here

    private BitTreeEncoder[]  _midCoder  = new BitTreeEncoder[Base.kNumPosStatesEncodingMax];
    private BitTreeEncoder    _highCoder  = new BitTreeEncoder(Base.kNumHighLenBits);
   
    public LenEncoder() {
      for (int posState = 0; posState < Base.kNumPosStatesEncodingMax; posState++) {
        this._lowCoder[posState] = new BitTreeEncoder(Base.kNumLowLenBits);
        this._midCoder[posState] = new BitTreeEncoder(Base.kNumMidLenBits);
      }
    }
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.