| OLD | NEW |
| (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_ |
| OLD | NEW |