summaryrefslogtreecommitdiff
path: root/deflate.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Change version number to 1.2.7.1.Mark Adler2012-05-021-1/+1
|
* Change version number to 1.2.7.Mark Adler2012-02-121-1/+1
|
* Change version number to 1.2.6.1.Mark Adler2012-01-291-1/+1
|
* Change version number to 1.2.6.Mark Adler2012-01-161-1/+1
|
* Make sure that no extra inserting is done if the strategy changes.Mark Adler2012-01-141-0/+3
|
* Insert the first two strings in the hash table after a flush.Mark Adler2012-01-131-3/+21
| | | | | | | | 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.
* Write out all of the available bits when using Z_BLOCK.Mark Adler2012-01-071-6/+9
| | | | | | | | Previously, the bit buffer would hold 1 to 16 bits after "all" of the output is provided after a Z_BLOCK deflate() call. Now at most seven bits remain in the output buffer after Z_BLOCK. flush_pending() now flushes the bit buffer before copying out the byte buffer, in order for it to really flush as much as possible.
* Allow deflatePrime() to insert bits in the middle of a stream.Mark Adler2012-01-071-4/+18
| | | | | This allows the insertion of multiple empty static blocks for the purpose of efficiently bringing a stream to a byte boundary.
* Permit Z_NULL arguments to deflatePending.Mark Adler2011-12-291-2/+4
| | | | | This avoids having to create useless variables for return values that aren't needed.
* Avoid extraneous empty blocks when doing empty flushes.Mark Adler2011-12-291-10/+35
| | | | | | | Previously when doing an empty flush, a extra static or stored block could be emitted before the requested empty static or stored block. This patch prevents the emission of empty blocks by the deflate_* functions.
* Permit stronger flushes after Z_BLOCK flushes.Mark Adler2011-12-281-1/+4
| | | | | | | | | | | The incorporation of the Z_BLOCK flush did not update the rejection of lower ranked flushes immediately after higher ranked flushes with no more input data. This prevented an empty Z_SYNC_FLUSH right after a Z_BLOCK flush, which would be desired to bring the deflate stream to a byte boundary conditionally on whether or not it was already at a byte boundary. This patch re-ranks Z_BLOCK above Z_NO_FLUSH but below Z_PARTIAL_FLUSH, allowing stronger empty flushes to follow a Z_BLOCK flush.
* Change version numbers to 1.2.5.3.Mark Adler2011-12-181-1/+1
|
* Enable dictionary setting in middle of stream, and keeping the dictionary.Mark Adler2011-12-081-27/+63
| | | | | | | | | | | | | | | | | | | This patch adds the deflateResetKeep() function to retain the sliding window for the next deflate operation, and fixes an inflateResetKeep() problem that came from inflate() not updating the window when the stream completed. This enables constructing and decompressing a series of concatenated deflate streams where each can depend on the history of uncompressed data that precedes it. This generalizes deflateSetDictionary() and inflateSetDictionary() to permit setting the dictionary in the middle of a stream for raw deflate and inflate. This in combination with the Keep functions enables a scheme for updating files block by block with the transmission of compressed data, where blocks are sent with deflateResetKeep() to retain history for better compression, and deflateSetDictionary() is used for blocks already present at the receiver to skip compression but insert that data in the history, again for better compression. The corresponding inflate calls are done on the receiver side.
* Add a ./config --solo option to make zlib subset with no libary useMark Adler2011-10-071-5/+14
| | | | | | | | A common request has been the ability to compile zlib to require no other libraries. This --solo option provides that ability. The price is that the gz*, compress*, and uncompress functions are eliminated, and that the user must provide memory allocation and free routines to deflate and inflate when initializing.
* Add assertions to fill_window() in deflate.c to match comments.Mark Adler2011-09-221-0/+5
|
* Assure that high-water mark initialization is always applied in deflate.Mark Adler2011-09-221-1/+1
|
* Avoid searching past window for Z_RLE strategy.Mark Adler2011-09-221-3/+4
| | | | | | | Without this, Z_RLE could under some circumstances read one byte past the end of the allocated sliding window. This would normally not be a problem unless the window is right at the end of an allocated page, or if a bounds checker is being used.
* Change version numbers to 1.2.5.2 and release datesMark Adler2011-09-111-1/+1
| | | | | | Also added "-motley" to ZLIB_VERSION in zlib.h, so that versions in-between 1.2.5.1 and 1.2.5.2 that are pulled down from github can be identified as such if bugs are reported on them.
* zlib 1.2.5.1v1.2.5.1Mark Adler2011-09-111-6/+18
|
* zlib 1.2.5v1.2.5Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.5v1.2.4.5Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.4v1.2.4.4Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.3v1.2.4.3Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.2v1.2.4.2Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4.1v1.2.4.1Mark Adler2011-09-091-1/+1
|
* zlib 1.2.4-pre1v1.2.4-pre1Mark Adler2011-09-091-6/+6
|
* zlib 1.2.3.9v1.2.3.9Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.8v1.2.3.8Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.7v1.2.3.7Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.6v1.2.3.6Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.5v1.2.3.5Mark Adler2011-09-091-54/+85
|
* zlib 1.2.3.4v1.2.3.4Mark Adler2011-09-091-20/+55
|
* zlib 1.2.3.3v1.2.3.3Mark Adler2011-09-091-1/+1
|
* zlib 1.2.3.2v1.2.3.2Mark Adler2011-09-091-2/+2
|
* zlib 1.2.3.1v1.2.3.1Mark Adler2011-09-091-14/+46
|
* zlib 1.2.3v1.2.3Mark Adler2011-09-091-1/+1
|
* zlib 1.2.2.4v1.2.2.4Mark Adler2011-09-091-10/+72
|
* zlib 1.2.2.3v1.2.2.3Mark Adler2011-09-091-4/+23
|
* zlib 1.2.2.2v1.2.2.2Mark Adler2011-09-091-10/+15
|
* zlib 1.2.2.1v1.2.2.1Mark Adler2011-09-091-13/+161
|
* zlib 1.2.2v1.2.2Mark Adler2011-09-091-2/+2
|
* zlib 1.2.1.2v1.2.1.2Mark Adler2011-09-091-1/+1
|
* zlib 1.2.1.1v1.2.1.1Mark Adler2011-09-091-1/+1
|
* zlib 1.2.1v1.2.1Mark Adler2011-09-091-1/+1
|
* zlib 1.2.0.8v1.2.0.8Mark Adler2011-09-091-1/+13
|
* zlib 1.2.0.7v1.2.0.7Mark Adler2011-09-091-1/+1
|
* zlib 1.2.0.6v1.2.0.6Mark Adler2011-09-091-1/+1
|
* zlib 1.2.0.5v1.2.0.5Mark Adler2011-09-091-11/+13
|
* zlib 1.2.0.4v1.2.0.4Mark Adler2011-09-091-48/+99
|
* zlib 1.2.0.3v1.2.0.3Mark Adler2011-09-091-1/+1
|