summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKyle Siefring <kylesiefring@gmail.com>2017-10-12 16:12:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-10-12 16:12:38 +0000
commitcaa116c9be96508c18d533dedc95b2df4f8e3812 (patch)
treef1031bc5c65164c69aec4af77691b916b557f074 /test
parentbc4098a8e969f1ab3281a801a4ba3b78d788cec3 (diff)
parent1b2f92ee8e3a8bf1d3f5a39bfae92e8136ec370b (diff)
downloadlibvpx-caa116c9be96508c18d533dedc95b2df4f8e3812.tar
libvpx-caa116c9be96508c18d533dedc95b2df4f8e3812.tar.gz
libvpx-caa116c9be96508c18d533dedc95b2df4f8e3812.tar.bz2
libvpx-caa116c9be96508c18d533dedc95b2df4f8e3812.zip
Merge changes I38783d97,If5160c0c
* changes: Extend 16 wide AVX2 convolve8 code to support averaging. Add AVX2 version of vpx_convolve8_avg.
Diffstat (limited to 'test')
-rw-r--r--test/convolve_test.cc27
1 files changed, 25 insertions, 2 deletions
diff --git a/test/convolve_test.cc b/test/convolve_test.cc
index 954975c54..9f6f795c9 100644
--- a/test/convolve_test.cc
+++ b/test/convolve_test.cc
@@ -603,6 +603,29 @@ TEST_P(ConvolveTest, DISABLED_Scale_Speed) {
UUT_->use_highbd_ ? UUT_->use_highbd_ : 8, elapsed_time);
}
+TEST_P(ConvolveTest, DISABLED_8Tap_Avg_Speed) {
+ const uint8_t *const in = input();
+ uint8_t *const out = output();
+ const InterpKernel *const eighttap = vp9_filter_kernels[EIGHTTAP_SHARP];
+ const int kNumTests = 5000000;
+ const int width = Width();
+ const int height = Height();
+ vpx_usec_timer timer;
+
+ SetConstantInput(127);
+
+ vpx_usec_timer_start(&timer);
+ for (int n = 0; n < kNumTests; ++n) {
+ UUT_->hv8_[1](in, kInputStride, out, kOutputStride, eighttap, 8, 16, 8, 16,
+ width, height);
+ }
+ vpx_usec_timer_mark(&timer);
+
+ const int elapsed_time = static_cast<int>(vpx_usec_timer_elapsed(&timer));
+ printf("convolve8_avg_%dx%d_%d: %d us\n", width, height,
+ UUT_->use_highbd_ ? UUT_->use_highbd_ : 8, elapsed_time);
+}
+
TEST_P(ConvolveTest, Copy) {
uint8_t *const in = input();
uint8_t *const out = output();
@@ -1177,8 +1200,8 @@ INSTANTIATE_TEST_CASE_P(AVX2, ConvolveTest,
#else // !CONFIG_VP9_HIGHBITDEPTH
const ConvolveFunctions convolve8_avx2(
vpx_convolve_copy_c, vpx_convolve_avg_c, vpx_convolve8_horiz_avx2,
- vpx_convolve8_avg_horiz_ssse3, vpx_convolve8_vert_avx2,
- vpx_convolve8_avg_vert_ssse3, vpx_convolve8_avx2, vpx_convolve8_avg_ssse3,
+ vpx_convolve8_avg_horiz_avx2, vpx_convolve8_vert_avx2,
+ vpx_convolve8_avg_vert_avx2, vpx_convolve8_avx2, vpx_convolve8_avg_avx2,
vpx_scaled_horiz_c, vpx_scaled_avg_horiz_c, vpx_scaled_vert_c,
vpx_scaled_avg_vert_c, vpx_scaled_2d_c, vpx_scaled_avg_2d_c, 0);
const ConvolveParam kArrayConvolve8_avx2[] = { ALL_SIZES(convolve8_avx2) };