wxMaxima
Loading...
Searching...
No Matches
backward_references.h
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)
23extern "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. */
30BROTLI_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_ */
Definition: params.h:32
Definition: command.h:108
Definition: hash.h:413
Common types used in decoder and encoder API.