diff options
author | Clément Bœsch <u@pkh.me> | 2018-05-06 10:54:49 +0200 |
---|---|---|
committer | Clément Bœsch <u@pkh.me> | 2018-05-08 10:28:06 +0200 |
commit | 5a71bce3713ce0b074b1ad33f2c5e9c6bcddde2c (patch) | |
tree | d7df836f475e63fc4ee8dcfa15c9fee2220637d1 /libavfilter/tests | |
parent | 5ba14f4f1a5ef508698d6a5c8d579880c2901b22 (diff) | |
download | ffmpeg-streaming-5a71bce3713ce0b074b1ad33f2c5e9c6bcddde2c.zip ffmpeg-streaming-5a71bce3713ce0b074b1ad33f2c5e9c6bcddde2c.tar.gz |
lavfi/nlmeans: add AArch64 SIMD for compute_safe_ssd_integral_image
ssd_integral_image_c: 49204.6
ssd_integral_image_neon: 28346.8
Diffstat (limited to 'libavfilter/tests')
-rw-r--r-- | libavfilter/tests/integral.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavfilter/tests/integral.c b/libavfilter/tests/integral.c index 049fefa..2a8e8ff 100644 --- a/libavfilter/tests/integral.c +++ b/libavfilter/tests/integral.c @@ -57,6 +57,10 @@ int main(void) uint32_t *ii_start = ii + ii_lz_32 + 1; // skip top 0-line and left 0-column uint32_t *ii_start2 = ii2 + ii_lz_32 + 1; // skip top 0-line and left 0-column + NLMeansDSPContext dsp = {0}; + + ff_nlmeans_init(&dsp); + if (!ii || !ii2) return -1; @@ -64,7 +68,7 @@ int main(void) for (xoff = -e; xoff <= e; xoff++) { printf("xoff=%d yoff=%d\n", xoff, yoff); - compute_ssd_integral_image(ii_start, ii_lz_32, + compute_ssd_integral_image(&dsp, ii_start, ii_lz_32, src, lz, xoff, yoff, e, w, h); display_integral(ii_start, ii_w, ii_h, ii_lz_32); |