]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/enc/compress_fragment_two_pass.h
BaseTools: Make brotli a submodule
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / compress_fragment_two_pass.h
diff --git a/BaseTools/Source/C/BrotliCompress/enc/compress_fragment_two_pass.h b/BaseTools/Source/C/BrotliCompress/enc/compress_fragment_two_pass.h
deleted file mode 100644 (file)
index c97e22c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Copyright 2015 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
-/* Function for fast encoding of an input fragment, independently from the input\r
-   history. This function uses two-pass processing: in the first pass we save\r
-   the found backward matches and literal bytes into a buffer, and in the\r
-   second pass we emit them into the bit stream using prefix codes built based\r
-   on the actual command and literal byte histograms. */\r
-\r
-#ifndef BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_\r
-#define BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_\r
-\r
-#include "../common/platform.h"\r
-#include <brotli/types.h>\r
-#include "./memory.h"\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-extern "C" {\r
-#endif\r
-\r
-static const size_t kCompressFragmentTwoPassBlockSize = 1 << 17;\r
-\r
-/* Compresses "input" string to the "*storage" buffer as one or more complete\r
-   meta-blocks, and updates the "*storage_ix" bit position.\r
-\r
-   If "is_last" is 1, emits an additional empty last meta-block.\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: "command_buf" and "literal_buf" point to at least\r
-              kCompressFragmentTwoPassBlockSize long arrays.\r
-   REQUIRES: All elements in "table[0..table_size-1]" are initialized to zero.\r
-   REQUIRES: "table_size" is a power of two\r
-   OUTPUT: maximal copy distance <= |input_size|\r
-   OUTPUT: maximal copy distance <= BROTLI_MAX_BACKWARD_LIMIT(18) */\r
-BROTLI_INTERNAL void BrotliCompressFragmentTwoPass(MemoryManager* m,\r
-                                                   const uint8_t* input,\r
-                                                   size_t input_size,\r
-                                                   BROTLI_BOOL is_last,\r
-                                                   uint32_t* command_buf,\r
-                                                   uint8_t* literal_buf,\r
-                                                   int* table,\r
-                                                   size_t table_size,\r
-                                                   size_t* storage_ix,\r
-                                                   uint8_t* storage);\r
-\r
-#if defined(__cplusplus) || defined(c_plusplus)\r
-}  /* extern "C" */\r
-#endif\r
-\r
-#endif  /* BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_ */\r