wrong colours with a 16 depth
Stefan Ledent
sledent "at" switch.be
Thu, 02 Mar 2000 10:14:48 +0000
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BF842F.2AE02E0C
Content-Type: text/plain;
charset="iso-8859-1"
Yes I had also problems with the 16 bits collours, although I am sure it
must be possible, I found
a good alternative: use the 15bit collours with RGB555 or BGR555.
Stefan Ledent.
-----Original Message-----
From: Frederic Dumas [mailto:fdumas "at" ina.fr]
Sent: Wednesday 1 March 2000 17:49
To: vnc-list "at" uk.research.att.com
Subject: wrong colours with a 16 depth
Hello,
I am running vnc server from a linuc pc with:
vncserver -depth 16 -geometry 1280x1024
When the viewer is set with a 16 depth, I do not get all the
colours
right. It only works well with a 24 depth, which is slower
and weird, as
the server only uses a 16 depth. I have tried to play with
the command
options and did not succeed in having a 16 depth with all
colours. I
have tried to follow FAQ suggestions with no result. Does
anyone have a
hint on this problem?
Thanks for any help,
Frederic
--
PS:
- I use the following versions:
vnc-3.3.3r1_unixsrc.tgz
vnc-3.3.3r1_x86_linux_2.0.tgz
- I run the viewer on an sgi workstation (Irix 5.3). I have
removed (!)
the usleep lines in the source as it is not known by Irix
5.3 (I do not
think it could be the problem?)
- 'vncviewer -truecolour -depth 24' gives the right colours
and produces
the following output:
VNC authentication succeeded
Desktop name "fdumas's X desktop (pc1.ina.fr:1)"
Connected to VNC server, using protocol version 3.3
VNC server default format:
16 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 63 green 31 blue 31, shift red 0
green 6 blue 11
Using TrueColor visual, depth 24. Pixel format:
32 bits per pixel.
Most significant byte first in each pixel.
True colour: max red 255 green 255 blue 255, shift red 0
green 8 blue
16
- 'vncviewer -truecolour -depth 16' gives wrong colours and
produces the
following output:
Connected to VNC server, using protocol version 3.3
VNC server default format:
16 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 63 green 31 blue 31, shift red 0
green 6 blue 11
Couldn't find a matching TrueColor visual.
Using default colormap and translating from BGR233. Pixel
format:
8 bits per pixel.
True colour: max red 7 green 7 blue 3, shift red 0 green 3
blue 6
Got 149 exact BGR233 colours out of 256
Using 20 existing shared colours
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe
vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------
------_=_NextPart_001_01BF842F.2AE02E0C
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>RE: wrong colours with a 16 depth</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Yes I had also problems with the 16 =
bits collours, although I am sure it must be possible, I found</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">a good alternative: use the 15bit =
collours with RGB555 or BGR555.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Stefan Ledent.</FONT>
<BR> =20
</P>
<UL><UL>
<P><A NAME=3D"_MailData"><FONT SIZE=3D2 FACE=3D"Arial">-----Original =
Message-----</FONT></A>
<BR><B><FONT SIZE=3D2 FACE=3D"Arial">From: Frederic Dumas =
[<A HREF=3D"mailto:fdumas "at" ina.fr">mailto:fdumas "at" ina.fr</A>]</FONT></B>
<BR><B><FONT SIZE=3D2 FACE=3D"Arial">Sent: </FONT></B> <FONT =
SIZE=3D2 FACE=3D"Arial">Wednesday 1 March 2000 17:49</FONT>
<BR><B><FONT SIZE=3D2 =
FACE=3D"Arial">To: </FONT></B> <FONT SIZE=3D2 =
FACE=3D"Arial">vnc-list "at" uk.research.att.com</FONT>
<BR><B><FONT SIZE=3D2 =
FACE=3D"Arial">Subject: </FONT>=
</B> <FONT SIZE=3D2 FACE=3D"Arial">wrong colours with a 16 depth</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Hello,</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I am running vnc server from a linuc =
pc with:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">vncserver -depth 16 -geometry =
1280x1024 </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">When the viewer is set with a 16 =
depth, I do not get all the colours</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">right. It only works well with a 24 =
depth, which is slower and weird, as</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the server only uses a 16 depth. I =
have tried to play with the command</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">options and did not succeed in having =
a 16 depth with all colours. I</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">have tried to follow FAQ suggestions =
with no result. Does anyone have a</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">hint on this problem?</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks for any help,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Frederic</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">--</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">PS:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">- I use the following =
versions:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">vnc-3.3.3r1_unixsrc.tgz</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">vnc-3.3.3r1_x86_linux_2.0.tgz </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">- I run the viewer on an sgi =
workstation (Irix 5.3). I have removed (!)</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the usleep lines in the source as it =
is not known by Irix 5.3 (I do not</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">think it could be the =
problem?)</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">- 'vncviewer -truecolour -depth 24' =
gives the right colours and produces</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the following output:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">VNC authentication succeeded</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Desktop name "fdumas's X desktop =
(pc1.ina.fr:1)"</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Connected to VNC server, using =
protocol version 3.3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">VNC server default format:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> 16 bits per pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> Least significant byte first =
in each pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> True colour: max red 63 green =
31 blue 31, shift red 0 green 6 blue 11</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Using TrueColor visual, depth =
24. Pixel format:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> 32 bits per pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> Most significant byte first in =
each pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> True colour: max red 255 green =
255 blue 255, shift red 0 green 8 blue</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">16</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">- 'vncviewer -truecolour -depth 16' =
gives wrong colours and produces the</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">following output:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Connected to VNC server, using =
protocol version 3.3</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">VNC server default format:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> 16 bits per pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> Least significant byte first =
in each pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> True colour: max red 63 green =
31 blue 31, shift red 0 green 6 blue 11</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Couldn't find a matching TrueColor =
visual.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Using default colormap and =
translating from BGR233. Pixel format:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> 8 bits per pixel.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"> True colour: max red 7 green 7 =
blue 3, shift red 0 green 3 blue 6</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Got 149 exact BGR233 colours out of =
256</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Using 20 existing shared =
colours</FONT>
</P>
<P><FONT SIZE=3D2 =
FACE=3D"Arial">---------------------------------------------------------=
------------</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">To unsubscribe, send a message with =
the line: unsubscribe vnc-list</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">to =
majordomo "at" uk.research.att.com</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">See also: <A =
HREF=3D"http://www.uk.research.att.com/vnc/intouch.html" =
TARGET=3D"_blank">http://www.uk.research.att.com/vnc/intouch.html</A></F=
ONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial">---------------------------------------------------------=
------------</FONT>
</P>
</UL></UL>
</BODY>
</HTML>
------_=_NextPart_001_01BF842F.2AE02E0C--
---------------------------------------------------------------------
To unsubscribe, send a message with the line: unsubscribe vnc-list
to majordomo "at" uk.research.att.com
See also: http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------