--- /dev/null
+/* Copyright 2017 Google Inc. All Rights Reserved.\r
+\r
+ Distributed under MIT license.\r
+ See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r
+*/\r
+\r
+/* Parameters for the Brotli encoder with chosen quality levels. */\r
+\r
+#ifndef BROTLI_ENC_PARAMS_H_\r
+#define BROTLI_ENC_PARAMS_H_\r
+\r
+#include <brotli/encode.h>\r
+#include "./encoder_dict.h"\r
+\r
+typedef struct BrotliHasherParams {\r
+ int type;\r
+ int bucket_bits;\r
+ int block_bits;\r
+ int hash_len;\r
+ int num_last_distances_to_check;\r
+} BrotliHasherParams;\r
+\r
+typedef struct BrotliDistanceParams {\r
+ uint32_t distance_postfix_bits;\r
+ uint32_t num_direct_distance_codes;\r
+ uint32_t alphabet_size;\r
+ size_t max_distance;\r
+} BrotliDistanceParams;\r
+\r
+/* Encoding parameters */\r
+typedef struct BrotliEncoderParams {\r
+ BrotliEncoderMode mode;\r
+ int quality;\r
+ int lgwin;\r
+ int lgblock;\r
+ size_t size_hint;\r
+ BROTLI_BOOL disable_literal_context_modeling;\r
+ BROTLI_BOOL large_window;\r
+ BrotliHasherParams hasher;\r
+ BrotliDistanceParams dist;\r
+ BrotliEncoderDictionary dictionary;\r
+} BrotliEncoderParams;\r
+\r
+#endif /* BROTLI_ENC_PARAMS_H_ */\r