1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00
FFmpeg/libavresample
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
..
arm ARM: libavresample: NEON optimised generic fltp to s16 conversion 2012-09-13 19:15:43 +01:00
x86 lavr: handle clipping in the float to s32 conversion 2012-10-13 12:34:34 +02:00
audio_convert.c ARM: libavresample: NEON optimised flat float to s16 conversion 2012-09-13 19:15:42 +01:00
audio_convert.h ARM: libavresample: NEON optimised flat float to s16 conversion 2012-09-13 19:15:42 +01:00
audio_data.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
audio_data.h lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
audio_mix_matrix.c lavr/audio_mix_matrix: acknowledge the existence of LFE2. 2012-09-12 18:26:53 -04:00
audio_mix.c Don't include common.h from avutil.h 2012-08-15 22:32:06 +03:00
audio_mix.h doxygen: Fix function parameter names to match the code 2012-08-09 20:05:55 +02:00
avresample-test.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
avresample.h lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
internal.h libavresample: add mix level normalization option 2012-08-14 23:36:56 +02:00
libavresample.v
Makefile
options.c avopt: Explicitly store float/double option defaults in .dbl 2012-09-04 23:13:51 +03:00
resample_template.c lavr: resampling: add support for s32p, fltp, and dblp internal sample formats 2012-07-08 15:22:11 -04:00
resample.c Don't include common.h from avutil.h 2012-08-15 22:32:06 +03:00
resample.h
utils.c lavr: change the type of the data buffers to uint8_t**. 2012-10-05 13:49:44 +02:00
version.h lavr: bump major to 1 and declare it stable. 2012-10-05 13:50:13 +02:00