]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/common/dictionary.h
BaseTools: Copy Brotli algorithm 3rd party source code for tool
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / common / dictionary.h
diff --git a/BaseTools/Source/C/BrotliCompress/common/dictionary.h b/BaseTools/Source/C/BrotliCompress/common/dictionary.h
new file mode 100644 (file)
index 0000000..d8cfe1c
--- /dev/null
@@ -0,0 +1,29 @@
+/* Copyright 2013 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
+/* Collection of static dictionary words. */\r
+\r
+#ifndef BROTLI_COMMON_DICTIONARY_H_\r
+#define BROTLI_COMMON_DICTIONARY_H_\r
+\r
+#include "./types.h"\r
+\r
+#if defined(__cplusplus) || defined(c_plusplus)\r
+extern "C" {\r
+#endif\r
+\r
+extern const uint8_t kBrotliDictionary[122784];\r
+extern const uint32_t kBrotliDictionaryOffsetsByLength[25];\r
+extern const uint8_t kBrotliDictionarySizeBitsByLength[25];\r
+\r
+#define kBrotliMinDictionaryWordLength 4\r
+#define kBrotliMaxDictionaryWordLength 24\r
+\r
+#if defined(__cplusplus) || defined(c_plusplus)\r
+}  /* extern "C" */\r
+#endif\r
+\r
+#endif  /* BROTLI_COMMON_DICTIONARY_H_ */\r