ffmpeg/libavresample/x86
Justin Ruggles 10e645e9cb lavr: handle clipping in the float to s32 conversion
We cannot clip to INT_MAX because that value cannot be exactly
represented by a float value and ends up overflowing during conversion
anyway. We need to use a slightly smaller float value, which ends up
with slightly inaccurate results for samples which clip or nearly clip,
but it is close enough. Using doubles as intermediates in the conversion
would be more accurate, but it takes about twice as much time.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-10-13 12:34:34 +02:00
..
audio_convert_init.c x86: Replace checks for CPU extensions and flags by convenience macros 2012-09-08 18:18:34 +02:00
audio_convert.asm lavr: handle clipping in the float to s32 conversion 2012-10-13 12:34:34 +02:00
audio_mix_init.c x86: Replace checks for CPU extensions and flags by convenience macros 2012-09-08 18:18:34 +02:00
audio_mix.asm x86: Split inline and external assembly #ifdefs 2012-08-31 01:53:25 +02:00
Makefile build: cosmetics: Add missing end-of-line backslashes to item lists. 2012-05-07 14:17:40 +02:00
util.asm lavr: x86: optimized 2-channel s16 to s16p conversion 2012-08-23 20:10:57 -04:00