]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/enc/compress_fragment.h
BaseTools: Update Brotli Compress to the latest one 1.0.6
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / compress_fragment.h
index 6bd7e11f796915aadfb4efe3230dd5094ed38c4b..d4c34299ea2cf5b74c2fa4e64da9bc5fda2b90d5 100644 (file)
@@ -12,9 +12,9 @@
 #ifndef BROTLI_ENC_COMPRESS_FRAGMENT_H_\r
 #define BROTLI_ENC_COMPRESS_FRAGMENT_H_\r
 \r
-#include "../common/types.h"\r
+#include "../common/platform.h"\r
+#include <brotli/types.h>\r
 #include "./memory.h"\r
-#include "./port.h"\r
 \r
 #if defined(__cplusplus) || defined(c_plusplus)\r
 extern "C" {\r
@@ -37,8 +37,11 @@ extern "C" {
    updated to represent the updated "cmd_depth" and "cmd_bits".\r
 \r
    REQUIRES: "input_size" is greater than zero, or "is_last" is 1.\r
+   REQUIRES: "input_size" is less or equal to maximal metablock size (1 << 24).\r
    REQUIRES: All elements in "table[0..table_size-1]" are initialized to zero.\r
-   REQUIRES: "table_size" is a power of two */\r
+   REQUIRES: "table_size" is an odd (9, 11, 13, 15) power of two\r
+   OUTPUT: maximal copy distance <= |input_size|\r
+   OUTPUT: maximal copy distance <= BROTLI_MAX_BACKWARD_LIMIT(18) */\r
 BROTLI_INTERNAL void BrotliCompressFragmentFast(MemoryManager* m,\r
                                                 const uint8_t* input,\r
                                                 size_t input_size,\r