Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 1 | /* |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 3 | * |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 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. |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include "third_party/googletest/src/include/gtest/gtest.h" |
| 13 | #include "test/acm_random.h" |
| 14 | |
| 15 | #include "test/function_equivalence_test.h" |
| 16 | #include "test/register_state_check.h" |
| 17 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 18 | #include "./aom_config.h" |
| 19 | #include "./aom_dsp_rtcd.h" |
| 20 | #include "aom/aom_integer.h" |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 21 | |
| 22 | #define MAX_SB_SQUARE (MAX_SB_SIZE * MAX_SB_SIZE) |
| 23 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 24 | using libaom_test::ACMRandom; |
| 25 | using libaom_test::FunctionEquivalenceTest; |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 26 | |
| 27 | namespace { |
| 28 | |
| 29 | static const int kIterations = 1000; |
| 30 | static const int kMaskMax = 64; |
| 31 | |
| 32 | typedef unsigned int (*ObmcVarF)(const uint8_t *pre, int pre_stride, |
| 33 | const int32_t *wsrc, const int32_t *mask, |
| 34 | unsigned int *sse); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 35 | typedef libaom_test::FuncParam<ObmcVarF> TestFuncs; |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 36 | |
| 37 | //////////////////////////////////////////////////////////////////////////////// |
| 38 | // 8 bit |
| 39 | //////////////////////////////////////////////////////////////////////////////// |
| 40 | |
| 41 | class ObmcVarianceTest : public FunctionEquivalenceTest<ObmcVarF> {}; |
| 42 | |
| 43 | TEST_P(ObmcVarianceTest, RandomValues) { |
| 44 | DECLARE_ALIGNED(32, uint8_t, pre[MAX_SB_SQUARE]); |
| 45 | DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]); |
| 46 | DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]); |
| 47 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 48 | for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 49 | const int pre_stride = this->rng_(MAX_SB_SIZE + 1); |
| 50 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 51 | for (int i = 0; i < MAX_SB_SQUARE; ++i) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 52 | pre[i] = this->rng_.Rand8(); |
| 53 | wsrc[i] = this->rng_.Rand8() * this->rng_(kMaskMax * kMaskMax + 1); |
| 54 | mask[i] = this->rng_(kMaskMax * kMaskMax + 1); |
| 55 | } |
| 56 | |
| 57 | unsigned int ref_sse, tst_sse; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 58 | const unsigned int ref_res = |
| 59 | params_.ref_func(pre, pre_stride, wsrc, mask, &ref_sse); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 60 | unsigned int tst_res; |
| 61 | ASM_REGISTER_STATE_CHECK( |
| 62 | tst_res = params_.tst_func(pre, pre_stride, wsrc, mask, &tst_sse)); |
| 63 | |
| 64 | ASSERT_EQ(ref_res, tst_res); |
| 65 | ASSERT_EQ(ref_sse, tst_sse); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | TEST_P(ObmcVarianceTest, ExtremeValues) { |
| 70 | DECLARE_ALIGNED(32, uint8_t, pre[MAX_SB_SQUARE]); |
| 71 | DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]); |
| 72 | DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]); |
| 73 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 74 | for (int iter = 0; iter < MAX_SB_SIZE && !HasFatalFailure(); ++iter) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 75 | const int pre_stride = iter; |
| 76 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 77 | for (int i = 0; i < MAX_SB_SQUARE; ++i) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 78 | pre[i] = UINT8_MAX; |
| 79 | wsrc[i] = UINT8_MAX * kMaskMax * kMaskMax; |
| 80 | mask[i] = kMaskMax * kMaskMax; |
| 81 | } |
| 82 | |
| 83 | unsigned int ref_sse, tst_sse; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 84 | const unsigned int ref_res = |
| 85 | params_.ref_func(pre, pre_stride, wsrc, mask, &ref_sse); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 86 | unsigned int tst_res; |
| 87 | ASM_REGISTER_STATE_CHECK( |
| 88 | tst_res = params_.tst_func(pre, pre_stride, wsrc, mask, &tst_sse)); |
| 89 | |
| 90 | ASSERT_EQ(ref_res, tst_res); |
| 91 | ASSERT_EQ(ref_sse, tst_sse); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | #if HAVE_SSE4_1 |
| 96 | const ObmcVarianceTest::ParamType sse4_functions[] = { |
| 97 | #if CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 98 | TestFuncs(aom_obmc_variance128x128_c, aom_obmc_variance128x128_sse4_1), |
| 99 | TestFuncs(aom_obmc_variance128x64_c, aom_obmc_variance128x64_sse4_1), |
| 100 | TestFuncs(aom_obmc_variance64x128_c, aom_obmc_variance64x128_sse4_1), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 101 | #endif // CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 102 | TestFuncs(aom_obmc_variance64x64_c, aom_obmc_variance64x64_sse4_1), |
| 103 | TestFuncs(aom_obmc_variance64x32_c, aom_obmc_variance64x32_sse4_1), |
| 104 | TestFuncs(aom_obmc_variance32x64_c, aom_obmc_variance32x64_sse4_1), |
| 105 | TestFuncs(aom_obmc_variance32x32_c, aom_obmc_variance32x32_sse4_1), |
| 106 | TestFuncs(aom_obmc_variance32x16_c, aom_obmc_variance32x16_sse4_1), |
| 107 | TestFuncs(aom_obmc_variance16x32_c, aom_obmc_variance16x32_sse4_1), |
| 108 | TestFuncs(aom_obmc_variance16x16_c, aom_obmc_variance16x16_sse4_1), |
| 109 | TestFuncs(aom_obmc_variance16x8_c, aom_obmc_variance16x8_sse4_1), |
| 110 | TestFuncs(aom_obmc_variance8x16_c, aom_obmc_variance8x16_sse4_1), |
| 111 | TestFuncs(aom_obmc_variance8x8_c, aom_obmc_variance8x8_sse4_1), |
| 112 | TestFuncs(aom_obmc_variance8x4_c, aom_obmc_variance8x4_sse4_1), |
| 113 | TestFuncs(aom_obmc_variance4x8_c, aom_obmc_variance4x8_sse4_1), |
| 114 | TestFuncs(aom_obmc_variance4x4_c, aom_obmc_variance4x4_sse4_1) |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | INSTANTIATE_TEST_CASE_P(SSE4_1_C_COMPARE, ObmcVarianceTest, |
| 118 | ::testing::ValuesIn(sse4_functions)); |
| 119 | #endif // HAVE_SSE4_1 |
| 120 | |
| 121 | //////////////////////////////////////////////////////////////////////////////// |
| 122 | // High bit-depth |
| 123 | //////////////////////////////////////////////////////////////////////////////// |
| 124 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 125 | #if CONFIG_AOM_HIGHBITDEPTH |
Jingning Han | a387b19 | 2016-07-14 10:11:32 -0700 | [diff] [blame] | 126 | class ObmcVarianceHBDTest : public FunctionEquivalenceTest<ObmcVarF> {}; |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 127 | |
| 128 | TEST_P(ObmcVarianceHBDTest, RandomValues) { |
| 129 | DECLARE_ALIGNED(32, uint16_t, pre[MAX_SB_SQUARE]); |
| 130 | DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]); |
| 131 | DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]); |
| 132 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 133 | for (int iter = 0; iter < kIterations && !HasFatalFailure(); ++iter) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 134 | const int pre_stride = this->rng_(MAX_SB_SIZE + 1); |
| 135 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 136 | for (int i = 0; i < MAX_SB_SQUARE; ++i) { |
Jingning Han | a387b19 | 2016-07-14 10:11:32 -0700 | [diff] [blame] | 137 | pre[i] = this->rng_(1 << params_.bit_depth); |
| 138 | wsrc[i] = this->rng_(1 << params_.bit_depth) * |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 139 | this->rng_(kMaskMax * kMaskMax + 1); |
| 140 | mask[i] = this->rng_(kMaskMax * kMaskMax + 1); |
| 141 | } |
| 142 | |
| 143 | unsigned int ref_sse, tst_sse; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 144 | const unsigned int ref_res = params_.ref_func( |
| 145 | CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask, &ref_sse); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 146 | unsigned int tst_res; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 147 | ASM_REGISTER_STATE_CHECK(tst_res = params_.tst_func(CONVERT_TO_BYTEPTR(pre), |
| 148 | pre_stride, wsrc, mask, |
| 149 | &tst_sse)); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 150 | |
| 151 | ASSERT_EQ(ref_res, tst_res); |
| 152 | ASSERT_EQ(ref_sse, tst_sse); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | TEST_P(ObmcVarianceHBDTest, ExtremeValues) { |
| 157 | DECLARE_ALIGNED(32, uint16_t, pre[MAX_SB_SQUARE]); |
| 158 | DECLARE_ALIGNED(32, int32_t, wsrc[MAX_SB_SQUARE]); |
| 159 | DECLARE_ALIGNED(32, int32_t, mask[MAX_SB_SQUARE]); |
| 160 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 161 | for (int iter = 0; iter < MAX_SB_SIZE && !HasFatalFailure(); ++iter) { |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 162 | const int pre_stride = iter; |
| 163 | |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 164 | for (int i = 0; i < MAX_SB_SQUARE; ++i) { |
Jingning Han | a387b19 | 2016-07-14 10:11:32 -0700 | [diff] [blame] | 165 | pre[i] = (1 << params_.bit_depth) - 1; |
| 166 | wsrc[i] = ((1 << params_.bit_depth) - 1) * kMaskMax * kMaskMax; |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 167 | mask[i] = kMaskMax * kMaskMax; |
| 168 | } |
| 169 | |
| 170 | unsigned int ref_sse, tst_sse; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 171 | const unsigned int ref_res = params_.ref_func( |
| 172 | CONVERT_TO_BYTEPTR(pre), pre_stride, wsrc, mask, &ref_sse); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 173 | unsigned int tst_res; |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 174 | ASM_REGISTER_STATE_CHECK(tst_res = params_.tst_func(CONVERT_TO_BYTEPTR(pre), |
| 175 | pre_stride, wsrc, mask, |
| 176 | &tst_sse)); |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 177 | |
| 178 | ASSERT_EQ(ref_res, tst_res); |
| 179 | ASSERT_EQ(ref_sse, tst_sse); |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | #if HAVE_SSE4_1 |
| 184 | ObmcVarianceHBDTest::ParamType sse4_functions_hbd[] = { |
| 185 | #if CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 186 | TestFuncs(aom_highbd_obmc_variance128x128_c, |
| 187 | aom_highbd_obmc_variance128x128_sse4_1, 8), |
| 188 | TestFuncs(aom_highbd_obmc_variance128x64_c, |
| 189 | aom_highbd_obmc_variance128x64_sse4_1, 8), |
| 190 | TestFuncs(aom_highbd_obmc_variance64x128_c, |
| 191 | aom_highbd_obmc_variance64x128_sse4_1, 8), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 192 | #endif // CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 193 | TestFuncs(aom_highbd_obmc_variance64x64_c, |
| 194 | aom_highbd_obmc_variance64x64_sse4_1, 8), |
| 195 | TestFuncs(aom_highbd_obmc_variance64x32_c, |
| 196 | aom_highbd_obmc_variance64x32_sse4_1, 8), |
| 197 | TestFuncs(aom_highbd_obmc_variance32x64_c, |
| 198 | aom_highbd_obmc_variance32x64_sse4_1, 8), |
| 199 | TestFuncs(aom_highbd_obmc_variance32x32_c, |
| 200 | aom_highbd_obmc_variance32x32_sse4_1, 8), |
| 201 | TestFuncs(aom_highbd_obmc_variance32x16_c, |
| 202 | aom_highbd_obmc_variance32x16_sse4_1, 8), |
| 203 | TestFuncs(aom_highbd_obmc_variance16x32_c, |
| 204 | aom_highbd_obmc_variance16x32_sse4_1, 8), |
| 205 | TestFuncs(aom_highbd_obmc_variance16x16_c, |
| 206 | aom_highbd_obmc_variance16x16_sse4_1, 8), |
| 207 | TestFuncs(aom_highbd_obmc_variance16x8_c, aom_highbd_obmc_variance16x8_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 208 | 8), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 209 | TestFuncs(aom_highbd_obmc_variance8x16_c, aom_highbd_obmc_variance8x16_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 210 | 8), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 211 | TestFuncs(aom_highbd_obmc_variance8x8_c, aom_highbd_obmc_variance8x8_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 212 | 8), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 213 | TestFuncs(aom_highbd_obmc_variance8x4_c, aom_highbd_obmc_variance8x4_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 214 | 8), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 215 | TestFuncs(aom_highbd_obmc_variance4x8_c, aom_highbd_obmc_variance4x8_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 216 | 8), |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 217 | TestFuncs(aom_highbd_obmc_variance4x4_c, aom_highbd_obmc_variance4x4_sse4_1, |
clang-format | 3a826f1 | 2016-08-11 17:46:05 -0700 | [diff] [blame] | 218 | 8), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 219 | #if CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 220 | TestFuncs(aom_highbd_10_obmc_variance128x128_c, |
| 221 | aom_highbd_10_obmc_variance128x128_sse4_1, 10), |
| 222 | TestFuncs(aom_highbd_10_obmc_variance128x64_c, |
| 223 | aom_highbd_10_obmc_variance128x64_sse4_1, 10), |
| 224 | TestFuncs(aom_highbd_10_obmc_variance64x128_c, |
| 225 | aom_highbd_10_obmc_variance64x128_sse4_1, 10), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 226 | #endif // CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 227 | TestFuncs(aom_highbd_10_obmc_variance64x64_c, |
| 228 | aom_highbd_10_obmc_variance64x64_sse4_1, 10), |
| 229 | TestFuncs(aom_highbd_10_obmc_variance64x32_c, |
| 230 | aom_highbd_10_obmc_variance64x32_sse4_1, 10), |
| 231 | TestFuncs(aom_highbd_10_obmc_variance32x64_c, |
| 232 | aom_highbd_10_obmc_variance32x64_sse4_1, 10), |
| 233 | TestFuncs(aom_highbd_10_obmc_variance32x32_c, |
| 234 | aom_highbd_10_obmc_variance32x32_sse4_1, 10), |
| 235 | TestFuncs(aom_highbd_10_obmc_variance32x16_c, |
| 236 | aom_highbd_10_obmc_variance32x16_sse4_1, 10), |
| 237 | TestFuncs(aom_highbd_10_obmc_variance16x32_c, |
| 238 | aom_highbd_10_obmc_variance16x32_sse4_1, 10), |
| 239 | TestFuncs(aom_highbd_10_obmc_variance16x16_c, |
| 240 | aom_highbd_10_obmc_variance16x16_sse4_1, 10), |
| 241 | TestFuncs(aom_highbd_10_obmc_variance16x8_c, |
| 242 | aom_highbd_10_obmc_variance16x8_sse4_1, 10), |
| 243 | TestFuncs(aom_highbd_10_obmc_variance8x16_c, |
| 244 | aom_highbd_10_obmc_variance8x16_sse4_1, 10), |
| 245 | TestFuncs(aom_highbd_10_obmc_variance8x8_c, |
| 246 | aom_highbd_10_obmc_variance8x8_sse4_1, 10), |
| 247 | TestFuncs(aom_highbd_10_obmc_variance8x4_c, |
| 248 | aom_highbd_10_obmc_variance8x4_sse4_1, 10), |
| 249 | TestFuncs(aom_highbd_10_obmc_variance4x8_c, |
| 250 | aom_highbd_10_obmc_variance4x8_sse4_1, 10), |
| 251 | TestFuncs(aom_highbd_10_obmc_variance4x4_c, |
| 252 | aom_highbd_10_obmc_variance4x4_sse4_1, 10), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 253 | #if CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 254 | TestFuncs(aom_highbd_12_obmc_variance128x128_c, |
| 255 | aom_highbd_12_obmc_variance128x128_sse4_1, 12), |
| 256 | TestFuncs(aom_highbd_12_obmc_variance128x64_c, |
| 257 | aom_highbd_12_obmc_variance128x64_sse4_1, 12), |
| 258 | TestFuncs(aom_highbd_12_obmc_variance64x128_c, |
| 259 | aom_highbd_12_obmc_variance64x128_sse4_1, 12), |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 260 | #endif // CONFIG_EXT_PARTITION |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 261 | TestFuncs(aom_highbd_12_obmc_variance64x64_c, |
| 262 | aom_highbd_12_obmc_variance64x64_sse4_1, 12), |
| 263 | TestFuncs(aom_highbd_12_obmc_variance64x32_c, |
| 264 | aom_highbd_12_obmc_variance64x32_sse4_1, 12), |
| 265 | TestFuncs(aom_highbd_12_obmc_variance32x64_c, |
| 266 | aom_highbd_12_obmc_variance32x64_sse4_1, 12), |
| 267 | TestFuncs(aom_highbd_12_obmc_variance32x32_c, |
| 268 | aom_highbd_12_obmc_variance32x32_sse4_1, 12), |
| 269 | TestFuncs(aom_highbd_12_obmc_variance32x16_c, |
| 270 | aom_highbd_12_obmc_variance32x16_sse4_1, 12), |
| 271 | TestFuncs(aom_highbd_12_obmc_variance16x32_c, |
| 272 | aom_highbd_12_obmc_variance16x32_sse4_1, 12), |
| 273 | TestFuncs(aom_highbd_12_obmc_variance16x16_c, |
| 274 | aom_highbd_12_obmc_variance16x16_sse4_1, 12), |
| 275 | TestFuncs(aom_highbd_12_obmc_variance16x8_c, |
| 276 | aom_highbd_12_obmc_variance16x8_sse4_1, 12), |
| 277 | TestFuncs(aom_highbd_12_obmc_variance8x16_c, |
| 278 | aom_highbd_12_obmc_variance8x16_sse4_1, 12), |
| 279 | TestFuncs(aom_highbd_12_obmc_variance8x8_c, |
| 280 | aom_highbd_12_obmc_variance8x8_sse4_1, 12), |
| 281 | TestFuncs(aom_highbd_12_obmc_variance8x4_c, |
| 282 | aom_highbd_12_obmc_variance8x4_sse4_1, 12), |
| 283 | TestFuncs(aom_highbd_12_obmc_variance4x8_c, |
| 284 | aom_highbd_12_obmc_variance4x8_sse4_1, 12), |
| 285 | TestFuncs(aom_highbd_12_obmc_variance4x4_c, |
| 286 | aom_highbd_12_obmc_variance4x4_sse4_1, 12) |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 287 | }; |
| 288 | |
| 289 | INSTANTIATE_TEST_CASE_P(SSE4_1_C_COMPARE, ObmcVarianceHBDTest, |
| 290 | ::testing::ValuesIn(sse4_functions_hbd)); |
| 291 | #endif // HAVE_SSE4_1 |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 292 | #endif // CONFIG_AOM_HIGHBITDEPTH |
Geza Lore | ebc2d34 | 2016-07-12 11:41:54 +0100 | [diff] [blame] | 293 | } // namespace |