Thread (18 messages) 18 messages, 3 authors, 2004-08-01

Re: [Question] Colour management

flat view

From: Ville Syrjälä <syrjala@sci.fi>
Date: 2004-07-31 22:19:00

On Sat, Jul 31, 2004 at 06:26:27PM +0800, Antonino A. Daplas wrote:
On Saturday 31 July 2004 02:12, Alexander Kern wrote:
quoted
Hallo Tony,

can you explain the deep mining of fb_setcolreg. Background, I observe
wrong palette using in 15 and 16 bpp modes, but can not understand, what is
the right approach. In both cases from penguin logo I can see only contour
in honey yellow and blue vertical string jsimmons, pretty scury ;-) The
rest is black! The simple text or ncurses applications have always right
colours. Additionally and only by 16bpp fbi shows blurry images. In 15bpp
fbi works fine. fbtest works fine and his penguins look good in all
resolutions ?!
This will need a long answer. (For mistakes or ommisions, please let me know)

fb_setcolreg has 2 functions, initialize info->pseudopalette (if needed) and
initialize the hardware CLUT (if needed).
BTW fb_setcolreg ends up writing half of the registers twice (more if you 
have to fill all slots). It might be better to have two functions. The 
first one would be the current fb_setcolreg except it wouldn't actually 
write anything. It would only fill in the correct register values. And the 
second one would write the clut to hardware. That would avoid the multiple 
writes.

-- 
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help