Skip to content

Commit 7be55a1

Browse files
committed
Fix build
1 parent 94ebf36 commit 7be55a1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/ImageSharp/Formats/Tga/TgaDecoderCore.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
259259
{
260260
for (int x = width - 1; x >= 0; x--)
261261
{
262-
this.ReadPalettedBgr24Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
262+
ReadPalettedBgr24Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
263263
}
264264
}
265265

@@ -270,7 +270,7 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
270270
{
271271
for (int x = width - 1; x >= 0; x--)
272272
{
273-
this.ReadPalettedBgra32Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
273+
ReadPalettedBgra32Pixel(stream, palette, colorMapPixelSizeInBytes, x, color, pixelRow);
274274
}
275275
}
276276

@@ -352,7 +352,7 @@ private void ReadMonoChrome<TPixel>(BufferedReadStream stream, int width, int he
352352
Span<TPixel> pixelSpan = pixels.DangerousGetRowSpan(newY);
353353
for (int x = width - 1; x >= 0; x--)
354354
{
355-
this.ReadL8Pixel(stream, color, x, pixelSpan);
355+
ReadL8Pixel(stream, color, x, pixelSpan);
356356
}
357357
}
358358

@@ -662,7 +662,7 @@ private void ReadL8Row<TPixel>(BufferedReadStream stream, int width, Buffer2D<TP
662662
}
663663

664664
[MethodImpl(MethodImplOptions.AggressiveInlining)]
665-
private void ReadL8Pixel<TPixel>(BufferedReadStream stream, TPixel color, int x, Span<TPixel> pixelSpan)
665+
private static void ReadL8Pixel<TPixel>(BufferedReadStream stream, TPixel color, int x, Span<TPixel> pixelSpan)
666666
where TPixel : unmanaged, IPixel<TPixel>
667667
{
668668
byte pixelValue = (byte)stream.ReadByte();
@@ -758,7 +758,7 @@ private void ReadPalettedBgra16Pixel<TPixel>(Span<byte> palette, int index, int
758758
}
759759

760760
[MethodImpl(MethodImplOptions.AggressiveInlining)]
761-
private void ReadPalettedBgr24Pixel<TPixel>(BufferedReadStream stream, Span<byte> palette, int colorMapPixelSizeInBytes, int x, TPixel color, Span<TPixel> pixelRow)
761+
private static void ReadPalettedBgr24Pixel<TPixel>(BufferedReadStream stream, Span<byte> palette, int colorMapPixelSizeInBytes, int x, TPixel color, Span<TPixel> pixelRow)
762762
where TPixel : unmanaged, IPixel<TPixel>
763763
{
764764
int colorIndex = stream.ReadByte();
@@ -772,7 +772,7 @@ private void ReadPalettedBgr24Pixel<TPixel>(BufferedReadStream stream, Span<byte
772772
}
773773

774774
[MethodImpl(MethodImplOptions.AggressiveInlining)]
775-
private void ReadPalettedBgra32Pixel<TPixel>(BufferedReadStream stream, Span<byte> palette, int colorMapPixelSizeInBytes, int x, TPixel color, Span<TPixel> pixelRow)
775+
private static void ReadPalettedBgra32Pixel<TPixel>(BufferedReadStream stream, Span<byte> palette, int colorMapPixelSizeInBytes, int x, TPixel color, Span<TPixel> pixelRow)
776776
where TPixel : unmanaged, IPixel<TPixel>
777777
{
778778
int colorIndex = stream.ReadByte();
@@ -788,6 +788,7 @@ private void ReadPalettedBgra32Pixel<TPixel>(BufferedReadStream stream, Span<byt
788788
/// <summary>
789789
/// Produce uncompressed tga data from a run length encoded stream.
790790
/// </summary>
791+
/// <param name="stream">The <see cref="BufferedReadStream"/> containing image data.</param>
791792
/// <param name="width">The width of the image.</param>
792793
/// <param name="height">The height of the image.</param>
793794
/// <param name="buffer">Buffer for uncompressed data.</param>

0 commit comments

Comments
 (0)