| 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 // Author: Jyrki Alakuijala (jyrki@google.com) | 10 // Author: Jyrki Alakuijala (jyrki@google.com) |
| 9 // | 11 // |
| 10 #ifdef HAVE_CONFIG_H | 12 #ifdef HAVE_CONFIG_H |
| 11 #include "config.h" | 13 #include "config.h" |
| 12 #endif | 14 #endif |
| 13 | 15 |
| 14 #include <math.h> | 16 #include <math.h> |
| 15 #include <stdio.h> | 17 #include <stdio.h> |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 goto Error; | 505 goto Error; |
| 504 } | 506 } |
| 505 // Find the optimal map from original histograms to the final ones. | 507 // Find the optimal map from original histograms to the final ones. |
| 506 HistogramRemap(image_out, image_in, histogram_symbols); | 508 HistogramRemap(image_out, image_in, histogram_symbols); |
| 507 ok = 1; | 509 ok = 1; |
| 508 | 510 |
| 509 Error: | 511 Error: |
| 510 free(image_out); | 512 free(image_out); |
| 511 return ok; | 513 return ok; |
| 512 } | 514 } |
| OLD | NEW |