Browse Source

Make histo and best histo array readonly

pull/1799/head
Brian Popow 5 years ago
parent
commit
853b117369
  1. 4
      src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs

4
src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs

@ -24,9 +24,9 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
/// </summary>
private readonly int[] scratch = new int[256];
private int[][] histoArgb = { new int[256], new int[256], new int[256], new int[256] };
private readonly int[][] histoArgb = { new int[256], new int[256], new int[256], new int[256] };
private int[][] bestHisto = { new int[256], new int[256], new int[256], new int[256] };
private readonly int[][] bestHisto = { new int[256], new int[256], new int[256], new int[256] };
/// <summary>
/// The <see cref="MemoryAllocator"/> to use for buffer allocations.

Loading…
Cancel
Save