| OLD | NEW |
| 1 /* Copyright 2015 Google Inc. All Rights Reserved. | 1 /* Copyright 2015 Google Inc. All Rights Reserved. |
| 2 | 2 |
| 3 Distributed under MIT license. | 3 Distributed under MIT license. |
| 4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | 4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* Brotli state for partial streaming decoding. */ | 7 /* Brotli state for partial streaming decoding. */ |
| 8 | 8 |
| 9 #ifndef BROTLI_DEC_STATE_H_ | 9 #ifndef BROTLI_DEC_STATE_H_ |
| 10 #define BROTLI_DEC_STATE_H_ | 10 #define BROTLI_DEC_STATE_H_ |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 HuffmanCode* next; | 186 HuffmanCode* next; |
| 187 | 187 |
| 188 /* For DecodeContextMap */ | 188 /* For DecodeContextMap */ |
| 189 uint32_t context_index; | 189 uint32_t context_index; |
| 190 uint32_t max_run_length_prefix; | 190 uint32_t max_run_length_prefix; |
| 191 uint32_t code; | 191 uint32_t code; |
| 192 HuffmanCode context_map_table[BROTLI_HUFFMAN_MAX_SIZE_272]; | 192 HuffmanCode context_map_table[BROTLI_HUFFMAN_MAX_SIZE_272]; |
| 193 | 193 |
| 194 /* For InverseMoveToFrontTransform */ | 194 /* For InverseMoveToFrontTransform */ |
| 195 uint32_t mtf_upper_bound; | 195 uint32_t mtf_upper_bound; |
| 196 uint8_t mtf[256]; | 196 uint8_t mtf[256 + 4]; |
| 197 | 197 |
| 198 /* For custom dictionaries */ | 198 /* For custom dictionaries */ |
| 199 const uint8_t* custom_dict; | 199 const uint8_t* custom_dict; |
| 200 int custom_dict_size; | 200 int custom_dict_size; |
| 201 | 201 |
| 202 /* less used attributes are in the end of this struct */ | 202 /* less used attributes are in the end of this struct */ |
| 203 /* States inside function calls */ | 203 /* States inside function calls */ |
| 204 BrotliRunningMetablockHeaderState substate_metablock_header; | 204 BrotliRunningMetablockHeaderState substate_metablock_header; |
| 205 BrotliRunningTreeGroupState substate_tree_group; | 205 BrotliRunningTreeGroupState substate_tree_group; |
| 206 BrotliRunningContextMapState substate_context_map; | 206 BrotliRunningContextMapState substate_context_map; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 232 BROTLI_INTERNAL void BrotliHuffmanTreeGroupInit(BrotliState* s, | 232 BROTLI_INTERNAL void BrotliHuffmanTreeGroupInit(BrotliState* s, |
| 233 HuffmanTreeGroup* group, uint32_t alphabet_size, uint32_t ntrees); | 233 HuffmanTreeGroup* group, uint32_t alphabet_size, uint32_t ntrees); |
| 234 BROTLI_INTERNAL void BrotliHuffmanTreeGroupRelease(BrotliState* s, | 234 BROTLI_INTERNAL void BrotliHuffmanTreeGroupRelease(BrotliState* s, |
| 235 HuffmanTreeGroup* group); | 235 HuffmanTreeGroup* group); |
| 236 | 236 |
| 237 #if defined(__cplusplus) || defined(c_plusplus) | 237 #if defined(__cplusplus) || defined(c_plusplus) |
| 238 } /* extern "C" */ | 238 } /* extern "C" */ |
| 239 #endif | 239 #endif |
| 240 | 240 |
| 241 #endif /* BROTLI_DEC_STATE_H_ */ | 241 #endif /* BROTLI_DEC_STATE_H_ */ |
| OLD | NEW |