| OLD | NEW |
| 1 // Copyright 2012 Google Inc. All Rights Reserved. | 1 // Copyright 2012 Google Inc. All Rights Reserved. |
| 2 // | 2 // |
| 3 // This code is licensed under the same terms as WebM: | 3 // Use of this source code is governed by a BSD-style license |
| 4 // Software License Agreement: http://www.webmproject.org/license/software/ | 4 // that can be found in the COPYING file in the root of the source |
| 5 // Additional IP Rights Grant: http://www.webmproject.org/license/additional/ | 5 // tree. An additional intellectual property rights grant can be found |
| 6 // in the file PATENTS. All contributing project authors may |
| 7 // be found in the AUTHORS file in the root of the source tree. |
| 6 // ----------------------------------------------------------------------------- | 8 // ----------------------------------------------------------------------------- |
| 7 // | 9 // |
| 8 // Utilities for building and looking up Huffman trees. | 10 // Utilities for building and looking up Huffman trees. |
| 9 // | 11 // |
| 10 // Author: Urvang Joshi (urvang@google.com) | 12 // Author: Urvang Joshi (urvang@google.com) |
| 11 | 13 |
| 12 #ifndef WEBP_UTILS_HUFFMAN_H_ | 14 #ifndef WEBP_UTILS_HUFFMAN_H_ |
| 13 #define WEBP_UTILS_HUFFMAN_H_ | 15 #define WEBP_UTILS_HUFFMAN_H_ |
| 14 | 16 |
| 15 #include <assert.h> | 17 #include <assert.h> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Returns false in case of error (memory allocation, invalid codes). | 71 // Returns false in case of error (memory allocation, invalid codes). |
| 70 int HuffmanCodeLengthsToCodes(const int* const code_lengths, | 72 int HuffmanCodeLengthsToCodes(const int* const code_lengths, |
| 71 int code_lengths_size, int* const huff_codes); | 73 int code_lengths_size, int* const huff_codes); |
| 72 | 74 |
| 73 | 75 |
| 74 #if defined(__cplusplus) || defined(c_plusplus) | 76 #if defined(__cplusplus) || defined(c_plusplus) |
| 75 } // extern "C" | 77 } // extern "C" |
| 76 #endif | 78 #endif |
| 77 | 79 |
| 78 #endif // WEBP_UTILS_HUFFMAN_H_ | 80 #endif // WEBP_UTILS_HUFFMAN_H_ |
| OLD | NEW |