| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 void wrapper_vertical_16_dual_c(uint8_t *s, int p, const uint8_t *blimit, | 132 void wrapper_vertical_16_dual_c(uint8_t *s, int p, const uint8_t *blimit, |
| 133 const uint8_t *limit, const uint8_t *thresh, | 133 const uint8_t *limit, const uint8_t *thresh, |
| 134 int count) { | 134 int count) { |
| 135 vp9_lpf_vertical_16_dual_c(s, p, blimit, limit, thresh); | 135 vp9_lpf_vertical_16_dual_c(s, p, blimit, limit, thresh); |
| 136 } | 136 } |
| 137 #endif // CONFIG_VP9_HIGHBITDEPTH | 137 #endif // CONFIG_VP9_HIGHBITDEPTH |
| 138 #endif // HAVE_NEON_ASM | 138 #endif // HAVE_NEON_ASM |
| 139 | 139 |
| 140 #if HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH) |
| 141 void wrapper_vertical_16_msa(uint8_t *s, int p, const uint8_t *blimit, |
| 142 const uint8_t *limit, const uint8_t *thresh, |
| 143 int count) { |
| 144 vp9_lpf_vertical_16_msa(s, p, blimit, limit, thresh); |
| 145 } |
| 146 |
| 147 void wrapper_vertical_16_c(uint8_t *s, int p, const uint8_t *blimit, |
| 148 const uint8_t *limit, const uint8_t *thresh, |
| 149 int count) { |
| 150 vp9_lpf_vertical_16_c(s, p, blimit, limit, thresh); |
| 151 } |
| 152 #endif // HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH) |
| 153 |
| 140 class Loop8Test6Param : public ::testing::TestWithParam<loop8_param_t> { | 154 class Loop8Test6Param : public ::testing::TestWithParam<loop8_param_t> { |
| 141 public: | 155 public: |
| 142 virtual ~Loop8Test6Param() {} | 156 virtual ~Loop8Test6Param() {} |
| 143 virtual void SetUp() { | 157 virtual void SetUp() { |
| 144 loopfilter_op_ = GET_PARAM(0); | 158 loopfilter_op_ = GET_PARAM(0); |
| 145 ref_loopfilter_op_ = GET_PARAM(1); | 159 ref_loopfilter_op_ = GET_PARAM(1); |
| 146 bit_depth_ = GET_PARAM(2); | 160 bit_depth_ = GET_PARAM(2); |
| 147 count_ = GET_PARAM(3); | 161 count_ = GET_PARAM(3); |
| 148 mask_ = (1 << bit_depth_) - 1; | 162 mask_ = (1 << bit_depth_) - 1; |
| 149 } | 163 } |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 make_tuple(&vp9_lpf_vertical_8_dual_neon, | 683 make_tuple(&vp9_lpf_vertical_8_dual_neon, |
| 670 &vp9_lpf_vertical_8_dual_c, 8), | 684 &vp9_lpf_vertical_8_dual_c, 8), |
| 671 #endif // HAVE_NEON_ASM | 685 #endif // HAVE_NEON_ASM |
| 672 make_tuple(&vp9_lpf_horizontal_4_dual_neon, | 686 make_tuple(&vp9_lpf_horizontal_4_dual_neon, |
| 673 &vp9_lpf_horizontal_4_dual_c, 8), | 687 &vp9_lpf_horizontal_4_dual_c, 8), |
| 674 make_tuple(&vp9_lpf_vertical_4_dual_neon, | 688 make_tuple(&vp9_lpf_vertical_4_dual_neon, |
| 675 &vp9_lpf_vertical_4_dual_c, 8))); | 689 &vp9_lpf_vertical_4_dual_c, 8))); |
| 676 #endif // CONFIG_VP9_HIGHBITDEPTH | 690 #endif // CONFIG_VP9_HIGHBITDEPTH |
| 677 #endif // HAVE_NEON | 691 #endif // HAVE_NEON |
| 678 | 692 |
| 693 #if HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH) |
| 694 INSTANTIATE_TEST_CASE_P( |
| 695 MSA, Loop8Test6Param, |
| 696 ::testing::Values( |
| 697 make_tuple(&vp9_lpf_horizontal_8_msa, &vp9_lpf_horizontal_8_c, 8, 1), |
| 698 make_tuple(&vp9_lpf_horizontal_16_msa, &vp9_lpf_horizontal_16_c, 8, 1), |
| 699 make_tuple(&vp9_lpf_horizontal_16_msa, &vp9_lpf_horizontal_16_c, 8, 2), |
| 700 make_tuple(&vp9_lpf_vertical_8_msa, &vp9_lpf_vertical_8_c, 8, 1), |
| 701 make_tuple(&wrapper_vertical_16_msa, &wrapper_vertical_16_c, 8, 1))); |
| 702 |
| 703 INSTANTIATE_TEST_CASE_P( |
| 704 MSA, Loop8Test9Param, |
| 705 ::testing::Values( |
| 706 make_tuple(&vp9_lpf_horizontal_4_dual_msa, |
| 707 &vp9_lpf_horizontal_4_dual_c, 8), |
| 708 make_tuple(&vp9_lpf_horizontal_8_dual_msa, |
| 709 &vp9_lpf_horizontal_8_dual_c, 8), |
| 710 make_tuple(&vp9_lpf_vertical_4_dual_msa, |
| 711 &vp9_lpf_vertical_4_dual_c, 8), |
| 712 make_tuple(&vp9_lpf_vertical_8_dual_msa, |
| 713 &vp9_lpf_vertical_8_dual_c, 8))); |
| 714 #endif // HAVE_MSA && (!CONFIG_VP9_HIGHBITDEPTH) |
| 715 |
| 679 } // namespace | 716 } // namespace |
| OLD | NEW |