Article View: comp.sys.sun
Article #13676Re: 8-bit color emulator for 24 bit color framestore
From: Rob Gabbard
Date: Tue, 06 Feb 1990 19:50
Date: Tue, 06 Feb 1990 19:50
26 lines
1864 bytes
1864 bytes
In article <4543@brazos.Rice.edu>, sjh@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
Technical Details
Message-ID:
<4802@brazos.Rice.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rice!sun-spots-request From: sdrc!evgabb@uunet.uu.net (Rob Gabbard) Newsgroups: comp.sys.sun Subject: Re: 8-bit color emulator for 24 bit color framestore Keywords: Windows Message-ID: <4802@brazos.Rice.edu> Date: 6 Feb 90 19:50:38 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n17 X-Sun-Spots-Digest: Volume 9, Issue 37, message 1