Browse Source

Various StyleCop fixes.

pull/22/head
Dirk Lemstra 10 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); ArrayPool.Return(this.Buffer);
} }
this.Buffer = null; this.Buffer = null;
} }

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

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

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

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

Loading…
Cancel
Save