Urvang Joshi | 09c293e | 2017-04-20 17:56:27 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2017, Alliance for Open Media. All rights reserved |
| 3 | * |
| 4 | * This source code is subject to the terms of the BSD 2 Clause License and |
| 5 | * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License |
| 6 | * was not distributed with this source code in the LICENSE file, you can |
| 7 | * obtain it at www.aomedia.org/license/software. If the Alliance for Open |
| 8 | * Media Patent License 1.0 was not distributed with this source code in the |
| 9 | * PATENTS file, you can obtain it at www.aomedia.org/license/patent. |
| 10 | */ |
| 11 | |
| 12 | // Utility functions used by encoder binaries. |
| 13 | |
| 14 | #ifndef EXAMPLES_ENCODER_UTIL_H_ |
| 15 | #define EXAMPLES_ENCODER_UTIL_H_ |
| 16 | |
| 17 | #include "./aom_config.h" |
| 18 | #include "aom/aom_image.h" |
| 19 | |
| 20 | // Returns mismatch location (?loc[0],?loc[1]) and the values at that location |
| 21 | // in img1 (?loc[2]) and img2 (?loc[3]). |
Urvang Joshi | 09c293e | 2017-04-20 17:56:27 -0700 | [diff] [blame] | 22 | void aom_find_mismatch_high(const aom_image_t *const img1, |
| 23 | const aom_image_t *const img2, int yloc[4], |
| 24 | int uloc[4], int vloc[4]); |
Urvang Joshi | 09c293e | 2017-04-20 17:56:27 -0700 | [diff] [blame] | 25 | |
| 26 | void aom_find_mismatch(const aom_image_t *const img1, |
| 27 | const aom_image_t *const img2, int yloc[4], int uloc[4], |
| 28 | int vloc[4]); |
| 29 | |
| 30 | // Returns 1 if the two images match. |
| 31 | int aom_compare_img(const aom_image_t *const img1, |
Imdad Sardharwalla | b5def02 | 2017-12-14 11:20:24 +0000 | [diff] [blame] | 32 | const aom_image_t *const img2); |
Urvang Joshi | 09c293e | 2017-04-20 17:56:27 -0700 | [diff] [blame] | 33 | |
| 34 | #endif // EXAMPLES_ENCODER_UTIL_H_ |