sieve.h 598 B

123456789101112131415161718192021
  1. #ifndef BROTLI_RESEARCH_SIEVE_H_
  2. #define BROTLI_RESEARCH_SIEVE_H_
  3. #include <cstddef>
  4. #include <cstdint>
  5. #include <string>
  6. #include <vector>
  7. /**
  8. * Generate a dictionary for given samples.
  9. *
  10. * @param dictionary_size_limit maximal dictionary size
  11. * @param slice_len text slice size
  12. * @param sample_sizes vector with sample sizes
  13. * @param sample_data concatenated samples
  14. * @return generated dictionary
  15. */
  16. std::string sieve_generate(size_t dictionary_size_limit, size_t slice_len,
  17. const std::vector<size_t>& sample_sizes, const uint8_t* sample_data);
  18. #endif // BROTLI_RESEARCH_SIEVE_H_