Received: from [140.186.70.92] (port=35830 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OOsWE-0007qW-1c for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:19:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OOsW6-0003LR-Gt for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:19:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:4658) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OOsW6-0003LD-AF for qemu-devel@nongnu.org; Wed, 16 Jun 2010 09:18:54 -0400 From: Juan Quintela In-Reply-To: <1276672333-14831-2-git-send-email-corentincj@iksaif.net> (Corentin Chary's message of "Wed, 16 Jun 2010 09:11:58 +0200") References: <1276672333-14831-1-git-send-email-corentincj@iksaif.net> <1276672333-14831-2-git-send-email-corentincj@iksaif.net> Date: Wed, 16 Jun 2010 15:18:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 01/16] vnc: tight: add JPEG and gradient subencoding with smooth image detection List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Corentin Chary Cc: Anthony Liguori , qemu-devel@nongnu.org, Alexander Graf Corentin Chary wrote: > Add gradient filter and JPEG compression with an heuristic to detect how > lossy the comppression will be. This code has been adapted from > libvncserver/tight.c. > > JPEG support can be enabled/disabled at compile time with --enable-vnc-jpeg > and --disable-vnc-jpeg. > > Signed-off-by: Corentin Chary > --- > Makefile.target | 1 + > configure | 33 +++ > vnc-encoding-tight.c | 559 +++++++++++++++++++++++++++++++++++++++++++++++++- > vnc-encoding-tight.h | 5 + > vnc.h | 4 + > 5 files changed, 601 insertions(+), 1 deletions(-) > > diff --git a/Makefile.target b/Makefile.target > index 478b89d..d9e888a 100644 > --- a/Makefile.target > +++ b/Makefile.target > @@ -177,6 +177,7 @@ LIBS+=-lz > > QEMU_CFLAGS += $(VNC_TLS_CFLAGS) > QEMU_CFLAGS += $(VNC_SASL_CFLAGS) > +QEMU_CFLAGS += $(VNC_JPEG_CFLAGS) > > # xen backend driver support > obj-$(CONFIG_XEN) += xen_machine_pv.o xen_domainbuild.o > diff --git a/configure b/configure > index c0d8aa5..304b4b0 100755 > --- a/configure > +++ b/configure > @@ -268,6 +268,7 @@ uuid="" > vde="" > vnc_tls="" > vnc_sasl="" > +vnc_jpeg="" init it to "no" > xen="" > linux_aio="" > vhost_net="" > ########################################## > +# VNC JPEG detection > +if test "$vnc_jpeg" = "yes" ; then and use here != "no" as a test as the rest of the conditions, that way you only need to look in one place to know what is the default. Yes, no documentation yet :( Later, Juan.