| 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 // Color Cache for WebP Lossless | 10 // Color Cache for WebP Lossless |
| 9 // | 11 // |
| 10 // Author: Jyrki Alakuijala (jyrki@google.com) | 12 // Author: Jyrki Alakuijala (jyrki@google.com) |
| 11 | 13 |
| 12 #include <assert.h> | 14 #include <assert.h> |
| 13 #include <stdlib.h> | 15 #include <stdlib.h> |
| 14 #include "./color_cache.h" | 16 #include "./color_cache.h" |
| 15 #include "../utils/utils.h" | 17 #include "../utils/utils.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 35 void VP8LColorCacheClear(VP8LColorCache* const cc) { | 37 void VP8LColorCacheClear(VP8LColorCache* const cc) { |
| 36 if (cc != NULL) { | 38 if (cc != NULL) { |
| 37 free(cc->colors_); | 39 free(cc->colors_); |
| 38 cc->colors_ = NULL; | 40 cc->colors_ = NULL; |
| 39 } | 41 } |
| 40 } | 42 } |
| 41 | 43 |
| 42 #if defined(__cplusplus) || defined(c_plusplus) | 44 #if defined(__cplusplus) || defined(c_plusplus) |
| 43 } | 45 } |
| 44 #endif | 46 #endif |
| OLD | NEW |