1 #ifndef BROTLI_RESEARCH_DEORUMMOLAE_H_ 2 #define BROTLI_RESEARCH_DEORUMMOLAE_H_ 3 4 #include <stddef.h> 5 #include <stdint.h> 6 7 #include <string> 8 #include <vector> 9 10 /* log2(maximal number of files). Value 6 provides some speedups. */ 11 #define LOG_MAX_FILES 6 12 13 /* Non tunable definitions. */ 14 #define MAX_FILES (1 << LOG_MAX_FILES) 15 16 /** 17 * Generate a dictionary for given samples. 18 * 19 * @param dictionary_size_limit maximal dictionary size 20 * @param sample_sizes vector with sample sizes 21 * @param sample_data concatenated samples 22 * @return generated dictionary 23 */ 24 std::string DM_generate(size_t dictionary_size_limit, 25 const std::vector<size_t>& sample_sizes, const uint8_t* sample_data); 26 27 #endif // BROTLI_RESEARCH_DEORUMMOLAE_H_ 28