Browse Source

Various StyleCop fixes.

pull/22/head
Dirk Lemstra 9 years ago
parent
commit
fe2935bcf2
  1. 1
      src/ImageSharp/Formats/Jpg/Components/Bytes.cs
  2. 4
      src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs
  3. 2
      src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs

1
src/ImageSharp/Formats/Jpg/Components/Bytes.cs

@ -49,6 +49,7 @@ namespace ImageSharp.Formats
{
ArrayPool.Return(this.Buffer);
}
this.Buffer = null;
}

4
src/ImageSharp/Formats/Jpg/JpegDecoderCore.cs

@ -225,7 +225,6 @@ namespace ImageSharp.Formats
internal enum ErrorCodes
{
NoError,
// ReSharper disable once InconsistentNaming
MissingFF00
}
@ -1553,7 +1552,6 @@ namespace ImageSharp.Formats
var qtIndex = this.componentArray[compIndex].Selector;
// TODO: Find a way to clean up this mess
fixed (Block8x8F* qtp = &this.quantizationTables[qtIndex])
{
// Load the previous partially decoded coefficients, if applicable.
@ -1809,7 +1807,6 @@ namespace ImageSharp.Formats
}
// Level shift by +128, clip to [0, 255], and write to dst.
temp1->CopyColorsTo(new MutableSpan<byte>(dst, offset), stride, temp2);
}
@ -1898,6 +1895,7 @@ namespace ImageSharp.Formats
// int stuff = (int)b[0];
stuff |= delta;
// b[0] = stuff;
Block8x8F.SetScalarAt(b, 0, stuff);
}

2
src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs

@ -246,9 +246,7 @@ namespace ImageSharp.Formats
/// <summary>
/// The AC luminance huffman table index
/// </summary>
LuminanceAC = 1,
// ReSharper restore UnusedMember.Local
/// <summary>
/// The DC chrominance huffman table index

Loading…
Cancel
Save