On Tue, 2 Apr 2002, Thruput Limited wrote: > Dear All, > > This is a repeat of a requirement from earlier this year. > > You are quite right the matrox card does support 8 bit Psuedocolor. > > When I requested before my problem is that I need two psuedocolor visuals. > > It was suggested that the second one could be done in software. This means > remapping the second psuedocolor one of the truecolou visuals. > > Also I have read the manual on the G400 hip set (670pages) and the no > reference to psuedocolor Color Lookup Tables. Where is this the CLUT > situated?
Are you are looking at the Matrox MGA-G400 Specification, Document Number 10617-MS-0101 June 2, 1999 (if you need it, XFree86 have this document, but I don't know whether it was obtained under a non-disclosure agreement - check with Davis Dawes) ? That document calls it a palette or LUT. There are at least two palettes; you want the one described in chapter 4.7, not the texture palette. You are interested in Direct Color Mode (BPP32DIR), which is already used when option "overlay" is used. You need to use a software LUT to convert each 8bit value into 24bits which you write into the memory currently used by the TrueColor visual (X interchanges the names "TrueColor" and "DirectColor" with respect to the chip document :-). > I am now need to start this project urgently. Where or who could supply this > expertise to start this happening? Sorry, I don't have the time to make you any promises, but I *may* investigate. I could promise that I could do this even if I had time. > The software I am trying to host onto Linux is from a Compaq Alpha with a > Barco controller that supports multiple psuedocolor visuals. The software > under TrueUnix 64 was written in C++/Motif. I understand that even though you know that it was written in C++, there is no possibility of modifying the application ? > Is there documentation available that explains the GUI between X windows and > the physical graphics card? How does Xfree86 determine what type of visuals > and how many from the graphics card? xc/programs/Xserver/hw/xfree86/doc/DESIGN is probably the nearest we have to documentation of the API between the server and the hardware drivers. The mga driver calls miSetVisualTypes (circa lines 3125-3145 in mga_driver.c) to tell the server what visuals the server supports; I would start looking in that routine; it may lead into fb or cfb routines, and you may end up writing custom versions of mga_storm.c or the xf8_32bpp module (or siblings). Note that this project will only allow one of the palettes to change in real time; some developers may be put of by a pseudocolor visual with a palette that can't be changed quickly (ie without redrawing the window). -- Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge [EMAIL PROTECTED] http://www.dpmms.cam.ac.uk/~werdna _______________________________________________ Xpert mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xpert
