Name Description Size Coverage
backward_references.c Function to find backward reference copies. 10290 0 %
backward_references.h Function to find backward reference copies. 1200 -
backward_references_hq.c Function to find backward reference copies. 36645 75 %
backward_references_hq.h Function to find backward reference copies. 3767 -
backward_references_inc.h NOLINT(build/header_guard) 13776 0 %
backward_references_opt_inc.h NOLINT(build/header_guard) 11303 0 %
bit_cost.c Functions to estimate the bit cost of Huffman trees. 1424 95 %
bit_cost.h Functions to estimate the bit cost of Huffman trees. 893 -
bit_cost_inc.h NOLINT(build/header_guard) 4115 98 %
block_encoder_inc.h 2062 39 %
block_splitter.c Block split point selection utilities. 7327 93 %
block_splitter.h Block split point selection utilities. 1623 -
block_splitter_inc.h NOLINT(build/header_guard) 18879 97 %
brotli_bit_stream.c Brotli bit stream functions to support the low level format. There are no compression algorithms here, just the right ordering of bits to match the specs. 51810 71 %
brotli_bit_stream.h Functions to convert brotli-related data structures into the brotli bit stream. The functions here operate under assumption that there is enough space in the storage, i.e., there are no out-of-range checks anywhere. These functions do bit addressing into a byte array. The byte array is called "storage" and the index to the bit is called storage_ix in function arguments. 3332 -
cluster.c Functions for clustering similar histograms together. 1455 100 %
cluster.h Functions for clustering similar histograms together. 994 -
cluster_inc.h NOLINT(build/header_guard) 11826 100 %
command.c extern "C" 1022 -
command.h This class models a sequence of literals and a backward reference copy. 8228 99 %
compound_dictionary.c Step 1: create "bloated" hasher. 7310 0 %
compound_dictionary.h "Fat" prepared dictionary, could be cooked outside of C implementation, e.g. on Java side. LZ77 data is copied inside PreparedDictionary struct. 3026 -
compress_fragment.c Function for fast encoding of an input fragment, independently from the input history. This function uses one-pass processing: when we find a backward match, we immediately emit the corresponding command and literal codes to the bit stream. Adapted from the CompressFragment() function in https://github.com/google/snappy/blob/master/snappy.cc 32869 0 %
compress_fragment.h Function for fast encoding of an input fragment, independently from the input history. This function uses one-pass processing: when we find a backward match, we immediately emit the corresponding command and literal codes to the bit stream. 3565 -
compress_fragment_two_pass.c Function for fast encoding of an input fragment, independently from the input history. This function uses two-pass processing: in the first pass we save the found backward matches and literal bytes into a buffer, and in the second pass we emit them into the bit stream using prefix codes built based on the actual command and literal byte histograms. 26800 88 %
compress_fragment_two_pass.h Function for fast encoding of an input fragment, independently from the input history. This function uses two-pass processing: in the first pass we save the found backward matches and literal bytes into a buffer, and in the second pass we emit them into the bit stream using prefix codes built based on the actual command and literal byte histograms. 2846 -
dictionary_hash.c Hash table on the 4-byte prefixes of static dictionary words. 7923 -
dictionary_hash.h Hash table on the 4-byte prefixes of static dictionary words. 1523 -
dictionary_hash_inc.h 146714 -
enc_state.h Encoder state. 3072 -
enc_static_init.c BROTLI_STATIC_INIT_NONE 1775 100 %
enc_static_init.h Central point for static initialization. 834 -
encode.c Implementation of Brotli compressor. 79852 44 %
encoder_dict.c Set up the root node 23366 74 %
encoder_dict.h Dictionary hierarchy for Encoder: -SharedEncoderDictionary --CompoundDictionary ---PreparedDictionary [up to 15x] = prefix dictionary with precomputed hashes --ContextualEncoderDictionary ---BrotliEncoderDictionary [up to 64x] = for each context, precomputed static dictionary with words + transforms Dictionary hierarchy from common: similar, but without precomputed hashes -BrotliSharedDictionary --BrotliDictionary [up to 64x] --BrotliTransforms [up to 64x] --const uint8_t* prefix [up to 15x]: compound dictionaries 5014 -
entropy_encode.c Entropy encoding (Huffman) utilities. 14562 97 %
entropy_encode.h Entropy encoding (Huffman) utilities. 4052 100 %
entropy_encode_static.h Static entropy codes used for faster meta-block encoding. 33138 33 %
fast_log.c ", ".join(["%.16ff" % x for x in [0.0]+[log2(x) for x in range(1, 256)]]) 6046 -
fast_log.h Utilities for fast computation of logarithms. 1642 100 %
find_match_length.h Function to find maximal matching prefixes of strings. 2164 100 %
hash.h A (forgetful) hash table to the data seen by the compressor, to help create backward references to previous data. 32502 15 %
hash_base.h Basic common hash functions / constants. 1367 50 %
hash_composite_inc.h NOLINT(build/header_guard) 5097 0 %
hash_forgetful_chain_inc.h NOLINT(build/header_guard) 11251 0 %
hash_longest_match_inc.h NOLINT(build/header_guard) 10523 0 %
hash_longest_match_quickly_inc.h NOLINT(build/header_guard) 9450 0 %
hash_longest_match_simd_inc.h NOLINT(build/header_guard) 11693 0 %
hash_longest_match_simd_opt_inc.h NOLINT(build/header_guard) 12173 0 %
hash_longest_match64_inc.h NOLINT(build/header_guard) 10589 0 %
hash_longest_match64_simd_inc.h NOLINT(build/header_guard) 11769 0 %
hash_rolling_inc.h NOLINT(build/header_guard) 7226 0 %
hash_to_binary_tree_inc.h NOLINT(build/header_guard) 13081 83 %
histogram.c Build per-context histograms of literals, commands and distance codes. 3255 100 %
histogram.h Models the histograms of literals, commands and distance codes. 1804 -
histogram_inc.h NOLINT(build/header_guard) 1401 100 %
literal_cost.c Literal cost model to allow backward reference replacement to be efficient. 5874 87 %
literal_cost.h Literal cost model to allow backward reference replacement to be efficient. 886 -
matching_tag_mask.h 2340 0 %
memory.c Algorithms for distributing the literals and commands of a metablock between block types and contexts. 5519 72 %
memory.h Macros for memory management. 4293 -
metablock.c Algorithms for distributing the literals and commands of a metablock between block types and contexts. 34024 31 %
metablock.h Algorithms for distributing the literals and commands of a metablock between block types and contexts. 3866 100 %
metablock_inc.h NOLINT(build/header_guard) 7636 0 %
params.h Parameters for the Brotli encoder with chosen quality levels. 1313 -
quality.h Constants and formulas that affect speed-ratio trade-offs and thus define quality levels. 8457 50 %
ringbuffer.h Sliding window over the input data. 6143 92 %
static_dict.c Match against base dictionary word. 20868 43 %
static_dict.h Class to model the static dictionary. 1212 -
static_dict_lut.c Lookup table for static dictionary and transforms. 7408 -
static_dict_lut.h Lookup table for static dictionary and transforms. 1579 -
static_dict_lut_inc.h 468804 -
static_init_lazy.cc From https://en.cppreference.com/w/cpp/language/storage_duration.html: ### Static block variables ### Block variables with static or thread (since C++11) storage duration are initialized the first time control passes through their declaration... On all further calls, the declaration is skipped... If multiple threads attempt to initialize the same static local variable concurrently, the initialization occurs exactly once... Usual implementations of this feature use variants of the double-checked locking pattern, which reduces runtime overhead for already-initialized local statics to a single non-atomic boolean comparison. 1093 -
utf8_util.c Heuristics for deciding about the UTF8-ness of strings. 2272 100 %
utf8_util.h Heuristics for deciding about the UTF8-ness of strings. 875 -
write_bits.h Write bits into a byte array. 2832 100 %