8-bit color emulator for 24 bit color framestore

Rob Gabbard sdrc!evgabb at uunet.uu.net
Wed Feb 7 06:50:38 AEST 1990


In article <4543 at brazos.Rice.edu>, sjh at briar.philips.com (Stephen Herman;6072;2.46d;$0310) writes:
> Late spring of 1989 I was told by SUN that they will release an 8-bit
> color simulator for their new 24-bit color frame store systems so that

I haven't heard of any such beast but you should be able to run an 8-bit
application on the CG9 (GXP) as long as they linked with the shared
libraries.  The problem is that it will run sloooooooowwwwww ! The reason
for this is that as soon as you define a color table via
pixrect/pixwin/cgi the CG9 goes into 8-bit emulation mode and its about as
slow as running the software 8086 emulator on my Amiga :-). Pixrect now
uses an XBGR format for pixel colors on the CG9. Instead of specifying a
color table index the value is a packed decimal with the low order byte
red, next blue, next green and the high order bit is empty. The way to
convert between your color table and an XBGR value is the following:

	xbgr = red[index] + (blue[index] << 8) + (green[index] << 16);

assuming your color table is loaded up in red, green and blue;

If Sun is coming out with a quick way to do this I would be very
interested as well.

Rob Gabbard (uunet!sdrc!evgabb)                 _    /|
Workstation Systems Programmer                  \'o.O'
Structural Dynamics Research Corporation        =(___)=   
                                                   U



More information about the Comp.sys.sun mailing list