aboutsummaryrefslogtreecommitdiffstats
path: root/libavresample/x86/audio_convert_init.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-04-23 22:10:26 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2012-06-18 16:16:59 -0400
commitd721f67d0a7faff2cc501f186ef78e6b01394d59 (patch)
tree3ffddee5789fb9e72efb75d0bc7fb4ff62ddfea9 /libavresample/x86/audio_convert_init.c
parent1168e29df13c3d8694e3285b126e16063d2dfd67 (diff)
downloadffmpeg-d721f67d0a7faff2cc501f186ef78e6b01394d59.tar.gz
lavr: Add x86-optimized functions for s16 to flt conversion
Diffstat (limited to 'libavresample/x86/audio_convert_init.c')
-rw-r--r--libavresample/x86/audio_convert_init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavresample/x86/audio_convert_init.c b/libavresample/x86/audio_convert_init.c
index a1dac7efe5..2488cd3724 100644
--- a/libavresample/x86/audio_convert_init.c
+++ b/libavresample/x86/audio_convert_init.c
@@ -24,6 +24,9 @@
extern void ff_conv_s16_to_s32_sse2(int16_t *dst, const int32_t *src, int len);
+extern void ff_conv_s16_to_flt_sse2(float *dst, const int16_t *src, int len);
+extern void ff_conv_s16_to_flt_sse4(float *dst, const int16_t *src, int len);
+
extern void ff_conv_fltp_to_flt_6ch_mmx (float *dst, float *const *src, int len);
extern void ff_conv_fltp_to_flt_6ch_sse4(float *dst, float *const *src, int len);
extern void ff_conv_fltp_to_flt_6ch_avx (float *dst, float *const *src, int len);
@@ -48,6 +51,12 @@ av_cold void ff_audio_convert_init_x86(AudioConvert *ac)
if (mm_flags & AV_CPU_FLAG_SSE2 && HAVE_SSE) {
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_S16,
0, 16, 8, "SSE2", ff_conv_s16_to_s32_sse2);
+ ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16,
+ 0, 16, 8, "SSE2", ff_conv_s16_to_flt_sse2);
+ }
+ if (mm_flags & AV_CPU_FLAG_SSE4 && HAVE_SSE) {
+ ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16,
+ 0, 16, 8, "SSE4", ff_conv_s16_to_flt_sse4);
}
#endif
}