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 | #include "./encoder_dict.h" |
8 | |
9 | #include "../common/dictionary.h" |
10 | #include "../common/transform.h" |
11 | #include "./dictionary_hash.h" |
12 | #include "./hash.h" |
13 | |
14 | #if defined(__cplusplus) || defined(c_plusplus) |
15 | extern "C"{ |
16 | #endif |
17 | |
18 | void BrotliInitEncoderDictionary(BrotliEncoderDictionary* dict) { |
19 | dict->words = BrotliGetDictionary(); |
20 | |
21 | dict->hash_table = kStaticDictionaryHash; |
22 | dict->buckets = kStaticDictionaryBuckets; |
23 | dict->dict_words = kStaticDictionaryWords; |
24 | |
25 | dict->cutoffTransformsCount = kCutoffTransformsCount; |
26 | dict->cutoffTransforms = kCutoffTransforms; |
27 | } |
28 | |
29 | #if defined(__cplusplus) || defined(c_plusplus) |
30 | } /* extern "C" */ |
31 | #endif |
32 |