16#ifndef BROTLI_ENC_BROTLI_BIT_STREAM_H_
17#define BROTLI_ENC_BROTLI_BIT_STREAM_H_
19#include <brotli/types.h>
28#if defined(__cplusplus) || defined(c_plusplus)
36 HuffmanTree* tree,
size_t* storage_ix, uint8_t* storage);
39 HuffmanTree* tree,
const uint32_t* histogram,
const size_t histogram_total,
40 const size_t max_bits, uint8_t* depth, uint16_t* bits,
size_t* storage_ix,
46 const uint8_t*
input,
size_t start_pos,
size_t length,
size_t mask,
47 uint8_t prev_byte, uint8_t prev_byte2,
BROTLI_BOOL is_last,
50 size_t* storage_ix, uint8_t* storage);
57 const uint8_t*
input,
size_t start_pos,
size_t length,
size_t mask,
59 const Command* commands,
size_t n_commands,
60 size_t* storage_ix, uint8_t* storage);
67 const uint8_t*
input,
size_t start_pos,
size_t length,
size_t mask,
69 const Command* commands,
size_t n_commands,
70 size_t* storage_ix, uint8_t* storage);
78 size_t position,
size_t mask,
size_t len,
81#if defined(BROTLI_TEST)
82void GetBlockLengthPrefixCodeForTest(uint32_t,
size_t*, uint32_t*, uint32_t*);
85#if defined(__cplusplus) || defined(c_plusplus)
ContextType
Definition context.h:94
BROTLI_INTERNAL void BrotliStoreMetaBlockTrivial(MemoryManager *m, const uint8_t *input, size_t start_pos, size_t length, size_t mask, BROTLI_BOOL is_last, const BrotliEncoderParams *params, const Command *commands, size_t n_commands, size_t *storage_ix, uint8_t *storage)
Definition brotli_bit_stream.c:1134
BROTLI_INTERNAL void BrotliStoreMetaBlock(MemoryManager *m, const uint8_t *input, size_t start_pos, size_t length, size_t mask, uint8_t prev_byte, uint8_t prev_byte2, BROTLI_BOOL is_last, const BrotliEncoderParams *params, ContextType literal_context_mode, const Command *commands, size_t n_commands, const MetaBlockSplit *mb, size_t *storage_ix, uint8_t *storage)
Definition brotli_bit_stream.c:935
BROTLI_INTERNAL void BrotliStoreMetaBlockFast(MemoryManager *m, const uint8_t *input, size_t start_pos, size_t length, size_t mask, BROTLI_BOOL is_last, const BrotliEncoderParams *params, const Command *commands, size_t n_commands, size_t *storage_ix, uint8_t *storage)
Definition brotli_bit_stream.c:1187
BROTLI_INTERNAL void BrotliBuildAndStoreHuffmanTreeFast(MemoryManager *m, const uint32_t *histogram, const size_t histogram_total, const size_t max_bits, uint8_t *depth, uint16_t *bits, size_t *storage_ix, uint8_t *storage)
Definition brotli_bit_stream.c:403
BROTLI_INTERNAL void BrotliStoreUncompressedMetaBlock(BROTLI_BOOL is_final_block, const uint8_t *BROTLI_RESTRICT input, size_t position, size_t mask, size_t len, size_t *BROTLI_RESTRICT storage_ix, uint8_t *BROTLI_RESTRICT storage)
Definition brotli_bit_stream.c:1279
BROTLI_INTERNAL void BrotliStoreHuffmanTree(const uint8_t *depths, size_t num, HuffmanTree *tree, size_t *storage_ix, uint8_t *storage)
Definition brotli_bit_stream.c:283
#define input(b, o, c, n, m)
Definition compress42.c:610
Definition entropy_encode.h:20
#define BROTLI_BOOL
Definition types.h:49
static uint32_t const uint8_t uint32_t len
Definition memcmplen.h:44