mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
9b53853756
This removes a branch at a performance-sensitive point (in the middle of the loop). In fate-swr-resample-s32p-8000-2626, this makes the code about 10% faster. It also simplifies the loops, allowing us to rewrite it in yasm at some later point. The compensation_distance != 0 code and index < 0 code are still kind of hairy. For compensation_distance != 0, this should likely be handled in the caller, so that it calls swri_resample twice (once until the dst_incr switch-point, and once with the remainder of the samples). For index < 0, the code should probably be rewritten to break out of the loop once sample_index >= 0, and then resume (e.g. as a tail-call) to the common or linear resampling loops. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> |
||
---|---|---|
.. | ||
arm | ||
x86 | ||
audioconvert.c | ||
audioconvert.h | ||
dither_template.c | ||
dither.c | ||
libswresample.v | ||
log2_tab.c | ||
Makefile | ||
noise_shaping_data.c | ||
rematrix_template.c | ||
rematrix.c | ||
resample_template.c | ||
resample.c | ||
soxr_resample.c | ||
swresample_internal.h | ||
swresample-test.c | ||
swresample.c | ||
swresample.h | ||
swresampleres.rc | ||
version.h |