From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37992 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEgHv-0007nK-LM for qemu-devel@nongnu.org; Wed, 19 May 2010 06:14:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEgHs-00043Q-Vf for qemu-devel@nongnu.org; Wed, 19 May 2010 06:14:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26088) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEeSY-0000Vd-DQ for qemu-devel@nongnu.org; Wed, 19 May 2010 04:17:04 -0400 Message-ID: <4BF39E72.6070906@redhat.com> Date: Wed, 19 May 2010 10:16:50 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <1273063904-6028-1-git-send-email-kraxel@redhat.com> <1273063904-6028-2-git-send-email-kraxel@redhat.com> <4BE3BBA1.3010007@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 1/3] cursor: add cursor functions. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Paolo Bonzini , qemu-devel@nongnu.org >>> Then there would be no need of parsing. >> >> You would need _two_ bitmaps (e.g. mask and cursor, so that mask=1 gives >> transparent, mask=0 cursor=0 gives black and mask=0 cursor=1 gives white). > > Yes, but it's still packed more efficiently. Well. You can't have both. We can have a efficiently packed format (i.e. two bitmaps). Or we can do it in a way which doesn't need parsing, but that wouldn't be the most compact format ... > There's yet another way: > #define _ 0, > #define X 0xff000000, > #define o 0xffffffff, > { > _ _ _ X o X _ _ _ > } > #undef _ > #undef X > #undef o Neat idea ;) cheers, Gerd