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.
(1) Move all variable declarations to the beginning of the block.
(2) Remove 'z' printf modifiers.
(3) Fix 'comma at the end of enumeration list' warning.
- Added further checks
- Removed commenting-out code
- Fixed style ("type &variable" -> "type& variable")
- In RecunstructTransformed(), the 6th argument of RecunstructGlyf()
call should be |loca_table->dst_length|, not |loca_table->dst_offset|.
BUG=none
TEST=compiled
Review URL: https://codereview.appspot.com/6160043
This CL also changes pointer declarations from "type *variable" to "type* variable" to follow other OTS code.
BUG=none
TEST=compiled
Review URL: https://codereview.appspot.com/6139064