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 9c2cd7f commit 04579cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ system log.
3. Fixed a regression introduced by 2.2 beta1[7] that prevented the TurboVNC
Server from being used as an inetd service.

4. 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.1.2
=====
Expand Down
3 changes: 2 additions & 1 deletion java/com/turbovnc/rfb/CMsgWriter.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 2012, 2015, 2017-2018, 2020-2023 D. R. Commander.
/* Copyright (C) 2012, 2015, 2017-2018, 2020-2024 D. R. Commander.
* All Rights Reserved.
* Copyright 2009-2011, 2017-2019 Pierre Ossman for Cendio AB
* Copyright (C) 2011, 2015 Brian P. Hinz
Expand Down Expand Up @@ -418,6 +418,7 @@ public synchronized void writeSetEncodings(int preferredEncoding,
encodings[nEncodings++] = RFB.ENCODING_QEMU_LED_STATE;
encodings[nEncodings++] = RFB.ENCODING_VMWARE_LED_STATE;
}
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 2009, 2011, 2019 Pierre Ossman for Cendio AB
* Copyright (C) 2011-2012 Brian P. Hinz
* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
Expand Down Expand Up @@ -217,6 +217,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 04579cb

Please sign in to comment.