From a5770d0bd046d262cc20d51e3cc84d48e708c764 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Fri, 11 Jun 2021 05:13:58 +1000 Subject: [PATCH] Increase memory to fix edge case issues --- .../Processors/Quantization/EuclideanPixelMap{TPixel}.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs b/src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs index efa5ac076f..62bf2a554c 100644 --- a/src/ImageSharp/Processing/Processors/Quantization/EuclideanPixelMap{TPixel}.cs +++ b/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 /// suite of test images and provides the lowest possible memory usage while /// 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. /// /// private struct ColorDistanceCache { 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 IndexAlphaCount = (1 << IndexAlphaBits) + 1; private const int RgbShift = 8 - IndexBits;