From 958444140f587607e7a3485a1511d18bd897821e Mon Sep 17 00:00:00 2001 From: antonfirsov Date: Tue, 27 Dec 2016 05:03:44 +0100 Subject: [PATCH] fixx --- .../Decoder/DecoderScanProcessor.cs | 22 ------------------- src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs | 1 + 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs b/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs index c18b9cd99f..a601d521b2 100644 --- a/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs +++ b/src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs @@ -310,28 +310,6 @@ } this.ProcessBlockImpl(decoder, i, compIndex, hi, scan, ref dc); - - - //fixed (Block8x8F* qtp = &decoder.QuantizationTables[qtIndex]) - //{ - // // Load the previous partially decoded coefficients, if applicable. - // if (decoder.IsProgressive) - // { - // int blockIndex = ((@by * mxx) * hi) + bx; - - // fixed (Block8x8F* bp = &decoder.ProgCoeffs[compIndex][blockIndex]) - // { - // Unsafe.CopyBlock(this.Pointers.Block, bp, (uint)sizeof(Block8x8F)); - // } - // } - // else - // { - // this.Data.Block.Clear(); - // } - // decoder.ProcessBlockImpl(this.ah, this.Pointers.Block, this.Pointers.Temp1, this.Pointers.Temp2, this.Pointers.Unzig, scan, i, this.zigStart, this.zigEnd, this.al, dc, compIndex, this.@by, this.mxx, hi, this.bx, qtp); - //} - - } // for j diff --git a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs index 7af8e534c4..22d4f1ca86 100644 --- a/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs +++ b/src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs @@ -1590,6 +1590,7 @@ namespace ImageSharp.Formats DecoderScanProcessor p = default(DecoderScanProcessor); DecoderScanProcessor.Init(&p, this, remaining, scan); + this.Bits = default(Bits); this.MakeImage(p.mxx, p.myy); p.ProcessBlocks(this, scan, ref dc);