#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
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