24-bit color support to Xvnc

Corne Beerse cbeerse "at" gmail.com
Thu Jun 19 07:57:01 2008


paresh masani wrote:
> That what i am doing. Please refer below command in
>
> Xvnc :10 -desktop 'UNIX" -httpd /usr/local/vnc/classes -auth /.Xauthority
> -geometry 1268x896 -depth 24 -pixelformat RGB888 -rfbwait 30000 -rfbauth
> /passwd -pn -fp
>
> Here specified depth is 24 then also i am getting pixel formate depth is 16.
> Please refer attached file.
>
> Thanks,
> Paresh
>   
On top of my previous answer, with Xvnc there is something else: There 
is the X11 side and the VNC side. With the -depth option, I think you 
are setting the X11 colordepth. If you peek at the vnc-connection, that 
can be an other colordepth, as a result of the negotiation between the 
vnc-server (Xvnc, vnc side) and the vncviewer (maybe on a 16 bits 
display...)

 From the manpage at 
http://www.realvnc.com/products/free/3.3.7/man/Xvnc.html:
-depth depth      Specify the pixel depth in bits of the desktop to be 
created. Default is 8, other possible values are 15, 16 and 24 - 
anything else is likely to cause strange behaviour by applications

So the -depth is for the X11 (unix-windowing) side. It is the base in 
which the pictures are drawn. In your case, it is given als 24 (the 
'depth 24' and uses 32 bits per pixel (the '32bpp').

The pixel format gives what you see at the vncviewer side, this is the 
result of the negotiation between the vncviewer application, the 
(vncviewer-) local display and the connection between the vncviewer and 
the vncserver.

Groet

CBee