| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // Use of this source code is governed by a BSD-style license | 3 // Use of this source code is governed by a BSD-style license |
| 4 // that can be found in the COPYING file in the root of the source | 4 // that can be found in the COPYING file in the root of the source |
| 5 // tree. An additional intellectual property rights grant can be found | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may | 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. | 7 // be found in the AUTHORS file in the root of the source tree. |
| 8 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 9 // | 9 // |
| 10 // Author: Jyrki Alakuijala (jyrki@google.com) | 10 // Author: Jyrki Alakuijala (jyrki@google.com) |
| 11 // | 11 // |
| 12 // Models the histograms of literal and distance codes. | 12 // Models the histograms of literal and distance codes. |
| 13 | 13 |
| 14 #ifndef WEBP_ENC_HISTOGRAM_H_ | 14 #ifndef WEBP_ENC_HISTOGRAM_H_ |
| 15 #define WEBP_ENC_HISTOGRAM_H_ | 15 #define WEBP_ENC_HISTOGRAM_H_ |
| 16 | 16 |
| 17 #include <string.h> | 17 #include <string.h> |
| 18 | 18 |
| 19 #include "./backward_references.h" | 19 #include "./backward_references_enc.h" |
| 20 #include "../webp/format_constants.h" | 20 #include "../webp/format_constants.h" |
| 21 #include "../webp/types.h" | 21 #include "../webp/types.h" |
| 22 | 22 |
| 23 #ifdef __cplusplus | 23 #ifdef __cplusplus |
| 24 extern "C" { | 24 extern "C" { |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 // Not a trivial literal symbol. | 27 // Not a trivial literal symbol. |
| 28 #define VP8L_NON_TRIVIAL_SYM (0xffffffff) | 28 #define VP8L_NON_TRIVIAL_SYM (0xffffffff) |
| 29 | 29 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 // Estimate how many bits the combined entropy of literals and distance | 115 // Estimate how many bits the combined entropy of literals and distance |
| 116 // approximately maps to. | 116 // approximately maps to. |
| 117 double VP8LHistogramEstimateBits(const VP8LHistogram* const p); | 117 double VP8LHistogramEstimateBits(const VP8LHistogram* const p); |
| 118 | 118 |
| 119 #ifdef __cplusplus | 119 #ifdef __cplusplus |
| 120 } | 120 } |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 #endif // WEBP_ENC_HISTOGRAM_H_ | 123 #endif // WEBP_ENC_HISTOGRAM_H_ |
| OLD | NEW |