]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/enc/histogram.h
BaseTools: Update Brotli Compress to the latest one 1.0.6
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / histogram.h
index e41b726ccf44673c6d1392a74cf535a5a9d9ce99..c08a4cac2bfa298e1a43aaceef93b4d6977b563b 100644 (file)
 #include <string.h>  /* memset */\r
 \r
 #include "../common/constants.h"\r
-#include "../common/types.h"\r
+#include "../common/context.h"\r
+#include "../common/platform.h"\r
+#include <brotli/types.h>\r
 #include "./block_splitter.h"\r
 #include "./command.h"\r
-#include "./context.h"\r
-#include "./port.h"\r
 \r
 #if defined(__cplusplus) || defined(c_plusplus)\r
 extern "C" {\r
 #endif\r
 \r
+/* The distance symbols effectively used by "Large Window Brotli" (32-bit). */\r
+#define BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS 544\r
+\r
 #define FN(X) X ## Literal\r
 #define DATA_SIZE BROTLI_NUM_LITERAL_SYMBOLS\r
 #define DataType uint8_t\r
@@ -38,7 +41,7 @@ extern "C" {
 #undef FN\r
 \r
 #define FN(X) X ## Distance\r
-#define DATA_SIZE BROTLI_NUM_DISTANCE_SYMBOLS\r
+#define DATA_SIZE BROTLI_NUM_HISTOGRAM_DISTANCE_SYMBOLS\r
 #include "./histogram_inc.h"  /* NOLINT(build/include) */\r
 #undef DataType\r
 #undef DATA_SIZE\r