From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KAmEL-0007aj-Ds for mharc-grub-devel@gnu.org; Mon, 23 Jun 2008 09:37:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KAmEJ-0007ac-Ep for grub-devel@gnu.org; Mon, 23 Jun 2008 09:37:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KAmEH-0007aM-Oa for grub-devel@gnu.org; Mon, 23 Jun 2008 09:37:10 -0400 Received: from [199.232.76.173] (port=54679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KAmEH-0007aJ-Jt for grub-devel@gnu.org; Mon, 23 Jun 2008 09:37:09 -0400 Received: from gateway06.websitewelcome.com ([67.18.124.13]:56052) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KAmEH-0003xo-Ex for grub-devel@gnu.org; Mon, 23 Jun 2008 09:37:09 -0400 Received: (qmail 17132 invoked from network); 23 Jun 2008 13:42:41 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway06.websitewelcome.com with SMTP; 23 Jun 2008 13:42:41 -0000 Received: from c-67-185-142-228.hsd1.wa.comcast.net ([67.185.142.228]:51523 helo=localhost) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1KAmED-0007Sd-0J for grub-devel@gnu.org; Mon, 23 Jun 2008 08:37:05 -0500 Date: Mon, 23 Jun 2008 06:36:55 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20080623063655.068e5154@gibibit.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/OFhfiNqV=s5vQQCQMe.7.i3"; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: DEFLATE compression X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jun 2008 13:37:11 -0000 --Sig_/OFhfiNqV=s5vQQCQMe.7.i3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable How does GRUB support decompressing DEFLATE compressed data? Based on my reading of io/gzio.c, it looks like a gzip header is required to inflate deflated data. I am implementing a new font format and will be embedding multiple blocks of compressed bitmaps in the font file for a good combination of space efficient on-disk storage and fast read performance during use. A block of character bitmaps will only be read from the file and decompressed at run time when a character within that block is needed. After that, when any character in the block is needed, it is already decompressed in memory for quick access. I was going to use DEFLATE compression, it looks like I may have to add the gzip structure to it, which seems silly since it's just a block of data within my file.=20 Also, is it possible to tell the gzio module to decompress a block of data beginning at a specific offset in the file? Regards, Colin --Sig_/OFhfiNqV=s5vQQCQMe.7.i3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkhfpwAACgkQokx8fzcGbYfrxwCggn294TCyGySH7KwPBOguVksm 2UoAn0Q1HCmgwWVWEGewEGnCv8CQ2ZHc =PcOc -----END PGP SIGNATURE----- --Sig_/OFhfiNqV=s5vQQCQMe.7.i3--