Browse Source

fixx

af/merge-core
antonfirsov 10 years ago
parent
commit
958444140f
  1. 22
      src/ImageSharp/Formats/Jpg/Components/Decoder/DecoderScanProcessor.cs
  2. 1
      src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs

22
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

1
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);

Loading…
Cancel
Save