Exemple #1
0
 internal void update2(ModelPPM model, int p)
 {
     SharpCompress.Compressor.PPMd.H.State state = this.tempState5.Initialize(model.Heap);
     state.Address            = p;
     model.FoundState.Address = p;
     model.FoundState.IncrementFreq(4);
     this.freqData.IncrementSummFreq(4);
     if (state.Freq > 0x7c)
     {
         this.rescale(model);
     }
     model.incEscCount(1);
     model.RunLength = model.InitRL;
 }
        internal void update2(ModelPPM model, int p)
        {
            State temp = tempState5.Initialize(model.Heap);

            temp.Address             = p;
            model.FoundState.Address = p;
            model.FoundState.IncrementFreq(4);
            freqData.IncrementSummFreq(4);
            if (temp.Freq > ModelPPM.MAX_FREQ)
            {
                rescale(model);
            }
            model.incEscCount(1);
            model.RunLength = model.InitRL;
        }
Exemple #3
0
 internal void update2(ModelPPM model, int p)
 {
     State temp = tempState5.Initialize(model.Heap);
     temp.Address = p;
     model.FoundState.Address = p;
     model.FoundState.IncrementFreq(4);
     freqData.IncrementSummFreq(4);
     if (temp.Freq > ModelPPM.MAX_FREQ)
     {
         rescale(model);
     }
     model.incEscCount(1);
     model.RunLength = model.InitRL;
 }
 internal void update2(ModelPPM model, int p)
 {
     SharpCompress.Compressor.PPMd.H.State state = this.tempState5.Initialize(model.Heap);
     state.Address = p;
     model.FoundState.Address = p;
     model.FoundState.IncrementFreq(4);
     this.freqData.IncrementSummFreq(4);
     if (state.Freq > 0x7c)
     {
         this.rescale(model);
     }
     model.incEscCount(1);
     model.RunLength = model.InitRL;
 }