Blame research/deorummolae.h
|
Packit Service |
214d95 |
#ifndef BROTLI_RESEARCH_DEORUMMOLAE_H_
|
|
Packit Service |
214d95 |
#define BROTLI_RESEARCH_DEORUMMOLAE_H_
|
|
Packit Service |
214d95 |
|
|
Packit Service |
214d95 |
#include <cstddef>
|
|
Packit Service |
214d95 |
#include <cstdint>
|
|
Packit Service |
214d95 |
#include <string>
|
|
Packit Service |
214d95 |
#include <vector>
|
|
Packit Service |
214d95 |
|
|
Packit Service |
214d95 |
/* log2(maximal number of files). Value 6 provides some speedups. */
|
|
Packit Service |
214d95 |
#define DM_LOG_MAX_FILES 6
|
|
Packit Service |
214d95 |
|
|
Packit Service |
214d95 |
/* Non tunable definitions. */
|
|
Packit Service |
214d95 |
#define DM_MAX_FILES (1 << DM_LOG_MAX_FILES)
|
|
Packit Service |
214d95 |
|
|
Packit Service |
214d95 |
/**
|
|
Packit Service |
214d95 |
* Generate a dictionary for given samples.
|
|
Packit Service |
214d95 |
*
|
|
Packit Service |
214d95 |
* @param dictionary_size_limit maximal dictionary size
|
|
Packit Service |
214d95 |
* @param sample_sizes vector with sample sizes
|
|
Packit Service |
214d95 |
* @param sample_data concatenated samples
|
|
Packit Service |
214d95 |
* @return generated dictionary
|
|
Packit Service |
214d95 |
*/
|
|
Packit Service |
214d95 |
std::string DM_generate(size_t dictionary_size_limit,
|
|
Packit Service |
214d95 |
const std::vector<size_t>& sample_sizes, const uint8_t* sample_data);
|
|
Packit Service |
214d95 |
|
|
Packit Service |
214d95 |
#endif // BROTLI_RESEARCH_DEORUMMOLAE_H_
|