From bbcc64772580c8a979288791afa02d30bc476d2e Mon Sep 17 00:00:00 2001 From: trav90 Date: Fri, 19 Oct 2018 21:52:15 -0500 Subject: Update aom to v1.0.0 Update aom to commit id d14c5bb4f336ef1842046089849dee4a301fbbf0. --- third_party/aom/test/warp_filter_test_util.h | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'third_party/aom/test/warp_filter_test_util.h') diff --git a/third_party/aom/test/warp_filter_test_util.h b/third_party/aom/test/warp_filter_test_util.h index 4828f3785..cf72d9db6 100644 --- a/third_party/aom/test/warp_filter_test_util.h +++ b/third_party/aom/test/warp_filter_test_util.h @@ -12,18 +12,24 @@ #ifndef TEST_WARP_FILTER_TEST_UTIL_H_ #define TEST_WARP_FILTER_TEST_UTIL_H_ +#include "config/av1_rtcd.h" +#include "config/aom_dsp_rtcd.h" + #include "third_party/googletest/src/googletest/include/gtest/gtest.h" #include "test/acm_random.h" #include "test/util.h" -#include "./av1_rtcd.h" -#include "./aom_dsp_rtcd.h" #include "test/clear_system_state.h" #include "test/register_state_check.h" #include "av1/common/mv.h" +#include "av1/common/common_data.h" namespace libaom_test { +void generate_warped_model(libaom_test::ACMRandom *rnd, int32_t *mat, + int16_t *alpha, int16_t *beta, int16_t *gamma, + int16_t *delta); + namespace AV1WarpFilter { typedef void (*warp_affine_func)(const int32_t *mat, const uint8_t *ref, @@ -34,7 +40,7 @@ typedef void (*warp_affine_func)(const int32_t *mat, const uint8_t *ref, ConvolveParams *conv_params, int16_t alpha, int16_t beta, int16_t gamma, int16_t delta); -typedef std::tr1::tuple WarpTestParam; +typedef ::testing::tuple WarpTestParam; ::testing::internal::ParamGenerator BuildParams( warp_affine_func filter); @@ -47,18 +53,14 @@ class AV1WarpFilterTest : public ::testing::TestWithParam { virtual void TearDown(); protected: - int32_t random_param(int bits); - void generate_model(int32_t *mat, int16_t *alpha, int16_t *beta, - int16_t *gamma, int16_t *delta); - void RunCheckOutput(warp_affine_func test_impl); + void RunSpeedTest(warp_affine_func test_impl); libaom_test::ACMRandom rnd_; }; } // namespace AV1WarpFilter -#if CONFIG_HIGHBITDEPTH namespace AV1HighbdWarpFilter { typedef void (*highbd_warp_affine_func)(const int32_t *mat, const uint16_t *ref, int width, int height, int stride, @@ -69,9 +71,11 @@ typedef void (*highbd_warp_affine_func)(const int32_t *mat, const uint16_t *ref, int16_t alpha, int16_t beta, int16_t gamma, int16_t delta); -typedef std::tr1::tuple HighbdWarpTestParam; +typedef ::testing::tuple + HighbdWarpTestParam; -::testing::internal::ParamGenerator GetDefaultParams(); +::testing::internal::ParamGenerator BuildParams( + highbd_warp_affine_func filter); class AV1HighbdWarpFilterTest : public ::testing::TestWithParam { @@ -82,17 +86,13 @@ class AV1HighbdWarpFilterTest virtual void TearDown(); protected: - int32_t random_param(int bits); - void generate_model(int32_t *mat, int16_t *alpha, int16_t *beta, - int16_t *gamma, int16_t *delta); - void RunCheckOutput(highbd_warp_affine_func test_impl); + void RunSpeedTest(highbd_warp_affine_func test_impl); libaom_test::ACMRandom rnd_; }; } // namespace AV1HighbdWarpFilter -#endif // CONFIG_HIGHBITDEPTH } // namespace libaom_test -- cgit v1.2.3