Home | History | Annotate | Download | only in research
      1 #ifndef BROTLI_RESEARCH_DEORUMMOLAE_H_
      2 #define BROTLI_RESEARCH_DEORUMMOLAE_H_
      3 
      4 #include <stddef.h>
      5 #include <stdint.h>
      6 
      7 /* log2(maximal number of files). Value 6 provides some speedups. */
      8 #define LOG_MAX_FILES 6
      9 
     10 /* Non tunable definitions. */
     11 #define MAX_FILES (1 << LOG_MAX_FILES)
     12 
     13 /**
     14  * Generate a dictionary for given samples.
     15  *
     16  * @param dictionary storage for generated dictionary
     17  * @param dictionary_size_limit maximal dictionary size
     18  * @param num_samples number of samples
     19  * @param sample_sizes array with sample sizes
     20  * @param sample_data concatenated samples
     21  * @return generated dictionary size
     22  */
     23 size_t DM_generate(uint8_t* dictionary, size_t dictionary_size_limit,
     24     size_t num_samples, const size_t* sample_sizes,
     25     const uint8_t* sample_data);
     26 
     27 #endif  // BROTLI_RESEARCH_DEORUMMOLAE_H_
     28