1
0
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:
David Schmenk 2024-12-11 12:04:59 -08:00
parent 8f4b05ef31
commit d90e3c797e
2 changed files with 3 additions and 8 deletions

Binary file not shown.

View File

@ -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