Itterative detection of deflate parameters
- From: byaarov@xxxxxxxxx
- Date: 24 Mar 2007 09:36:15 -0700
I am trying to iteratively detect what deflate parameters (level and
memLevel) were used to compress the input stream.
My general approach is to initialize deflateInit2 with various
combinations of level and memLevel (81 combinations) and then see if I
can first inflate the input (a few bytes at a time), then pass those
bytes into deflate and see if the output compressed bytes match the
input.
In order to guarantee that deflate pushed all of its compressed bytes
into the output, should I be setting the flag Z_SYNC_FLUSH to each
call of deflate so that all the compressed bytes are available for
comparison?
B
.
- Follow-Ups:
- Re: Itterative detection of deflate parameters
- From: Mark Adler
- Re: Itterative detection of deflate parameters
- Prev by Date: Re: Quality factor and bits per pixel in JPEG
- Next by Date: Re: Quality factor and bits per pixel in JPEG
- Previous by thread: Detecting start of deflate stream in a binary stream
- Next by thread: Re: Itterative detection of deflate parameters
- Index(es):
Relevant Pages
|
|