]>
Commit | Line | Data |
---|---|---|
11b7501a SB |
1 | /* Copyright 2013 Google Inc. All Rights Reserved.\r |
2 | \r | |
3 | Distributed under MIT license.\r | |
4 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT\r | |
5 | */\r | |
6 | \r | |
7 | /* Literal cost model to allow backward reference replacement to be efficient.\r | |
8 | */\r | |
9 | \r | |
10 | #ifndef BROTLI_ENC_LITERAL_COST_H_\r | |
11 | #define BROTLI_ENC_LITERAL_COST_H_\r | |
12 | \r | |
13 | #include "../common/types.h"\r | |
14 | #include "./port.h"\r | |
15 | \r | |
16 | #if defined(__cplusplus) || defined(c_plusplus)\r | |
17 | extern "C" {\r | |
18 | #endif\r | |
19 | \r | |
20 | /* Estimates how many bits the literals in the interval [pos, pos + len) in the\r | |
21 | ringbuffer (data, mask) will take entropy coded and writes these estimates\r | |
22 | to the cost[0..len) array. */\r | |
23 | BROTLI_INTERNAL void BrotliEstimateBitCostsForLiterals(\r | |
24 | size_t pos, size_t len, size_t mask, const uint8_t *data, float *cost);\r | |
25 | \r | |
26 | #if defined(__cplusplus) || defined(c_plusplus)\r | |
27 | } /* extern "C" */\r | |
28 | #endif\r | |
29 | \r | |
30 | #endif /* BROTLI_ENC_LITERAL_COST_H_ */\r |