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:
+2046
-47
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user