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

Side by Side Diff: third_party/brotli/enc/dictionary.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/enc/context.h ('k') | third_party/brotli/enc/dictionary.cc » ('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 2013 Google Inc. All Rights Reserved. 1 /* Copyright 2013 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 /* Collection of static dictionary words. */ 7 // Collection of static dictionary words.
8 8
9 #ifndef BROTLI_DEC_DICTIONARY_H_ 9 #ifndef BROTLI_ENC_DICTIONARY_H_
10 #define BROTLI_DEC_DICTIONARY_H_ 10 #define BROTLI_ENC_DICTIONARY_H_
11 11
12 #include "./types.h" 12 #include "./types.h"
13 13
14 // No namespace, use same identifier as for the C decoder.
15
14 #if defined(__cplusplus) || defined(c_plusplus) 16 #if defined(__cplusplus) || defined(c_plusplus)
15 extern "C" { 17 extern "C" {
16 #endif 18 #endif
17 19
18 extern const uint8_t kBrotliDictionary[122784]; 20 extern const uint8_t kBrotliDictionary[122784];
19 21
20 static const uint32_t kBrotliDictionaryOffsetsByLength[] = { 22 static const uint32_t kBrotliDictionaryOffsetsByLength[] = {
21 0, 0, 0, 0, 0, 4096, 9216, 21504, 35840, 44032, 53248, 63488, 74752, 87040, 23 0, 0, 0, 0, 0, 4096, 9216, 21504, 35840, 44032,
22 93696, 100864, 104704, 106752, 108928, 113536, 115968, 118528, 119872, 121280, 24 53248, 63488, 74752, 87040, 93696, 100864, 104704, 106752, 108928, 113536,
23 122016 25 115968, 118528, 119872, 121280, 122016,
24 }; 26 };
25 27
26 static const uint8_t kBrotliDictionarySizeBitsByLength[] = { 28 static const uint8_t kBrotliDictionarySizeBitsByLength[] = {
27 0, 0, 0, 0, 10, 10, 11, 11, 10, 10, 10, 10, 10, 29 0, 0, 0, 0, 10, 10, 11, 11, 10, 10,
28 9, 9, 8, 7, 7, 8, 7, 7, 6, 6, 5, 5, 30 10, 10, 10, 9, 9, 8, 7, 7, 8, 7,
31 7, 6, 6, 5, 5,
29 }; 32 };
30 33
31 static const int kBrotliMinDictionaryWordLength = 4; 34 static const int kBrotliMinDictionaryWordLength = 4;
32 static const int kBrotliMaxDictionaryWordLength = 24; 35 static const int kBrotliMaxDictionaryWordLength = 24;
33 36
34 #if defined(__cplusplus) || defined(c_plusplus) 37 #if defined(__cplusplus) || defined(c_plusplus)
35 } /* extern "C" */ 38 } /* extern "C" */
36 #endif 39 #endif
37 40
38 #endif /* BROTLI_DEC_DICTIONARY_H_ */ 41 #endif // BROTLI_ENC_DICTIONARY_H_
OLDNEW
« no previous file with comments | « third_party/brotli/enc/context.h ('k') | third_party/brotli/enc/dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698