summaryrefslogtreecommitdiff
path: root/deflate.h
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2012-01-13 23:54:40 -0600
committerMark Adler <madler@alumni.caltech.edu>2012-01-13 23:54:40 -0600
commit4f5779a8e78e0b1c8b1ecdea88d8456dada17823 (patch)
tree267f14f252dbc3f23e8c7f34a7ddce633491754e /deflate.h
parent0b828b4aa6c962ab46eae624578d77b35395b2c1 (diff)
downloadzlib-4f5779a8e78e0b1c8b1ecdea88d8456dada17823.tar.gz
Insert the first two strings in the hash table after a flush.
This allows deflate to generate the same output when continuing after a Z_SYNC_FLUSH vs. using deflateSetDictionary() after a Z_FULL_FLUSH or a deflateReset(). It also slightly improves compression when flushing by providing two more strings to possibly match at the start of the new block.
Diffstat (limited to 'deflate.h')
-rw-r--r--deflate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/deflate.h b/deflate.h
index d605fc6..fbac44d 100644
--- a/deflate.h
+++ b/deflate.h
@@ -247,6 +247,7 @@ typedef struct internal_state {
ulg opt_len; /* bit length of current block with optimal trees */
ulg static_len; /* bit length of current block with static trees */
uInt matches; /* number of string matches in current block */
+ uInt insert; /* bytes at end of window left to insert */
#ifdef DEBUG
ulg compressed_len; /* total bit length of compressed file mod 2^32 */