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

Side by Side Diff: third_party/brotli/enc/literal_cost.h

Issue 2537133002: Update brotli to v1.0.0-snapshot. (Closed)
Patch Set: Fixed typo Created 4 years 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/histogram_inc.h ('k') | third_party/brotli/enc/literal_cost.c » ('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 // Literal cost model to allow backward reference replacement to be efficient. 7 /* Literal cost model to allow backward reference replacement to be efficient.
8 */
8 9
9 #ifndef BROTLI_ENC_LITERAL_COST_H_ 10 #ifndef BROTLI_ENC_LITERAL_COST_H_
10 #define BROTLI_ENC_LITERAL_COST_H_ 11 #define BROTLI_ENC_LITERAL_COST_H_
11 12
12 #include "./types.h" 13 #include <brotli/types.h>
14 #include "./port.h"
13 15
14 namespace brotli { 16 #if defined(__cplusplus) || defined(c_plusplus)
17 extern "C" {
18 #endif
15 19
16 // Estimates how many bits the literals in the interval [pos, pos + len) in the 20 /* Estimates how many bits the literals in the interval [pos, pos + len) in the
17 // ringbuffer (data, mask) will take entropy coded and writes these estimates 21 ring-buffer (data, mask) will take entropy coded and writes these estimates
18 // to the cost[0..len) array. 22 to the cost[0..len) array. */
19 void EstimateBitCostsForLiterals(size_t pos, size_t len, size_t mask, 23 BROTLI_INTERNAL void BrotliEstimateBitCostsForLiterals(
20 const uint8_t *data, float *cost); 24 size_t pos, size_t len, size_t mask, const uint8_t *data, float *cost);
21 25
22 } // namespace brotli 26 #if defined(__cplusplus) || defined(c_plusplus)
27 } /* extern "C" */
28 #endif
23 29
24 #endif // BROTLI_ENC_LITERAL_COST_H_ 30 #endif /* BROTLI_ENC_LITERAL_COST_H_ */
OLDNEW
« no previous file with comments | « third_party/brotli/enc/histogram_inc.h ('k') | third_party/brotli/enc/literal_cost.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698