1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-05 02:30:56 +00:00

More inclusive low pass filter for color match look ahead

This commit is contained in:
David Schmenk 2024-12-07 11:57:59 -08:00
parent 2a9e506fa2
commit 99bbca0264

View File

@ -118,10 +118,10 @@ def rgbPix(rgbptr, errptr, cx)#1
dist(r0, g0, b0, r1, g1, b1)
if isgti16(rgbThreshold)
d1:[0], d1:[1] = pd:[0], pd:[1]
d2:[0], d2:[1] = pd:[0], pd:[1]
else
// Calc match if next pixel is one
d1:[0], d1:[1] = dist(r1, g1, b1, lr1, lg1, lb1)
fin
if lookahead > 1
// Look ahead in chroma cycle for possible better match for after next RGB pixel
i = ((cx + 2) & 3) * 3
@ -147,6 +147,7 @@ def rgbPix(rgbptr, errptr, cx)#1
else
d2:[0], d2:[1] = pd:[0], pd:[1]
fin
fin
else
d1:[0], d1:[1] = pd:[0], pd:[1]
d2:[0], d2:[1] = pd:[0], pd:[1]