Skip to contentSkip to conversation

libvncserver: add config option for tightpng encoding support

PATCH New Floris Bos 2 participants 2 messages Dec 27, 2014

lore
Share & tools
lore

Floris Bos

author
#0 lore raw

PATCH v2 1/1 libvncserver: add config option for tightpng encoding support

TightPNG encoding speeds up HTML5 based VNC clients like noVNC. libvncserver enables this encoding if both libpng and jpeg libraries are available.

---
 package/libvncserver/Config.in       | 13 +++++++++++++
 package/libvncserver/libvncserver.mk |  6 ++++++
 2 files changed, 19 insertions(+)
package/libvncserver/Config.in +13 -0
index 07b77f5..7d8272f 100644
@@ -5,3 +5,16 @@ config BR2_PACKAGE_LIBVNCSERVER
 	  libvncserver is a VNC server/client library.
 
 	  http://libvncserver.sourceforge.net/
+
+if BR2_PACKAGE_LIBVNCSERVER
+
+config BR2_PACKAGE_LIBVNCSERVER_TIGHTPNG
+	bool "TightPNG encoding support"
+	select BR2_PACKAGE_JPEG
+	select BR2_PACKAGE_LIBPNG
+	help
+	  TightPNG encoding speeds up HTML5 based VNC clients like noVNC.
+
+	  http://wiki.qemu.org/VNC_Tight_PNG
+
+endif
package/libvncserver/libvncserver.mk +6 -0
index a8389b4..ed6b64d 100644
@@ -58,6 +58,12 @@ else
 LIBVNCSERVER_CONF_OPTS += --without-jpeg
 endif
 
+ifeq ($(BR2_PACKAGE_LIBPNG),y)
+LIBVNCSERVER_DEPENDENCIES += libpng
+else
+LIBVNCSERVER_CONF_OPTS += --without-png
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBVNCSERVER_DEPENDENCIES += zlib
 else
Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 libvncserver: add config option for tightpng encoding support

Dear Floris Bos,

Quoted 5 lines · Floris Bos

TightPNG encoding speeds up HTML5 based VNC clients like noVNC. libvncserver enables this encoding if both libpng and jpeg libraries are available.

Applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com