comparison mupdf-source/thirdparty/brotli/c/enc/backward_references.h @ 3:2c135c81b16c

MERGE: upstream PyMuPDF 1.26.4 with MuPDF 1.26.7
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:44:09 +0200
parents b50eed0cc0ef
children
comparison
equal deleted inserted replaced
0:6015a75abc2d 3:2c135c81b16c
1 /* Copyright 2013 Google Inc. All Rights Reserved.
2
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5 */
6
7 /* Function to find backward reference copies. */
8
9 #ifndef BROTLI_ENC_BACKWARD_REFERENCES_H_
10 #define BROTLI_ENC_BACKWARD_REFERENCES_H_
11
12 #include <brotli/types.h>
13
14 #include "../common/constants.h"
15 #include "../common/context.h"
16 #include "../common/dictionary.h"
17 #include "../common/platform.h"
18 #include "command.h"
19 #include "hash.h"
20 #include "quality.h"
21
22 #if defined(__cplusplus) || defined(c_plusplus)
23 extern "C" {
24 #endif
25
26 /* "commands" points to the next output command to write to, "*num_commands" is
27 initially the total amount of commands output by previous
28 CreateBackwardReferences calls, and must be incremented by the amount written
29 by this call. */
30 BROTLI_INTERNAL void BrotliCreateBackwardReferences(size_t num_bytes,
31 size_t position, const uint8_t* ringbuffer, size_t ringbuffer_mask,
32 ContextLut literal_context_lut, const BrotliEncoderParams* params,
33 Hasher* hasher, int* dist_cache, size_t* last_insert_len,
34 Command* commands, size_t* num_commands, size_t* num_literals);
35
36 #if defined(__cplusplus) || defined(c_plusplus)
37 } /* extern "C" */
38 #endif
39
40 #endif /* BROTLI_ENC_BACKWARD_REFERENCES_H_ */