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.coopersm...@oracle.com
         Oracle Solaris Engineering - https://blogs.oracle.com/alanc
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: https://lists.x.org/mailman/listinfo/xorg
Your subscription address: %(user_address)s

Reply via email to