| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,9 @@ | |||
| 13 | 13 | 'c/dec/bit_reader.c', | |
| 14 | 14 | 'c/dec/decode.c', | |
| 15 | 15 | 'c/dec/huffman.c', | |
| 16 | + 'c/dec/prefix.c', | ||
| 16 | 17 | 'c/dec/state.c', | |
| 18 | + 'c/dec/static_init.c', | ||
| 17 | 19 | ||
| 18 | 20 | # Encoder | |
| 19 | 21 | 'c/enc/backward_references.c', | |
@@ -36,6 +38,8 @@ | |||
| 36 | 38 | 'c/enc/memory.c', | |
| 37 | 39 | 'c/enc/metablock.c', | |
| 38 | 40 | 'c/enc/static_dict.c', | |
| 41 | + 'c/enc/static_dict_lut.c', | ||
| 42 | + 'c/enc/static_init.c', | ||
| 39 | 43 | 'c/enc/utf8_util.c', | |
| 40 | 44 | ] | |
| 41 | 45 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,10 +6,10 @@ | |||
| 6 | 6 | ||
| 7 | 7 | #include "constants.h" | |
| 8 | 8 | ||
| 9 | - const BrotliPrefixCodeRange | ||
| 10 | - _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = { | ||
| 11 | - {1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3}, | ||
| 12 | - {33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4}, | ||
| 13 | - {113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6}, | ||
| 14 | - {369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12}, | ||
| 15 | - {8433, 13}, {16625, 24}}; | ||
| 9 | + const BROTLI_MODEL("small") | ||
| 10 | + BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS] = { | ||
| 11 | + {1, 2}, {5, 2}, {9, 2}, {13, 2}, {17, 3}, {25, 3}, | ||
| 12 | + {33, 3}, {41, 3}, {49, 4}, {65, 4}, {81, 4}, {97, 4}, | ||
| 13 | + {113, 5}, {145, 5}, {177, 5}, {209, 5}, {241, 6}, {305, 6}, | ||
| 14 | + {369, 7}, {497, 8}, {753, 9}, {1265, 10}, {2289, 11}, {4337, 12}, | ||
| 15 | + {8433, 13}, {16625, 24}}; | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,9 +12,6 @@ | |||
| 12 | 12 | #ifndef BROTLI_COMMON_CONSTANTS_H_ | |
| 13 | 13 | #define BROTLI_COMMON_CONSTANTS_H_ | |
| 14 | 14 | ||
| 15 | - #include <brotli/port.h> | ||
| 16 | - #include <brotli/types.h> | ||
| 17 | - | ||
| 18 | 15 | #include "platform.h" | |
| 19 | 16 | ||
| 20 | 17 | /* Specification: 7.3. Encoding of the context map */ | |
@@ -195,7 +192,7 @@ typedef struct { | |||
| 195 | 192 | } BrotliPrefixCodeRange; | |
| 196 | 193 | ||
| 197 | 194 | /* "Soft-private", it is exported, but not "advertised" as API. */ | |
| 198 | - BROTLI_COMMON_API extern const BrotliPrefixCodeRange | ||
| 199 | - _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS]; | ||
| 195 | + BROTLI_COMMON_API extern const BROTLI_MODEL("small") | ||
| 196 | + BrotliPrefixCodeRange _kBrotliPrefixCodeRanges[BROTLI_NUM_BLOCK_LEN_SYMBOLS]; | ||
| 200 | 197 | ||
| 201 | 198 | #endif /* BROTLI_COMMON_CONSTANTS_H_ */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,9 @@ | |||
| 1 | 1 | #include "context.h" | |
| 2 | 2 | ||
| 3 | - #include <brotli/types.h> | ||
| 3 | + #include "platform.h" | ||
| 4 | 4 | ||
| 5 | 5 | /* Common context lookup table for all context modes. */ | |
| 6 | - const uint8_t _kBrotliContextLookupTable[2048] = { | ||
| 6 | + const BROTLI_MODEL("small") uint8_t _kBrotliContextLookupTable[2048] = { | ||
| 7 | 7 | /* CONTEXT_LSB6, last byte. */ | |
| 8 | 8 | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, | |
| 9 | 9 | 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -88,8 +88,7 @@ | |||
| 88 | 88 | #ifndef BROTLI_COMMON_CONTEXT_H_ | |
| 89 | 89 | #define BROTLI_COMMON_CONTEXT_H_ | |
| 90 | 90 | ||
| 91 | - #include <brotli/port.h> | ||
| 92 | - #include <brotli/types.h> | ||
| 91 | + #include "platform.h" | ||
| 93 | 92 | ||
| 94 | 93 | typedef enum ContextType { | |
| 95 | 94 | CONTEXT_LSB6 = 0, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,7 @@ | |||
| 9 | 9 | #ifndef BROTLI_COMMON_DICTIONARY_H_ | |
| 10 | 10 | #define BROTLI_COMMON_DICTIONARY_H_ | |
| 11 | 11 | ||
| 12 | - #include <brotli/port.h> | ||
| 13 | - #include <brotli/types.h> | ||
| 12 | + #include "platform.h" | ||
| 14 | 13 | ||
| 15 | 14 | #if defined(__cplusplus) || defined(c_plusplus) | |
| 16 | 15 | extern "C" { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,10 +4,6 @@ | |||
| 4 | 4 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | |
| 5 | 5 | */ | |
| 6 | 6 | ||
| 7 | - #include <stdlib.h> | ||
| 8 | - | ||
| 9 | - #include <brotli/types.h> | ||
| 10 | - | ||
| 11 | 7 | #include "platform.h" | |
| 12 | 8 | ||
| 13 | 9 | /* Default brotli_alloc_func */ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments