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
@         : [email protected]
Jabber    : [email protected]
GPG Key ID: 0x18CA62CC (pgp.mit.edu)
_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: [email protected]

Reply via email to