Browse Source

StyleCop

af/merge-core
Anton Firszov 9 years ago
parent
commit
3e65ef99cc
  1. 4
      src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs
  2. 2
      src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs

4
src/ImageSharp/Formats/Jpg/Components/Decoder/JpegPixelArea.cs

@ -50,6 +50,8 @@ namespace ImageSharp.Formats.Jpg
/// </summary>
public MutableSpan<byte> Span => new MutableSpan<byte>(this.Pixels, this.Offset);
private static ArrayPool<byte> BytePool => ArrayPool<byte>.Shared;
/// <summary>
/// Returns the pixel at (x, y)
/// </summary>
@ -94,8 +96,6 @@ namespace ImageSharp.Formats.Jpg
this.Pixels = null;
}
private static ArrayPool<byte> BytePool => ArrayPool<byte>.Shared;
/// <summary>
/// Gets the subarea that belongs to the Block8x8 defined by block indices
/// </summary>

2
src/ImageSharp/Formats/Jpg/Components/Decoder/YCbCrImage.cs

@ -85,8 +85,6 @@ namespace ImageSharp.Formats.Jpg
YCbCrSubsampleRatio410,
}
private static ArrayPool<byte> BytePool => ArrayPool<byte>.Shared;
/// <summary>
/// Gets the Y slice index delta between vertically adjacent pixels.
/// </summary>

Loading…
Cancel
Save