diff options
Diffstat (limited to 'roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/research/sieve.h')
-rwxr-xr-x | roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/research/sieve.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/research/sieve.h b/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/research/sieve.h new file mode 100755 index 000000000..6c65dc8e0 --- /dev/null +++ b/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/research/sieve.h @@ -0,0 +1,21 @@ +#ifndef BROTLI_RESEARCH_SIEVE_H_ +#define BROTLI_RESEARCH_SIEVE_H_ + +#include <cstddef> +#include <cstdint> +#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_ |