Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/brotli/dec/state.h

Issue 1956893002: Added brotli enc/ and tools/ directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to most recent build tools Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/brotli/dec/decode.c ('k') | third_party/brotli/enc/backward_references.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_ */
OLDNEW
« no previous file with comments | « third_party/brotli/dec/decode.c ('k') | third_party/brotli/enc/backward_references.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698