Browse Source

removed DoPostProcessorStep() return value

af/merge-core
Anton Firszov 9 years ago
parent
commit
e77d79c763
  1. 6
      src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs

6
src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs

@ -53,7 +53,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Common.Decoder
this.rgbaBuffer.Dispose(); this.rgbaBuffer.Dispose();
} }
public bool DoPostProcessorStep<TPixel>(Image<TPixel> destination) public void DoPostProcessorStep<TPixel>(Image<TPixel> destination)
where TPixel : struct, IPixel<TPixel> where TPixel : struct, IPixel<TPixel>
{ {
foreach (JpegComponentPostProcessor cpp in this.ComponentProcessors) foreach (JpegComponentPostProcessor cpp in this.ComponentProcessors)
@ -64,7 +64,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Common.Decoder
this.ConvertColors(destination); this.ConvertColors(destination);
this.CurrentImageRowInPixels += PixelRowsPerStep; this.CurrentImageRowInPixels += PixelRowsPerStep;
return this.CurrentImageRowInPixels < this.RawJpeg.ImageSizeInPixels.Height;
} }
public void PostProcess<TPixel>(Image<TPixel> destination) public void PostProcess<TPixel>(Image<TPixel> destination)
@ -75,8 +74,9 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Common.Decoder
throw new ArgumentException("Input image is not of the size of the processed one!"); throw new ArgumentException("Input image is not of the size of the processed one!");
} }
while (this.DoPostProcessorStep(destination)) while (this.CurrentImageRowInPixels < this.RawJpeg.ImageSizeInPixels.Height)
{ {
this.DoPostProcessorStep(destination);
} }
} }

Loading…
Cancel
Save