nanogui: Palette or TrueColor?
Subject:
RE: Re: [nanogui] Palette or TrueColor?
From:
linuxhh ####@####.####
Date:
15 Dec 2001 02:15:41 -0000
Message-Id: <20011215021544.18402.qmail@sina.com>
----- Original Message -----
From:"Greg Haerr" ####@####.####
To:"linuxhh" ####@####.####
Subject:Re: [nanogui] Palette or TrueColor?
Date:Sat, 8 Dec 2001 01:23:45 +0800
>: 1. Because this LCD only have 4096 color, how can I deal with the pallette of
>MicroWindow?
>: 2. There isn't any code to manage the 12BPP besides in "driversblin12.c".
>Can I regard my platform as 256 color( 8BPP palette ) or 4096 color( 12BPP
>444TrueColor )?
>
>I think the best approach is to set up the framebuffer for 444 truecolor,
>and then use the ioctl functions in drivers/scr_fb.c to set up the internal
>linux palette. In this way, Microwindows will see the framebuffer as truecolor,
>rather than a > 256 color palette.
>
I have try to set up the framebuffer for 444 truecolor. But how can i define RGB2PIXEL444 in "device.h"?
#define RGB2PIXEL444(r,g,b) \
((((r) & 0x0f) << 8) | (((g) & 0x0f) << 4) | ((b) & 0x0f))
or
use high order of RGB color?
>Please send me the completed 12bpp driver if you get this working.
Ok, i will clean up my code then send to you. :)
Now code is very tousy.
>
>Regards,
>
>Greg
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ####@####.####
>For additional commands, e-mail: ####@####.####
>
>
>
===================================================================
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
ÐÂÀË·ÖÀàÐÅÏ¢£ºÇáËɶ©ÔÄ£¬Á¿Éí¶¨ÖÆ£¡ÖÜÖÜÓÐÀñ£¬´ó½±µÈÄ㣡 (http://classad.sina.com.cn/)
ÐÂÀËÉÁ˸¶ÌÐÅÉÁÁÁµÇ³¡ ´«ÇéÎÞÏÞ (http://sms.sina.com.cn/cgi-bin/sms/smspic.cgi?spec=11&type=0)