]>
Commit | Line | Data |
---|---|---|
dd4f667e LG |
1 | /* Copyright 2017 Google Inc. All Rights Reserved.\r |
2 | \r | |
3 | Distributed under MIT license.\r | |
4 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r | |
5 | */\r | |
6 | \r | |
7 | #include "./encoder_dict.h"\r | |
8 | \r | |
9 | #include "../common/dictionary.h"\r | |
10 | #include "../common/transform.h"\r | |
11 | #include "./dictionary_hash.h"\r | |
12 | #include "./hash.h"\r | |
13 | \r | |
14 | #if defined(__cplusplus) || defined(c_plusplus)\r | |
15 | extern "C" {\r | |
16 | #endif\r | |
17 | \r | |
18 | void BrotliInitEncoderDictionary(BrotliEncoderDictionary* dict) {\r | |
19 | dict->words = BrotliGetDictionary();\r | |
20 | \r | |
21 | dict->hash_table = kStaticDictionaryHash;\r | |
22 | dict->buckets = kStaticDictionaryBuckets;\r | |
23 | dict->dict_words = kStaticDictionaryWords;\r | |
24 | \r | |
25 | dict->cutoffTransformsCount = kCutoffTransformsCount;\r | |
26 | dict->cutoffTransforms = kCutoffTransforms;\r | |
27 | \r | |
28 | }\r | |
29 | \r | |
30 | #if defined(__cplusplus) || defined(c_plusplus)\r | |
31 | } /* extern "C" */\r | |
32 | #endif\r |