9#ifndef BROTLI_ENC_BACKWARD_REFERENCES_HQ_H_
10#define BROTLI_ENC_BACKWARD_REFERENCES_HQ_H_
14#include "../common/constants.h"
15#include "../common/context.h"
16#include "../common/dictionary.h"
17#include "../common/platform.h"
23#if defined(__cplusplus) || defined(c_plusplus)
27BROTLI_INTERNAL
void BrotliCreateZopfliBackwardReferences(
MemoryManager* m,
29 size_t position,
const uint8_t* ringbuffer,
size_t ringbuffer_mask,
31 Hasher* hasher,
int* dist_cache,
size_t* last_insert_len,
32 Command* commands,
size_t* num_commands,
size_t* num_literals);
34BROTLI_INTERNAL
void BrotliCreateHqZopfliBackwardReferences(
MemoryManager* m,
36 size_t position,
const uint8_t* ringbuffer,
size_t ringbuffer_mask,
38 Hasher* hasher,
int* dist_cache,
size_t* last_insert_len,
39 Command* commands,
size_t* num_commands,
size_t* num_literals);
49 uint32_t dcode_insert_length;
66BROTLI_INTERNAL
void BrotliInitZopfliNodes(
ZopfliNode* array,
size_t length);
81BROTLI_INTERNAL
size_t BrotliZopfliComputeShortestPath(
83 size_t position,
const uint8_t* ringbuffer,
size_t ringbuffer_mask,
87BROTLI_INTERNAL
void BrotliZopfliCreateCommands(
88 const size_t num_bytes,
const size_t block_start,
const ZopfliNode* nodes,
90 Command* commands,
size_t* num_literals);
92#if defined(__cplusplus) || defined(c_plusplus)
Definition: command.h:108
Definition: backward_references_hq.h:41
Common types used in decoder and encoder API.