Reduce median-cut sample size to 4

This commit is contained in:
Autumn Lamonte 2022-02-02 06:38:28 -06:00
parent 1c07adda5e
commit c3b8b7cb59

View file

@ -802,7 +802,7 @@ public class HQSixelEncoder implements SixelEncoder {
// Sample the colors. We will be taking SAMPLE_SIZE'd pixel
// bands uniformly through the image data, with numColors bands.
final int SAMPLE_SIZE = 16;
final int SAMPLE_SIZE = 4;
int stride = 0;
if (totalPixels > SAMPLE_SIZE * numColors) {
stride = Math.max(0, totalPixels / numColors);