New Silicon LUT>colorspace?
rjo__
Posts: 2,114
BIG THANKS to Brian and Ray for the HyperRam examples.
Quite useful since I couldn't get regular VGA working on my shiny new ES:)
I started modifying Ray's code to get my Stereo PropCam going... and immediately I ran into an itsy bitsy, tiny, tiny issue with the LUT.
I converted the 8 bit 640x480 color "bitmap2.bmp" to grayscale in ImageJ and re-exported it as "bitmap2g.bmp"
The Image was fine... except absolute white(255). Which appears pure blue... on two different monitors.
I wrote a routine to force the lut values to be in the 0 to 255 range and the little spot on the bird's head still appears blue.
I have turn the ES off and back on to rerun the code. No joy.
>PS in my routine there is a legacy line using rdfast… which I neglected to omit. It is harmless:)
Quite useful since I couldn't get regular VGA working on my shiny new ES:)
I started modifying Ray's code to get my Stereo PropCam going... and immediately I ran into an itsy bitsy, tiny, tiny issue with the LUT.
I converted the 8 bit 640x480 color "bitmap2.bmp" to grayscale in ImageJ and re-exported it as "bitmap2g.bmp"
The Image was fine... except absolute white(255). Which appears pure blue... on two different monitors.
I wrote a routine to force the lut values to be in the 0 to 255 range and the little spot on the bird's head still appears blue.
waitx ##50000000 mov x,#0 rep @.end,#$100 setbyte y,x,#0 setbyte y,x,#1 setbyte y,x,#2 shl y,#8 wrlut y,x add x,#1 .end
I have turn the ES off and back on to rerun the code. No joy.
>PS in my routine there is a legacy line using rdfast… which I neglected to omit. It is harmless:)
Comments
The attached program is from Ray. I have commented out the cognew for HyperRam. So it is essentially VGA:)
What I am finding is that the grayscale with other apps the bitmap is fine, but with the attached app, pixels with value of 255 are pure blue.
To try to fix this, I generate my own lut values, but it doesn't help.
So... if you have VGA 640x480 going... trying loading this bmp and see what you see:)
Not seeing it on my setup. Generated a grayscale sequence from 0-255 and don't see any blue line on the LCD monitor. Might possibly be some range or colour setting on your monitor(s) perhaps.
Look for "Here's the original VGA example, modified for Rev.B "
See how that works with your bitmap image....