Alright, so because that doesn't describe much, I'll give y'all some information.
I'm working on an FPGA display controller (as that seems to be a popular thing to do with them ) and I'm tailoring the setup for an old, 1990's era laptop screen, the laptop being a Texas Instruments 4000-series (if you didn't know TI once made laptops, you're not missing much!)
Thing is, it takes 9-bit color (512 colors), so 3 bits for red, green, and blue.
Problem is, no modern file format for images uses 9-bit data (in bitmaps, it's either 8 or 10), so how would I take an image that is 10-bit color (1024 possible combinations) and map it to 512 combinations?
I know the Arduino language (modified Processing/C) features a map function that would accomplish this, but I am looking to do it in industry-standard C or C++, maybe even C#, so that way I can easily have a Windows GUI where I load the file, deconstruct it pixel-by-pixel, and send it over a COM port to the FPGA that will load the data to RAM and then display it.
Any ideas?
I'm working on an FPGA display controller (as that seems to be a popular thing to do with them ) and I'm tailoring the setup for an old, 1990's era laptop screen, the laptop being a Texas Instruments 4000-series (if you didn't know TI once made laptops, you're not missing much!)
Thing is, it takes 9-bit color (512 colors), so 3 bits for red, green, and blue.
Problem is, no modern file format for images uses 9-bit data (in bitmaps, it's either 8 or 10), so how would I take an image that is 10-bit color (1024 possible combinations) and map it to 512 combinations?
I know the Arduino language (modified Processing/C) features a map function that would accomplish this, but I am looking to do it in industry-standard C or C++, maybe even C#, so that way I can easily have a Windows GUI where I load the file, deconstruct it pixel-by-pixel, and send it over a COM port to the FPGA that will load the data to RAM and then display it.
Any ideas?