1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-19 09:23:06 +00:00

Mask off 5 bits of RGB import

This commit is contained in:
David Schmenk
2024-11-20 20:26:59 -08:00
parent dd8e38a692
commit 66c57287d6
2 changed files with 2050 additions and 51 deletions
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -14,7 +14,7 @@ const GRN = 1
const BLU = 2
const RGB_MAX = 63
const ERR_MAX = 64
const ERR_DIV = 2
const ERR_DIV = 4
byte[] ntscChroma
// Imperical 0-255 R G B
@@ -217,9 +217,9 @@ def rgbImport(filestr)#0
fileio:read(refnum, rgbScanline, 560 * 3)
rgbptr = rgbScanline
for i = 0 to 559
r = rgbptr->RED >> 3
g = rgbptr->GRN >> 3
b = rgbptr->BLU >> 3
r = rgbptr->RED & $1F
g = rgbptr->GRN & $1F
b = rgbptr->BLU & $1F
rgbptr = rgbptr + 3
rgbPix(r, g, b, i, j)
next