]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/BrotliCompress/enc/encode_parallel.h
BaseTools: Copy Brotli algorithm 3rd party source code for tool
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / encode_parallel.h
diff --git a/BaseTools/Source/C/BrotliCompress/enc/encode_parallel.h b/BaseTools/Source/C/BrotliCompress/enc/encode_parallel.h
new file mode 100644 (file)
index 0000000..d2a31c5
--- /dev/null
@@ -0,0 +1,27 @@
+/* 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
+/* API for parallel Brotli compression\r
+   Note that this is only a proof of concept currently and not part of the\r
+   final API yet. */\r
+\r
+#ifndef BROTLI_ENC_ENCODE_PARALLEL_H_\r
+#define BROTLI_ENC_ENCODE_PARALLEL_H_\r
+\r
+#include "../common/types.h"\r
+#include "./compressor.h"\r
+\r
+namespace brotli {\r
+\r
+int BrotliCompressBufferParallel(BrotliParams params,\r
+                                 size_t input_size,\r
+                                 const uint8_t* input_buffer,\r
+                                 size_t* encoded_size,\r
+                                 uint8_t* encoded_buffer);\r
+\r
+}  /* namespace brotli */\r
+\r
+#endif  /* BROTLI_ENC_ENCODE_PARALLEL_H_ */\r