@@ -85,32 +85,32 @@ internal sealed class PngEncoderCore : IDisposable
8585 private int height ;
8686
8787 /// <summary>
88- /// The previous scanline.
88+ /// The raw data of previous scanline.
8989 /// </summary>
9090 private IManagedByteBuffer previousScanline ;
9191
9292 /// <summary>
93- /// The raw scanline.
93+ /// The raw data of current scanline.
9494 /// </summary>
9595 private IManagedByteBuffer currentScanline ;
9696
9797 /// <summary>
98- /// The common buffer for the filters
98+ /// The common buffer for the filters.
9999 /// </summary>
100100 private IManagedByteBuffer filterBuffer ;
101101
102102 /// <summary>
103- /// The buffer for the sub filter
103+ /// The ext buffer for the sub filter, <see cref="PngFilterMethod.Adaptive"/>.
104104 /// </summary>
105105 private IManagedByteBuffer subFilter ;
106106
107107 /// <summary>
108- /// The buffer for the average filter
108+ /// The ext buffer for the average filter, <see cref="PngFilterMethod.Adaptive"/>.
109109 /// </summary>
110110 private IManagedByteBuffer averageFilter ;
111111
112112 /// <summary>
113- /// The buffer for the Paeth filter
113+ /// The ext buffer for the Paeth filter, <see cref="PngFilterMethod.Adaptive"/>.
114114 /// </summary>
115115 private IManagedByteBuffer paethFilter ;
116116
@@ -390,7 +390,7 @@ private void CollectPixelBytes<TPixel>(ReadOnlySpan<TPixel> rowSpan, IQuantizedF
390390 }
391391
392392 /// <summary>
393- /// Apply filter for the pixel bytes .
393+ /// Apply filter for the raw scanline .
394394 /// </summary>
395395 private IManagedByteBuffer FilterPixelBytes ( )
396396 {
@@ -780,9 +780,7 @@ private void AllocateExtBuffers()
780780 int resultLength = this . filterBuffer . Length ( ) ;
781781
782782 this . subFilter = this . memoryAllocator . AllocateManagedByteBuffer ( resultLength , AllocationOptions . Clean ) ;
783-
784783 this . averageFilter = this . memoryAllocator . AllocateManagedByteBuffer ( resultLength , AllocationOptions . Clean ) ;
785-
786784 this . paethFilter = this . memoryAllocator . AllocateManagedByteBuffer ( resultLength , AllocationOptions . Clean ) ;
787785 }
788786 }
0 commit comments