commit | 82c9e1972da2a973f27cccfa7272226538ebcf47 | [log] [tgz] |
---|---|---|
author | Zoltan Szabadka <szabadka@google.com> | Tue Jan 12 14:45:35 2016 +0100 |
committer | Zoltan Szabadka <szabadka@google.com> | Tue Jan 12 14:45:35 2016 +0100 |
tree | f426c6e5224520d2286003909e467727dfeb2c59 | |
parent | 4d5ce42e4b1f878a8101ed654b8cd62b961883ee [diff] |
Relax the prerequisites of WriteBrotliData(). Instead of returning false, if it is called with no new input for a non-last block, just check if it has any already processed data to flush, and if not, return true with empty output.
Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
The specification of the Brotli Compressed Data Format is defined in the following internet draft: http://www.ietf.org/id/draft-alakuijala-brotli
Brotli is open-sourced under the MIT License, see the LICENSE file.
Brotli mailing list: https://groups.google.com/forum/#!forum/brotli