[FFmpeg-devel] [PATCH 4/4] avfilter/vf_framerate: add SIMD functions for frame blending

Marton Balint cus at passwd.hu
Thu Jan 18 22:40:12 EET 2018


On Thu, 18 Jan 2018, Carl Eugen Hoyos wrote:

> 2018-01-18 1:03 GMT+01:00 Marton Balint <cus at passwd.hu>:
>> Blend function speedups on x86_64 Core i5 4460:
>>
>> ffmpeg -f lavfi -i allyuv -vf framerate=60:threads=1 -f null none
>>
>> C:     447548411 decicycles in Blend,    2048 runs,      0 skips
>> SSSE3: 130020087 decicycles in Blend,    2048 runs,      0 skips
>> AVX2:  128508221 decicycles in Blend,    2048 runs,      0 skips
>>
>> ffmpeg -f lavfi -i allyuv -vf format=yuv420p12,framerate=60:threads=1 -f null none
>>
>> C:     228932745 decicycles in Blend,    2048 runs,      0 skips
>> SSE4:  123357781 decicycles in Blend,    2048 runs,      0 skips
>> AVX2:  121215353 decicycles in Blend,    2048 runs,      0 skips
>
> Is the avx2 version really useful?

Well, it _is_ faster, even if the speedup is not significant. The ASM code 
is almost the same, so almost no maitenance burden is invovled in keeping 
both.

Regards,
Marton


More information about the ffmpeg-devel mailing list