Image depth, visuals and colormaps
Alexandre CONFIANT-LATOUR
cmwachoukette at gmail.com
Wed May 30 01:32:25 PDT 2012
Hi,
I'm currently working on a small video driver module, based on "Dummy
driver" and i am trying to provide a run-time color depth change. My
work is server-side only and i don't use Xlib.
The original "Dummy" driver is a software driver that draw things in
memory. There is no hardware limitations but also no outputs. So i
export frames using :
------------------------------- Begin Code------------------------------
screenPixmap = pScreen->GetScreenPixmap(pScreen);
pScreen->GetImage( &screenPixmap->drawable, 0, 0,
pScreen->width, pScreen->height,
ZPixmap, 0xFFFFFFFF, myOutBuffer );
then write buffer to file, socket, ...
-------------------------------- End Code-------------------------------
What are the "good practices" for getting "on the fly" color depth
switching to work ?
Can i implements this through Visuals or Colormaps ?
Thanks in advance.
--
Alexandre Confiant-Latour
WWW : http://user-unfriendly.net
@ : cmwachoukette at gmail.com
Jabber : choukette at im.apinc.org
GPG Key ID: 0x18CA62CC (pgp.mit.edu)
More information about the xorg
mailing list