[FFmpeg-devel] [PATCH V2] avfilter/vf_convolution: add x86 SIMD for filter_3x3()

Song, Ruiling ruiling.song at intel.com
Wed Aug 7 11:08:48 EEST 2019


> -----Original Message-----
> From: Song, Ruiling
> Sent: Wednesday, July 31, 2019 3:54 PM
> To: ffmpeg-devel at ffmpeg.org
> Cc: Song, Ruiling <ruiling.song at intel.com>
> Subject: [PATCH V2] 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 at intel.com>
> ---
> v2:
>   fix a bug in scalar code path.
>   Use macro PROCESS_V/S for the first tap to simplify code.
Applied this version.

> 
>  libavfilter/convolution.h             |  64 +++++++++++
>  libavfilter/vf_convolution.c          |  41 +------
>  libavfilter/x86/Makefile              |   2 +
>  libavfilter/x86/vf_convolution.asm    | 156 ++++++++++++++++++++++++++
>  libavfilter/x86/vf_convolution_init.c |  46 ++++++++
>  5 files changed, 271 insertions(+), 38 deletions(-)
>  create mode 100644 libavfilter/convolution.h
>  create mode 100644 libavfilter/x86/vf_convolution.asm
>  create mode 100644 libavfilter/x86/vf_convolution_init.c
[...]


More information about the ffmpeg-devel mailing list