nanogui: Palette or TrueColor?


Previous by date: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, linuxhh
Next by date: 15 Dec 2001 03:03:28 -0000 problem, Bug cheng
Previous in thread: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, linuxhh
Next in thread: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, Greg Haerr

Subject: RE: RE: Re: [nanogui] Palette or TrueColor?
From: linuxhh ####@####.####
Date: 15 Dec 2001 03:03:28 -0000
Message-Id: <20011215030018.11507.qmail@sina.com>

----- Original Message -----
From:linuxhh ####@####.####
To:'Greg Haerr' ####@####.####
Subject:RE: Re: [nanogui] Palette or TrueColor?
Date:Sat, 15 Dec 2001 10:15:44 +0800
 >----- 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 "driversblin12.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)	\n >	((((r) & 0x0f) << 8) | (((g) & 0x0f) << 4) | ((b) & 0x0f))
 >or
 >use high order of RGB color?
 >
Another question: if i use 444 truecolor then 
"psd->pixtype = TRUECOLOR444"
When I use GdSetPalette to set my palettte, 
if(psd->pixtype != MWPF_PALETTE)
		return;
will return my request. How can i do?

 >
 > >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)
 >
 >---------------------------------------------------------------------
 >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)

Previous by date: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, linuxhh
Next by date: 15 Dec 2001 03:03:28 -0000 problem, Bug cheng
Previous in thread: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, linuxhh
Next in thread: 15 Dec 2001 03:03:28 -0000 Re: Palette or TrueColor?, Greg Haerr


Powered by ezmlm-browse 0.20.