This commit is contained in:
Anthony Minessale
2019-09-11 15:51:47 +00:00
committed by Andrey Volk
parent 34fcadbd53
commit ceb051af4e
821 changed files with 89961 additions and 48650 deletions

View File

@@ -8,16 +8,18 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef TEST_UTIL_H_
#define TEST_UTIL_H_
#ifndef VPX_TEST_UTIL_H_
#define VPX_TEST_UTIL_H_
#include <stdio.h>
#include <math.h>
#include <tuple>
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "vpx/vpx_image.h"
// Macros
#define GET_PARAM(k) std::tr1::get<k>(GetParam())
#define GET_PARAM(k) std::get<k>(GetParam())
inline double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) {
assert((img1->fmt == img2->fmt) && (img1->d_w == img2->d_w) &&
@@ -43,4 +45,4 @@ inline double compute_psnr(const vpx_image_t *img1, const vpx_image_t *img2) {
return psnr;
}
#endif // TEST_UTIL_H_
#endif // VPX_TEST_UTIL_H_