From patchwork Mon Jun 7 06:08:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Chary X-Patchwork-Id: 54830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2FE1EB7D8F for ; Mon, 7 Jun 2010 16:09:51 +1000 (EST) Received: from localhost ([127.0.0.1]:37241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLVWt-0003MT-9b for incoming@patchwork.ozlabs.org; Mon, 07 Jun 2010 02:09:47 -0400 Received: from [140.186.70.92] (port=34372 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLVUy-0003Lc-88 for qemu-devel@nongnu.org; Mon, 07 Jun 2010 02:07:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLVUw-0002f3-Q3 for qemu-devel@nongnu.org; Mon, 07 Jun 2010 02:07:48 -0400 Received: from iksaif.net ([88.191.73.63]:54655) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLVUw-0002ej-Ki for qemu-devel@nongnu.org; Mon, 07 Jun 2010 02:07:46 -0400 Received: from tartiflon (lal69-3-82-241-209-44.fbx.proxad.net [82.241.209.44]) (Authenticated sender: corentincj@iksaif.net) by iksaif.net (Postfix) with ESMTPA id DEE3FC90058; Mon, 7 Jun 2010 08:11:54 +0200 (CEST) From: Corentin Chary To: qemu-devel@nongnu.org Date: Mon, 7 Jun 2010 08:08:05 +0200 Message-Id: <1275890889-13349-3-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1275890889-13349-1-git-send-email-corentincj@iksaif.net> References: <1275890889-13349-1-git-send-email-corentincj@iksaif.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Corentin Chary , Anthony Liguori , Alexander Graf , Adam Litke Subject: [Qemu-devel] [PATCH v2 2/6] vnc: JPEG should be disabled if the client don't set tight quality X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Disable JPEG compression by default and only enable it if the VNC client has sent the requested quality. Signed-off-by: Corentin Chary --- vnc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vnc.c b/vnc.c index ed0e096..9cf38d1 100644 --- a/vnc.c +++ b/vnc.c @@ -1644,7 +1644,7 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->features = 0; vs->vnc_encoding = 0; vs->tight_compression = 9; - vs->tight_quality = 9; + vs->tight_quality = -1; /* Lossless by default */ vs->absolute = -1; /*