From 9778eb35d50fa17f4f03609149ccbd1bd8065f08 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Wed, 30 Aug 2017 03:51:42 +0200 Subject: [PATCH] removed DoPostProcessorStep() return value --- .../Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs b/src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs index 42fccdc18..689dd774e 100644 --- a/src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs +++ b/src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs @@ -53,7 +53,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Common.Decoder this.rgbaBuffer.Dispose(); } - public bool DoPostProcessorStep(Image destination) + public void DoPostProcessorStep(Image destination) where TPixel : struct, IPixel { foreach (JpegComponentPostProcessor cpp in this.ComponentProcessors) @@ -64,7 +64,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Common.Decoder this.ConvertColors(destination); this.CurrentImageRowInPixels += PixelRowsPerStep; - return this.CurrentImageRowInPixels < this.RawJpeg.ImageSizeInPixels.Height; } public void PostProcess(Image 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!"); } - while (this.DoPostProcessorStep(destination)) + while (this.CurrentImageRowInPixels < this.RawJpeg.ImageSizeInPixels.Height) { + this.DoPostProcessorStep(destination); } }