encoder_dict.c 806 B

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