2017-10-13 09:25:03 +00:00
|
|
|
#ifndef BROTLI_RESEARCH_SIEVE_H_
|
|
|
|
#define BROTLI_RESEARCH_SIEVE_H_
|
|
|
|
|
2018-02-26 14:04:36 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
2017-10-13 09:25:03 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate a dictionary for given samples.
|
|
|
|
*
|
|
|
|
* @param dictionary_size_limit maximal dictionary size
|
2017-11-28 14:37:28 +00:00
|
|
|
* @param slice_len text slice size
|
2017-10-13 09:25:03 +00:00
|
|
|
* @param sample_sizes vector with sample sizes
|
|
|
|
* @param sample_data concatenated samples
|
|
|
|
* @return generated dictionary
|
|
|
|
*/
|
|
|
|
std::string sieve_generate(size_t dictionary_size_limit, size_t slice_len,
|
|
|
|
const std::vector<size_t>& sample_sizes, const uint8_t* sample_data);
|
|
|
|
|
|
|
|
#endif // BROTLI_RESEARCH_SIEVE_H_
|