mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-04-07 16:41:59 +00:00
Slightly better error calc for lookahead
This commit is contained in:
parent
ccf8893367
commit
3c38943141
@ -104,9 +104,9 @@ def rgbPix(r, g, b, x, y)#0
|
||||
ng = pg - ntscCycle[i+GRN] + ntscChroma[i+GRN]
|
||||
nb = pb - ntscCycle[i+BLU] + ntscChroma[i+BLU]
|
||||
if errDiv
|
||||
nr = nr - errptr=>[3+RED] / errDiv
|
||||
ng = ng - errptr=>[3+GRN] / errDiv
|
||||
nb = nb - errptr=>[3+BLU] / errDiv
|
||||
nr = nr - (errptr=>[3+RED] + (r - nr + 1) / 2) / errDiv
|
||||
ng = ng - (errptr=>[3+GRN] + (g - ng + 1) / 2) / errDiv
|
||||
nb = nb - (errptr=>[3+BLU] + (b - nb + 1) / 2) / errDiv
|
||||
fin
|
||||
nd = dist(r, g, b, nr, ng, nb)
|
||||
// Add current 1/4 chroma color
|
||||
|
Loading…
x
Reference in New Issue
Block a user