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

James Almer jamrial at gmail.com
Tue Oct 15 18:51:28 EEST 2019


On 10/15/2019 12:21 PM, Paul B Mahol wrote:
> +;------------------------------------------------------------------------------
> +; void ff_filter_row(const uint8_t *src, uint8_t *dst,
> +;                    const uint8_t **srcf,
> +;                    int w, int mid, int size,
> +;                    int thra, int thrb)
> +;------------------------------------------------------------------------------
> +
> +INIT_XMM sse4
> +cglobal atadenoise_filter_row8, 8,12,13, src, dst, srcf, w, mid, size, thra, thrb, i, j, srcfx, x

You need to sign extend all the int argument. And if you're not using
thra and thrb, then don't load them and save two gprs.


More information about the ffmpeg-devel mailing list