FFmpeg/libavfilter/x86
Clément Bœsch 2d66fc543b lavfi/gradfun: fix rounding in MMX code.
Current code divides before increasing precision.

Also reduce upper bound for strength from 255 to 64.  This will prevent
an overflow in the SSSE3 and MMX filter_line code: delta is expressed as
an u16 being shifted by 2 to the left. If it overflows, having a
strength not above 64 will make sure that m is set to 0 (making the
m*m*delta >> 14 expression void).

A value above 64 should not make any sense unless gradfun is used as
a blur filter.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
2013-03-28 07:59:04 +01:00
..
af_volume.asm x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling 2012-12-05 11:23:37 -05:00
af_volume_init.c x86: af_volume: add SSE2/SSSE3/AVX-optimized s32 volume scaling 2012-12-05 11:23:37 -05:00
Makefile avfilter: x86: consistent filenames for filter optimizations 2013-02-04 15:00:47 +01:00
vf_gradfun.c lavfi/gradfun: fix rounding in MMX code. 2013-03-28 07:59:04 +01:00
vf_hqdn3d.asm hqdn3d: Fix out of array read in LOWPASS 2013-03-13 09:14:59 +01:00
vf_hqdn3d_init.c vf_hqdn3d: x86: Add proper arch optimization initialization 2013-02-01 13:11:45 +01:00
vf_yadif.asm avfilter: x86: consistent filenames for filter optimizations 2013-02-04 15:00:47 +01:00
vf_yadif_init.c vf_yadif: fix out-of line reads 2013-02-15 16:08:33 +01:00