| 1 |
.TH "constants.h" 3 "August 2021" "Brotli" \" -*- nroff -*- |
| 2 |
.ad l |
| 3 |
.nh |
| 4 |
.SH NAME |
| 5 |
constants.h \- Common constants used in decoder and encoder API\&. |
| 6 |
|
| 7 |
.SH SYNOPSIS |
| 8 |
.br |
| 9 |
.PP |
| 10 |
.SS "Macros" |
| 11 |
|
| 12 |
.in +1c |
| 13 |
.ti -1c |
| 14 |
.RI "#define \fBBROTLI_LARGE_MAX_DISTANCE_BITS\fP 62U" |
| 15 |
.br |
| 16 |
.RI "\fIThe theoretical maximum number of distance bits specified for large window brotli, for 64-bit encoders and decoders\&. \fP" |
| 17 |
.ti -1c |
| 18 |
.RI "#define \fBBROTLI_LARGE_MAX_WBITS\fP 30" |
| 19 |
.br |
| 20 |
.RI "\fIThe maximum supported large brotli window bits by the encoder and decoder\&. \fP" |
| 21 |
.ti -1c |
| 22 |
.RI "#define \fBBROTLI_MAX_NPOSTFIX\fP 3" |
| 23 |
.br |
| 24 |
.RI "\fIMaximal number of 'postfix' bits\&. \fP" |
| 25 |
.in -1c |
| 26 |
.SH "Detailed Description" |
| 27 |
.PP |
| 28 |
Common constants used in decoder and encoder API\&. |
| 29 |
|
| 30 |
|
| 31 |
.SH "Macro Definition Documentation" |
| 32 |
.PP |
| 33 |
.SS "#define BROTLI_LARGE_MAX_DISTANCE_BITS 62U" |
| 34 |
|
| 35 |
.PP |
| 36 |
The theoretical maximum number of distance bits specified for large window brotli, for 64-bit encoders and decoders\&. Even when in practice 32-bit encoders and decoders only support up to 30 max distance bits, the value is set to 62 because it affects the large window brotli file format\&. Specifically, it affects the encoding of simple huffman tree for distances, see Specification RFC 7932 chapter 3\&.4\&. |
| 37 |
.SS "#define BROTLI_LARGE_MAX_WBITS 30" |
| 38 |
|
| 39 |
.PP |
| 40 |
The maximum supported large brotli window bits by the encoder and decoder\&. Large window brotli allows up to 62 bits, however the current encoder and decoder, designed for 32-bit integers, only support up to 30 bits maximum\&. |
| 41 |
.SS "#define BROTLI_MAX_NPOSTFIX 3" |
| 42 |
|
| 43 |
.PP |
| 44 |
Maximal number of 'postfix' bits\&. Number of 'postfix' bits is stored as 2 bits in meta-block header\&. |
| 45 |
.SH "Author" |
| 46 |
.PP |
| 47 |
Generated automatically by Doxygen for Brotli from the source code\&. |