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