Re: [Question] Colour management
From: Ville Syrjälä <syrjala@sci.fi>
Date: 2004-07-31 13:31:35
On Sat, Jul 31, 2004 at 06:26:27PM +0800, Antonino A. Daplas wrote:
In directcolor mode where the channel size != CLUT register size, setting the CLUT is a bit tricky. Take for example, RGB555. Assuming an 8-bit CLUT size, each channel can only accept a total of 32 entries (2 power of 5). Since an 8-bit CLUT has 256 entries, then the driver needs to step by 8 (256/32). The code is like this then: red_reg[index * 8] = red green_reg[index * 8] = green blue_reg[index * 8] = blue Some hardware require that all 8 entries needs to be filled up.
I noticed you do this in i810fb. What happens if you don't do this? AFAIK mach64 doesn't need this. -- Ville Syrjälä syrjala@sci.fi http://www.sci.fi/~syrjala/ ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com