| 1 | /* Copyright 2017 Google Inc. All Rights Reserved. |
| 2 | |
| 3 | Distributed under MIT license. |
| 4 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT |
| 5 | */ |
| 6 | |
| 7 | /* Parameters for the Brotli encoder with chosen quality levels. */ |
| 8 | |
| 9 | #ifndef BROTLI_ENC_PARAMS_H_ |
| 10 | #define BROTLI_ENC_PARAMS_H_cxx . . $ `c/enc/params.h:10:9`! |
| 11 | |
| 12 | #include <brotli/encode.h>cxx . . $ `<file>/c/include/brotli/encode.h`/ |
| 13 | #include "encoder_dict.h"cxx . . $ `<file>/c/enc/encoder_dict.h`/ |
| 14 | |
| 15 | typedef struct BrotliHasherParamscxx . . $ BrotliHasherParams# { |
| 16 | int typecxx . . $ BrotliHasherParams#type.; |
| 17 | int bucket_bitscxx . . $ BrotliHasherParams#bucket_bits.; |
| 18 | int block_bitscxx . . $ BrotliHasherParams#block_bits.; |
| 19 | int num_last_distances_to_checkcxx . . $ BrotliHasherParams#num_last_distances_to_check.; |
| 20 | } BrotliHasherParamscxx . . $ BrotliHasherParams#; |
| 21 | |
| 22 | typedef struct BrotliDistanceParamscxx . . $ BrotliDistanceParams# { |
| 23 | uint32_tcxx . . $ uint32_t# distance_postfix_bitscxx . . $ BrotliDistanceParams#distance_postfix_bits.; |
| 24 | uint32_tcxx . . $ uint32_t# num_direct_distance_codescxx . . $ BrotliDistanceParams#num_direct_distance_codes.; |
| 25 | uint32_tcxx . . $ uint32_t# alphabet_size_maxcxx . . $ BrotliDistanceParams#alphabet_size_max.; |
| 26 | uint32_tcxx . . $ uint32_t# alphabet_size_limitcxx . . $ BrotliDistanceParams#alphabet_size_limit.; |
| 27 | size_t max_distancecxx . . $ BrotliDistanceParams#max_distance.; |
| 28 | } BrotliDistanceParamscxx . . $ BrotliDistanceParams#; |
| 29 | |
| 30 | /* Encoding parameters */ |
| 31 | typedef struct BrotliEncoderParamscxx . . $ BrotliEncoderParams# { |
| 32 | BrotliEncoderModecxx . . $ BrotliEncoderMode# modecxx . . $ BrotliEncoderParams#mode.; |
| 33 | int qualitycxx . . $ BrotliEncoderParams#quality.; |
| 34 | int lgwincxx . . $ BrotliEncoderParams#lgwin.; |
| 35 | int lgblockcxx . . $ BrotliEncoderParams#lgblock.; |
| 36 | size_t stream_offsetcxx . . $ BrotliEncoderParams#stream_offset.; |
| 37 | size_t size_hintcxx . . $ BrotliEncoderParams#size_hint.; |
| 38 | BROTLI_BOOLcxx . . $ `c/include/brotli/types.h:49:9`! disable_literal_context_modelingcxx . . $ BrotliEncoderParams#disable_literal_context_modeling.; |
| 39 | BROTLI_BOOLcxx . . $ `c/include/brotli/types.h:49:9`! large_windowcxx . . $ BrotliEncoderParams#large_window.; |
| 40 | BrotliHasherParamscxx . . $ BrotliHasherParams# hashercxx . . $ BrotliEncoderParams#hasher.; |
| 41 | BrotliDistanceParamscxx . . $ BrotliDistanceParams# distcxx . . $ BrotliEncoderParams#dist.; |
| 42 | /* TODO(eustas): rename to BrotliShared... */ |
| 43 | SharedEncoderDictionarycxx . . $ SharedEncoderDictionary# dictionarycxx . . $ BrotliEncoderParams#dictionary.; |
| 44 | } BrotliEncoderParamscxx . . $ BrotliEncoderParams#; |
| 45 | |
| 46 | #endif /* BROTLI_ENC_PARAMS_H_ */ |