mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 03:40:20 -06:00
Reduce median-cut sample size to 4
This commit is contained in:
parent
1c07adda5e
commit
c3b8b7cb59
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue