avfilter/vf_convolution: add x86 SIMD for filter_3x3()
authorRuiling Song <ruiling.song@intel.com>
Thu, 27 Jun 2019 02:07:21 +0000 (10:07 +0800)
committerRuiling Song <ruiling.song@intel.com>
Wed, 7 Aug 2019 06:31:28 +0000 (14:31 +0800)
commit98e419cbf5443b3e95d6bc7bdb807c9f54bfd6a7
treed03ffca9763bd32cbeedf19bb3e44f5ad60a2933
parent6c67c8ca9ae603b91e65274f93099ccb07bb33db
avfilter/vf_convolution: add x86 SIMD for filter_3x3()

Tested using a simple command (apply edge enhance):
./ffmpeg_g -i ~/Downloads/bbb_sunflower_1080p_30fps_normal.mp4 \
 -vf convolution="0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:0 0 0 -1 1 0 0 0 0:5:1:1:1:0:128:128:128" \
 -an -vframes 1000 -f null /dev/null

The fps increase from 151 to 270 on my local machine.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
libavfilter/convolution.h [new file with mode: 0644]
libavfilter/vf_convolution.c
libavfilter/x86/Makefile
libavfilter/x86/vf_convolution.asm [new file with mode: 0644]
libavfilter/x86/vf_convolution_init.c [new file with mode: 0644]