[FFmpeg-devel] [PATCH] avfilter/vf_gblur: add x86 SIMD optimizations

Song, Ruiling ruiling.song at intel.com
Sat Jun 1 16:37:47 EEST 2019


> -----Original Message-----
> From: ffmpeg-devel [mailto:ffmpeg-devel-bounces at ffmpeg.org] On Behalf
> Of Carl Eugen Hoyos
> Sent: Saturday, June 1, 2019 6:12 AM
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH] avfilter/vf_gblur: add x86 SIMD
> optimizations
> 
> Am Do., 30. Mai 2019 um 05:46 Uhr schrieb Ruiling Song
> <ruiling.song at intel.com>:
> >
> > For details of the implementation, please refer to the comment
> > inlined in the assembly code.
> 
> This sentence sounds unneeded to me.
> 
> > It improves the horizontal pass
> > performance about 100% under single thread.
> 
> I am not a native speaker but I wonder what a "100% speed
> improvement" could mean...
It means 50% reduction of running time.
For example, previously it takes 12ms to do one horizontal pass per frame, now it takes 6ms to do the horizontal pass per frame.
Any comments on the assembly code?

> 
> > Tested overall performance using the command(avx2 enabled):
> > ./ffmpeg -i 1080p.mp4 -vf gblur -f null /dev/null
> > ./ffmpeg -i 1080p.mp4 -vf gblur=threads=1 -f null /dev/null
> > For single thread, the fps improves from 43 to 60, about 40%.
> > For multi-thread, the fps improves from 110 to 130, about 20%.
> 
> Carl Eugen
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list