@@ -259,7 +259,7 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
259
259
{
260
260
for ( int x = width - 1 ; x >= 0 ; x -- )
261
261
{
262
- this . ReadPalettedBgr24Pixel ( stream , palette , colorMapPixelSizeInBytes , x , color , pixelRow ) ;
262
+ ReadPalettedBgr24Pixel ( stream , palette , colorMapPixelSizeInBytes , x , color , pixelRow ) ;
263
263
}
264
264
}
265
265
@@ -270,7 +270,7 @@ private void ReadPaletted<TPixel>(BufferedReadStream stream, int width, int heig
270
270
{
271
271
for ( int x = width - 1 ; x >= 0 ; x -- )
272
272
{
273
- this . ReadPalettedBgra32Pixel ( stream , palette , colorMapPixelSizeInBytes , x , color , pixelRow ) ;
273
+ ReadPalettedBgra32Pixel ( stream , palette , colorMapPixelSizeInBytes , x , color , pixelRow ) ;
274
274
}
275
275
}
276
276
@@ -352,7 +352,7 @@ private void ReadMonoChrome<TPixel>(BufferedReadStream stream, int width, int he
352
352
Span < TPixel > pixelSpan = pixels . DangerousGetRowSpan ( newY ) ;
353
353
for ( int x = width - 1 ; x >= 0 ; x -- )
354
354
{
355
- this . ReadL8Pixel ( stream , color , x , pixelSpan ) ;
355
+ ReadL8Pixel ( stream , color , x , pixelSpan ) ;
356
356
}
357
357
}
358
358
@@ -662,7 +662,7 @@ private void ReadL8Row<TPixel>(BufferedReadStream stream, int width, Buffer2D<TP
662
662
}
663
663
664
664
[ 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 )
666
666
where TPixel : unmanaged, IPixel < TPixel >
667
667
{
668
668
byte pixelValue = ( byte ) stream . ReadByte ( ) ;
@@ -758,7 +758,7 @@ private void ReadPalettedBgra16Pixel<TPixel>(Span<byte> palette, int index, int
758
758
}
759
759
760
760
[ 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 )
762
762
where TPixel : unmanaged, IPixel < TPixel >
763
763
{
764
764
int colorIndex = stream . ReadByte ( ) ;
@@ -772,7 +772,7 @@ private void ReadPalettedBgr24Pixel<TPixel>(BufferedReadStream stream, Span<byte
772
772
}
773
773
774
774
[ 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 )
776
776
where TPixel : unmanaged, IPixel < TPixel >
777
777
{
778
778
int colorIndex = stream . ReadByte ( ) ;
@@ -788,6 +788,7 @@ private void ReadPalettedBgra32Pixel<TPixel>(BufferedReadStream stream, Span<byt
788
788
/// <summary>
789
789
/// Produce uncompressed tga data from a run length encoded stream.
790
790
/// </summary>
791
+ /// <param name="stream">The <see cref="BufferedReadStream"/> containing image data.</param>
791
792
/// <param name="width">The width of the image.</param>
792
793
/// <param name="height">The height of the image.</param>
793
794
/// <param name="buffer">Buffer for uncompressed data.</param>
0 commit comments