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

James Almer jamrial at gmail.com
Fri Dec 1 22:39:02 EET 2017


On 12/1/2017 5:00 PM, Martin Vignali wrote:
> Hello,
> 
> +
>> +INIT_XMM sse4
>>
> Maybe use a macro (AVX2 can probably, be easy to add)
> 
> 
>> +cglobal threshold8, 10, 13, 5, in, threshold, min, max, out, ilinesize,
>> tlinesize, flinesize, slinesize, olinesize, w, h, x
>> +    mov         wd, dword wm
>> +    mov         hd, dword hm
>>
> Maybe you can use ptrdiff_t for w and h, so you can directly use it, using
> wq, hq

It makes no difference in practice. w and h need to be loaded from
memory no matter what.


More information about the ffmpeg-devel mailing list