mirror of
https://github.com/google/brotli.git
synced 2024-11-21 19:20:09 +00:00
0ad94eed00
* add autotools build * separate semantic and ABI version * extract sources.lst (used by CMake and Automake) * share pkgconfig templates (used by CMake and Automake) * decoder: always set `total_out` * encoder: fix `BROTLI_ENSURE_CAPACITY` macro (no-op after preprocessor) * decoder/encoder: refine `free_func` contract
23 lines
601 B
C++
Executable File
23 lines
601 B
C++
Executable File
#ifndef BROTLI_RESEARCH_SIEVE_H_
|
|
#define BROTLI_RESEARCH_SIEVE_H_
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
/**
|
|
* Generate a dictionary for given samples.
|
|
*
|
|
* @param dictionary_size_limit maximal dictionary size
|
|
* @param slice_len text slice size
|
|
* @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_
|