Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Jul 4, 2024
1 parent aa04599 commit b86e14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nQuant/j2se/GilbertCurve.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public int compare(ErrorBox o1, ErrorBox o2) {
final int density = palette.length > 16 ? 3200 : 1500;
if(palette.length / weight > 5000 && (weight > .045 || (weight > .01 && palette.length <= 64)))
ditherMax = (byte) BitmapUtilities.sqr(5 + edge);
else if(palette.length / weight < density && palette.length >= 16 && palette.length < 256)
else if(DITHER_MAX > 9 && palette.length / weight < density && palette.length >= 16 && palette.length < 256)
ditherMax = (byte) BitmapUtilities.sqr(5 + edge);
thresold = DITHER_MAX > 9 ? -112 : -64;
weights = new float[0];
Expand Down

0 comments on commit b86e14e

Please sign in to comment.