mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-17 22:30:41 +00:00
Update DHGR slidesh t push
This commit is contained in:
parent
8f4b05ef31
commit
d90e3c797e
Binary file not shown.
@ -151,9 +151,9 @@ def rgbPix(rgbptr, errptr, cx)#1
|
||||
cr = pr + ntscChroma[i+RED]
|
||||
cg = pg + ntscChroma[i+GRN]
|
||||
cb = pb + ntscChroma[i+BLU]
|
||||
r = rgbptr->[RED]
|
||||
g = rgbptr->[GRN]
|
||||
b = rgbptr->[BLU]
|
||||
r = gamma[rgbptr->[RED]]
|
||||
g = gamma[rgbptr->[GRN]]
|
||||
b = gamma[rgbptr->[BLU]]
|
||||
if errDiv
|
||||
r = r + errptr=>[RED] / errDiv
|
||||
g = g + errptr=>[GRN] / errDiv
|
||||
@ -293,11 +293,6 @@ def rgbImportExport(rgbfile, dhgrfile)#0
|
||||
rgbInit
|
||||
for j = 0 to 191
|
||||
fileio:read(refnum, rgbScanline, 560 * 3)
|
||||
for i = 0 to 559*3 step 3
|
||||
rgbScanline->[i+RED] = gamma[rgbScanline->[i+RED]]
|
||||
rgbScanline->[i+GRN] = gamma[rgbScanline->[i+GRN]]
|
||||
rgbScanline->[i+BLU] = gamma[rgbScanline->[i+BLU]]
|
||||
next
|
||||
memset(@ntscCycle, CHROMA_RESET, 12) // Reset chroma cycle
|
||||
rgbptr = rgbScanline
|
||||
errptr = rgbErr
|
||||
|
Loading…
x
Reference in New Issue
Block a user