Browse Source

fix whitespace issues

pull/1773/head
Anton Firszov 5 years ago
parent
commit
5ba6461c6d
  1. 2
      src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs
  2. 1
      src/ImageSharp/Memory/Buffer2D{T}.cs

2
src/ImageSharp/Formats/Jpeg/Components/Decoder/SpectralConverter{TPixel}.cs

@ -47,7 +47,7 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{ {
if (!this.Converted) if (!this.Converted)
{ {
int steps = (int) Math.Ceiling(this.pixelBuffer.Height / (float) this.pixelRowsPerStep); int steps = (int)Math.Ceiling(this.pixelBuffer.Height / (float)this.pixelRowsPerStep);
for (int step = 0; step < steps; step++) for (int step = 0; step < steps; step++)
{ {

1
src/ImageSharp/Memory/Buffer2D{T}.cs

@ -232,7 +232,6 @@ namespace SixLabors.ImageSharp.Memory
[MethodImpl(InliningOptions.ColdPath)] [MethodImpl(InliningOptions.ColdPath)]
private Memory<T> GetRowMemorySlow(int y) => this.FastMemoryGroup.GetBoundedSlice(y * (long)this.Width, this.Width); private Memory<T> GetRowMemorySlow(int y) => this.FastMemoryGroup.GetBoundedSlice(y * (long)this.Width, this.Width);
[MethodImpl(InliningOptions.ColdPath)] [MethodImpl(InliningOptions.ColdPath)]
private Memory<T> DangerousGetSingleMemorySlow() => this.FastMemoryGroup.Single(); private Memory<T> DangerousGetSingleMemorySlow() => this.FastMemoryGroup.Single();

Loading…
Cancel
Save