Browse Source

Increase memory to fix edge case issues

pull/1654/head
James Jackson-South 5 years ago
parent
commit
a5770d0bd0
  1. 4
      src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

4
src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs

@ -126,13 +126,13 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization
/// The granularity of the cache has been determined based upon the current /// The granularity of the cache has been determined based upon the current
/// suite of test images and provides the lowest possible memory usage while /// suite of test images and provides the lowest possible memory usage while
/// providing enough match accuracy. /// providing enough match accuracy.
/// Entry count is currently limited to 646866 entries at 0.62MB. /// Entry count is currently limited to 2371842 entries at 2MB.
/// </para> /// </para>
/// </remarks> /// </remarks>
private struct ColorDistanceCache private struct ColorDistanceCache
{ {
private const int IndexBits = 5; private const int IndexBits = 5;
private const int IndexAlphaBits = 3; private const int IndexAlphaBits = 5;
private const int IndexCount = (1 << IndexBits) + 1; private const int IndexCount = (1 << IndexBits) + 1;
private const int IndexAlphaCount = (1 << IndexAlphaBits) + 1; private const int IndexAlphaCount = (1 << IndexAlphaBits) + 1;
private const int RgbShift = 8 - IndexBits; private const int RgbShift = 8 - IndexBits;

Loading…
Cancel
Save