/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ #ifndef AOM_TEST_UTIL_H_ #define AOM_TEST_UTIL_H_ #include <math.h> #include <stdio.h> #include <string.h> #include "gtest/gtest.h" #include "aom/aom_image.h" #include "aom_ports/aom_timer.h" // Macros #define GET_PARAM(k) … inline int is_extension_y4m(const char *filename) { … } inline double compute_psnr(const aom_image_t *img1, const aom_image_t *img2) { … } static inline double get_time_mark(aom_usec_timer *t) { … } #endif // AOM_TEST_UTIL_H_