mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-23 16:13:29 +08:00
lavfi/nlmeans: add AArch64 SIMD for compute_safe_ssd_integral_image
ssd_integral_image_c: 49204.6 ssd_integral_image_neon: 28346.8
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user