Figuring out the terms used in the documentation

Alan Coopersmith alan.coopersmith at oracle.com
Sun Jun 7 20:21:55 UTC 2020


On 6/6/20 4:18 AM, Sleep wrote:
> ** Pixel format for 24 bit color depth visual is 0xRRGGBB,

While that's common, it's not the only one, and you have to check the bitmasks
to see which bits are red, green, and blue, especially if dealing with
big-endian vs. little-endian machines.

>     what is 8 bit color depth visual's format?

If it's a PseudoColor visual, which is the most common type for 8-bit,
then it's an index of an entry in the Colormap.

Other visual types are described at:
https://tronche.com/gui/x/xlib/window/visual-types.html
https://www.x.org/releases/current/doc/xproto/x11protocol.html#visual_information

-- 
	-Alan Coopersmith-               alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - https://blogs.oracle.com/alanc


More information about the xorg mailing list