From 11df843cf019e0a18f5efce660693a30f487fb06 Mon Sep 17 00:00:00 2001 From: Eugene Kliuchnikov Date: Mon, 6 Feb 2017 14:20:43 +0100 Subject: Update encoder (#504) * pull `BROTLI_MAX_BACKWARD_LIMIT` to constants * split generic and Zopfli backward references code * pull hashers init and stitch invocation to encoder * make `dictionary_hash` a compilation unit * add `size hint` parameter * add new hasher * use `size hint` to pick new hasher for q4 * modernize clz guard (fix #495) * move `hash to binary tree` to separate file * add `Initialize` and `Cleanup` to all hashers * do not raise OOM if malloc(0) == NULL (fix #500) --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 5a9c275..66a473a 100644 --- a/setup.py +++ b/setup.py @@ -170,12 +170,14 @@ EXT_MODULES = [ 'dec/huffman.c', 'dec/state.c', 'enc/backward_references.c', + 'enc/backward_references_hq.c', 'enc/bit_cost.c', 'enc/block_splitter.c', 'enc/brotli_bit_stream.c', 'enc/cluster.c', 'enc/compress_fragment.c', 'enc/compress_fragment_two_pass.c', + 'enc/dictionary_hash.c', 'enc/encode.c', 'enc/entropy_encode.c', 'enc/histogram.c', @@ -199,6 +201,7 @@ EXT_MODULES = [ 'dec/streams.h', 'dec/transform.h', 'enc/backward_references.h', + 'enc/backward_references_hq.h', 'enc/backward_references_inc.h', 'enc/bit_cost.h', 'enc/bit_cost_inc.h', @@ -217,6 +220,7 @@ EXT_MODULES = [ 'enc/fast_log.h', 'enc/find_match_length.h', 'enc/hash.h', + 'enc/hash_to_binary_tree_inc.h', 'enc/hash_longest_match_inc.h', 'enc/hash_longest_match_quickly_inc.h', 'enc/histogram.h', -- cgit v1.1