Re: Ogg encapsulation
Ralph Giles <giles-zeIfkxP3e/[email protected]> Sun, 4 Apr 2004 17:08:53 -0700
| Newsgroups | gmane.comp.graphics.mng.general |
|---|---|
| Message-ID | <[email protected]> |
On Sun, Apr 04, 2004 at 06:28:56PM -0400, Cosmin Truta wrote: > If you are using zlib-1.2.1, try Z_RLE. It is about +5% slower than > Z_HUFFMAN_ONLY, but it gives a little better compression. > > If you use any of these two strategies, chances are that you might > actually save time, compared to the uncompressed solution. This is > because the processing overhead of Z_RLE & friend might be smaller than > the I/O overhead incurred over the larger amount of uncompressed data. Thanks for the optimization pointers. Good point about data rates. As always, profile first. :) Having done some more reading, I can confirm that zlib supports uncompressed data. One just has to insert a 3 byte block header every 64 kB. This has the advantage that a very thin and stupid code can dump out data in legal form without depending on zlib and libpng. -r -- Send the message body "help" to [email protected]