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

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

Issue 1956893002: Added brotli enc/ and tools/ directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split large file into 2, fixed Windows build issue 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
OLDNEW
(Empty)
1 /* Copyright 2013 Google Inc. All Rights Reserved.
2
3 Distributed under MIT license.
4 See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
5 */
6
7 // Literal cost model to allow backward reference replacement to be efficient.
8
9 #ifndef BROTLI_ENC_LITERAL_COST_H_
10 #define BROTLI_ENC_LITERAL_COST_H_
11
12 #include "./types.h"
13
14 namespace brotli {
15
16 // 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
18 // to the cost[0..len) array.
19 void EstimateBitCostsForLiterals(size_t pos, size_t len, size_t mask,
20 const uint8_t *data, float *cost);
21
22 } // namespace brotli
23
24 #endif // BROTLI_ENC_LITERAL_COST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698