Skip to content

Commit fdec10d

Browse files
authored
Add files via upload
1 parent 0e0fbf5 commit fdec10d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nQuant.Master/PnnLABQuantizer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,10 @@ internal ushort HybridColorIndex(Color[] palette, int pixel, int pos)
484484

485485
protected override ushort ClosestColorIndex(Color[] palette, int pixel, int pos)
486486
{
487-
var c = Color.FromArgb(pixel);
487+
if (PG < coeffs[0, 1] && BlueNoise.TELL_BLUE_NOISE[pos & 4095] > -88)
488+
return HybridColorIndex(palette, pixel, pos);
489+
490+
var c = Color.FromArgb(pixel);
488491
if (c.A <= alphaThreshold)
489492
return NearestColorIndex(palette, pixel, pos);
490493

0 commit comments

Comments
 (0)