Browse Source

Remove extra line breaks

af/merge-core
Jason Nelson 8 years ago
parent
commit
7c88e011be
  1. 18
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

18
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -563,22 +563,18 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case FilterType.Sub: case FilterType.Sub:
SubFilter.Decode(scanlineSpan, this.bytesPerPixel); SubFilter.Decode(scanlineSpan, this.bytesPerPixel);
break; break;
case FilterType.Up: case FilterType.Up:
UpFilter.Decode(scanlineSpan, this.previousScanline.GetSpan()); UpFilter.Decode(scanlineSpan, this.previousScanline.GetSpan());
break; break;
case FilterType.Average: case FilterType.Average:
AverageFilter.Decode(scanlineSpan, this.previousScanline.GetSpan(), this.bytesPerPixel); AverageFilter.Decode(scanlineSpan, this.previousScanline.GetSpan(), this.bytesPerPixel);
break; break;
case FilterType.Paeth: case FilterType.Paeth:
PaethFilter.Decode(scanlineSpan, this.previousScanline.GetSpan(), this.bytesPerPixel); PaethFilter.Decode(scanlineSpan, this.previousScanline.GetSpan(), this.bytesPerPixel);
break; break;
@ -637,22 +633,18 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case FilterType.Sub: case FilterType.Sub:
SubFilter.Decode(scanSpan, this.bytesPerPixel); SubFilter.Decode(scanSpan, this.bytesPerPixel);
break; break;
case FilterType.Up: case FilterType.Up:
UpFilter.Decode(scanSpan, prevSpan); UpFilter.Decode(scanSpan, prevSpan);
break; break;
case FilterType.Average: case FilterType.Average:
AverageFilter.Decode(scanSpan, prevSpan, this.bytesPerPixel); AverageFilter.Decode(scanSpan, prevSpan, this.bytesPerPixel);
break; break;
case FilterType.Paeth: case FilterType.Paeth:
PaethFilter.Decode(scanSpan, prevSpan, this.bytesPerPixel); PaethFilter.Decode(scanSpan, prevSpan, this.bytesPerPixel);
break; break;
@ -705,7 +697,6 @@ namespace SixLabors.ImageSharp.Formats.Png
switch (this.pngColorType) switch (this.pngColorType)
{ {
case PngColorType.Grayscale: case PngColorType.Grayscale:
PngScanlineProcessor.ProcessGrayscaleScanline( PngScanlineProcessor.ProcessGrayscaleScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -717,7 +708,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.GrayscaleWithAlpha: case PngColorType.GrayscaleWithAlpha:
PngScanlineProcessor.ProcessGrayscaleWithAlphaScanline( PngScanlineProcessor.ProcessGrayscaleWithAlphaScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -728,7 +718,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.Palette: case PngColorType.Palette:
PngScanlineProcessor.ProcessPaletteScanline( PngScanlineProcessor.ProcessPaletteScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -739,7 +728,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.Rgb: case PngColorType.Rgb:
PngScanlineProcessor.ProcessRgbScanline( PngScanlineProcessor.ProcessRgbScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -753,7 +741,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.RgbWithAlpha: case PngColorType.RgbWithAlpha:
PngScanlineProcessor.ProcessRgbaScanline( PngScanlineProcessor.ProcessRgbaScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -789,7 +776,6 @@ namespace SixLabors.ImageSharp.Formats.Png
switch (this.pngColorType) switch (this.pngColorType)
{ {
case PngColorType.Grayscale: case PngColorType.Grayscale:
PngScanlineProcessor.ProcessInterlacedGrayscaleScanline( PngScanlineProcessor.ProcessInterlacedGrayscaleScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -803,7 +789,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.GrayscaleWithAlpha: case PngColorType.GrayscaleWithAlpha:
PngScanlineProcessor.ProcessInterlacedGrayscaleWithAlphaScanline( PngScanlineProcessor.ProcessInterlacedGrayscaleWithAlphaScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -816,7 +801,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.Palette: case PngColorType.Palette:
PngScanlineProcessor.ProcessInterlacedPaletteScanline( PngScanlineProcessor.ProcessInterlacedPaletteScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -829,7 +813,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.Rgb: case PngColorType.Rgb:
PngScanlineProcessor.ProcessInterlacedRgbScanline( PngScanlineProcessor.ProcessInterlacedRgbScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,
@ -845,7 +828,6 @@ namespace SixLabors.ImageSharp.Formats.Png
break; break;
case PngColorType.RgbWithAlpha: case PngColorType.RgbWithAlpha:
PngScanlineProcessor.ProcessInterlacedRgbaScanline( PngScanlineProcessor.ProcessInterlacedRgbaScanline(
this.header, this.header,
scanlineSpan, scanlineSpan,

Loading…
Cancel
Save