Skip to content

Commit

Permalink
Viewer: Advertise Tight w/o Zlib pseudo-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dcommander committed Sep 25, 2024
1 parent 0d484be commit 6914550
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ system log.
16. Fixed a regression introduced by 2.2 beta1[7] that prevented the TurboVNC
Server from being used as an inetd service.

17. The "Tight Encoding Without Zlib" RFB extension, which was used
unofficially by the Lossless Tight encoding method since TurboVNC v0.5, has
been officially registered with IANA as an RFB pseudo-encoding. The TurboVNC
Viewer now advertises support for the pseudo-encoding. (The next major release
of the TurboVNC Server will forego using the extension unless the VNC viewer
advertises support for it.)


3.0.3
=====
Expand Down
5 changes: 3 additions & 2 deletions java/com/turbovnc/rfb/CMsgWriter.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (C) 2012, 2015, 2017-2018, 2020-2021 D. R. Commander.
* All Rights Reserved.
/* Copyright (C) 2012, 2015, 2017-2018, 2020-2021, 2024 D. R. Commander.
* All Rights Reserved.
* Copyright (C) 2011, 2015 Brian P. Hinz
* Copyright 2009-2011 Pierre Ossman for Cendio AB
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
Expand Down Expand Up @@ -77,6 +77,7 @@ public synchronized void writeSetEncodings(int preferredEncoding,
}
if (Utils.getBooleanProperty("turbovnc.gii", true))
encodings[nEncodings++] = RFB.ENCODING_GII;
encodings[nEncodings++] = RFB.ENCODING_TIGHT_WITHOUT_ZLIB;

if (Decoder.supported(preferredEncoding)) {
encodings[nEncodings++] = preferredEncoding;
Expand Down
6 changes: 4 additions & 2 deletions java/com/turbovnc/rfb/RFB.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (C) 2011-2012, 2015-2018, 2021-2022 D. R. Commander.
* All Rights Reserved.
/* Copyright (C) 2011-2012, 2015-2018, 2021-2022, 2024 D. R. Commander.
* All Rights Reserved.
* Copyright (C) 2011-2012 Brian P. Hinz
* Copyright 2009, 2011 Pierre Ossman for Cendio AB
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
Expand Down Expand Up @@ -223,6 +223,8 @@ public static String encodingName(int num) {
public static final int ENCODING_FINE_QUALITY_LEVEL_0 = -512;
public static final int ENCODING_FINE_QUALITY_LEVEL_100 = -412;

public static final int ENCODING_TIGHT_WITHOUT_ZLIB = -317;

public static final int ENCODING_CONTINUOUS_UPDATES = -313;
public static final int ENCODING_FENCE = -312;

Expand Down

0 comments on commit 6914550

Please sign in to comment.