dec/bit_reader.c


Log

Author Commit Date CI Message
Eugene Kliuchnikov e9b278ac 2016-10-31T14:33:59 Update docs and add more java tests (#463) * doxygenize and update API documentation * fix spelling * add "fuzz" corpus for java decoder to improve coverage * use upper-case-snake names for dictionary constant definitions * use `LDFLAGS` in conventional `Makefile`
Eugene Kliuchnikov 81480011 2016-08-23T14:40:33 Move "public" to "include/brotli"
Eugene Kliuchnikov 801f5f37 2016-08-22T13:28:22 * rename macros with preceding underscore * add Brotli*TakeOutput methods * * flushing now doesn't require additional call * add Brotli*Version methods * moved public headers to 'public' directory * removed C++ API * do not assume STDC_VERSION is defined
Eugene Kliuchnikov 43d4f45b 2016-07-25T10:17:04 Update decoder API: * replace prefix Brotli -> BrotliDecoder * add HasMoreOutput * make instance pointer the first argument * use boolean instead of int
Eugene Kliuchnikov f1c9ab29 2016-06-03T10:51:04 Extract common parts: constants, dictionary, etc.
Eugene Kliuchnikov 02829186 2016-06-03T10:51:04 Extract common parts: constants, dictionary, etc.
Eugene Kliuchnikov 23934731 2016-02-18T15:03:44 Update decoder: * More clear/safe "copy" command stage implementation * Enable unaligned memory access only on whitelisted CPUs * Remove unused streams.{c|h} * Add "default" to all switches * Fix includes * Fix spacing everywhere
Eugene Kliuchnikov 92e30239 2016-01-22T10:19:41 Update decoder. * Reduce memory usage * Update API documentation * Remove deprecated API * Move non-API declatarions from decode.h * Remove streams * Add more debug logging * Fix shift in BrotliBitReaderUnload * Allocate ringbuffer at later stages * Sort / fix includes * Fix whitespaces * Eliminate dead code * Drive-by code simplifications
Eugene Klyuchnikov 24ffa784 2015-12-11T11:11:51 Fix headers
Eugene Klyuchnikov 771eb107 2015-11-27T11:27:11 Update license statement in source files.
Eugene Klyuchnikov c0ba6d6f 2015-11-06T11:46:04 Brotli decoder: implement new streaming API
Zoltan Szabadka e44caf98 2015-09-25T17:57:19 Introduce a BROTLI_BUILD_PORTABLE macro to disable potentially dangerous optimizations.
Zoltan Szabadka a7cedfc2 2015-09-23T12:24:06 Update brotli decoder with latest improvements.
Lode Vandevenne db71549a 2015-08-28T15:20:24 update brotli decoder with latest improvements
Lode Vandevenne fee303fd 2015-08-10T14:18:37 fix brotli decoder MSVC compilation error
Lode Vandevenne 94cd7085 2015-08-10T13:35:23 brotli decoder performance improvements
Zoltan Szabadka 83aa24dc 2015-05-07T16:53:43 Speed and memory usage improvements for the decoder. * Change order of members of bit reader state structure. * Remove unused includes for assert. Add BROTLI_DCHECK macros and use it instead of assert. * Do not calculate nbits in common case of ReadSymbol. * Introduce and use PREDICT_TRUE / PREDICT_FALSE macros. * Allocate less memory in the brotli decoder if it knows the result size beforehand. Before this, the decoder would always allocate 16MB if the encoder annotated the window size as 22 bit (which is the default), even if the file is only a few KB uncompressed. Now, it'll only allocate a ringbuffer as large as needed for the result file. But only if it can know the filesize, it's not possible to know that if there are multiple metablocks or too large uncompressed metablock.
Lode Vandevenne 8270250b 2015-03-20T16:13:15 support for partial input (streaming)
Lode Vandevenne 81cb09f1 2015-03-20T15:44:15 separate the licenses from documentation
Zoltan Szabadka 0454ab4e 2014-02-14T15:04:23 Updates to Brotli compression format, decoder and encoder This commit contains a batch of changes that were made to the Brotli compression algorithm in the last month. Most important changes: * Fixes to the spec. * Change of code length code order. * Use a 2-level Huffman lookup table in the decoder. * Faster uncompressed meta-block decoding. * Optimized encoding of the Huffman code. * Detection of UTF-8 input encoding. * UTF-8 based literal cost modeling for improved backward reference selection.
Zoltan Szabadka d01c71c4 2014-01-08T12:34:35 Fix -Wconversion compiler warnings in the brotli decoder.
Zoltan Szabadka b8a10085 2013-12-16T14:45:57 Use C-style comments in the brotli decoder.
Zoltan Szabadka c6b9c7c5 2013-11-15T19:02:17 Updates to Brotli compression format, decoder and encoder This commit contains a batch of changes that were made to the Brotli compression algorithm in the last three weeks. Most important changes: * Added UTF8 context model for good text compression. * Simplified context modeling by having only 4 context modes. * Per-block context mode selection. * Faster backward copying and bit reading functions. * More efficient histogram coding. * Streaming support for the decoder and encoder.
Zoltan Szabadka 8f30907d 2013-10-11T10:26:07 Add brotli decompressor This commit is for the decoder for brotli compression format. Brotli is a generic byte-level compression algorithm.