13#ifndef BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_
14#define BROTLI_ENC_COMPRESS_FRAGMENT_TWO_PASS_H_
18#include "../common/constants.h"
19#include "../common/platform.h"
20#include "entropy_encode.h"
22#if defined(__cplusplus) || defined(c_plusplus)
27static const size_t kCompressFragmentTwoPassBlockSize = 1 << 17;
30 uint32_t lit_histo[256];
31 uint8_t lit_depth[256];
32 uint16_t lit_bits[256];
34 uint32_t cmd_histo[128];
35 uint8_t cmd_depth[128];
36 uint16_t cmd_bits[128];
39 HuffmanTree tmp_tree[2 * BROTLI_NUM_LITERAL_SYMBOLS + 1];
40 uint8_t tmp_depth[BROTLI_NUM_COMMAND_SYMBOLS];
41 uint16_t tmp_bits[64];
61 uint32_t* command_buf,
68#if defined(__cplusplus) || defined(c_plusplus)
Definition: compress_fragment_two_pass.h:29
Definition: entropy_encode.h:21
Common types used in decoder and encoder API.
#define BROTLI_BOOL
A portable bool replacement.
Definition: types.h:49