]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/BrotliCompress/enc/backward_references.h
MdeModulePkg/BrotliCustomDecompressLib: Make brotli a submodule
[mirror_edk2.git] / BaseTools / Source / C / BrotliCompress / enc / backward_references.h
CommitLineData
11b7501a
SB
1/* Copyright 2013 Google Inc. All Rights Reserved.\r
2\r
3 Distributed under MIT license.\r
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r
5*/\r
6\r
7/* Function to find backward reference copies. */\r
8\r
9#ifndef BROTLI_ENC_BACKWARD_REFERENCES_H_\r
10#define BROTLI_ENC_BACKWARD_REFERENCES_H_\r
11\r
dd4f667e
LG
12#include "../common/constants.h"\r
13#include "../common/dictionary.h"\r
14#include "../common/platform.h"\r
15#include <brotli/types.h>\r
11b7501a
SB
16#include "./command.h"\r
17#include "./hash.h"\r
11b7501a
SB
18#include "./quality.h"\r
19\r
20#if defined(__cplusplus) || defined(c_plusplus)\r
21extern "C" {\r
22#endif\r
23\r
24/* "commands" points to the next output command to write to, "*num_commands" is\r
25 initially the total amount of commands output by previous\r
26 CreateBackwardReferences calls, and must be incremented by the amount written\r
27 by this call. */\r
28BROTLI_INTERNAL void BrotliCreateBackwardReferences(\r
dd4f667e
LG
29 size_t num_bytes, size_t position, const uint8_t* ringbuffer,\r
30 size_t ringbuffer_mask, const BrotliEncoderParams* params,\r
31 HasherHandle hasher, int* dist_cache, size_t* last_insert_len,\r
32 Command* commands, size_t* num_commands, size_t* num_literals);\r
11b7501a
SB
33\r
34#if defined(__cplusplus) || defined(c_plusplus)\r
35} /* extern "C" */\r
36#endif\r
37\r
38#endif /* BROTLI_ENC_BACKWARD_REFERENCES_H_ */\r