All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vesa Jääskeläinen" <chaac@nic.fi>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: DEFLATE compression
Date: Mon, 23 Jun 2008 18:14:05 +0300	[thread overview]
Message-ID: <485FBDBD.1070003@nic.fi> (raw)
In-Reply-To: <ca0f59980806230715j50ff5f74g98be375e089d8016@mail.gmail.com>

Bean wrote:
> On Mon, Jun 23, 2008 at 9:36 PM, Colin D Bennett <colin@gibibit.com> wrote:
>> 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.
>>
>> Also, is it possible to tell the gzio module to decompress a block of
>> data beginning at a specific offset in the file?
> 
> Hi,
> 
> I think it's better to move the deflate decompression function into a
> separate module, instead of relying on gzio. I have written similar
> deflate function for pnp.c, but it uses callback mode, which call a
> function to retrieve the next character. It'd be nice to unify all
> deflate decompression in one module, but you need to be careful about
> the interface, so that it can be used in both situation (direct and
> callback mode).

Hi Bean,

Can you check the interface as you have previously worked with it? This 
would free Colin to work on more important aspects.

Thanks,
Vesa Jääskeläinen




  reply	other threads:[~2008-06-23 15:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23 13:36 DEFLATE compression Colin D Bennett
2008-06-23 14:15 ` Bean
2008-06-23 15:14   ` Vesa Jääskeläinen [this message]
2008-06-23 15:25     ` Bean
2008-06-23 15:28       ` Vesa Jääskeläinen
2008-06-23 15:36       ` Colin D Bennett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=485FBDBD.1070003@nic.fi \
    --to=chaac@nic.fi \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.