diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-04-28 17:04:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-04-28 17:06:11 +0200 |
commit | 832c3b10d239582d332cc949ef17142cec86d843 (patch) | |
tree | 8caa875c535edb9ddb82357465fdec3be2871f07 /libswresample/x86/swresample_x86.c | |
parent | 95057b197268eaa45a96923d9a13e4181b2af809 (diff) | |
download | ffmpeg-832c3b10d239582d332cc949ef17142cec86d843.tar.gz |
swr: add int32_to_float_sse2
could be done for sse/3dnow too if someone wants
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/x86/swresample_x86.c')
-rw-r--r-- | libswresample/x86/swresample_x86.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libswresample/x86/swresample_x86.c b/libswresample/x86/swresample_x86.c index f2a14c1faf..996d72460f 100644 --- a/libswresample/x86/swresample_x86.c +++ b/libswresample/x86/swresample_x86.c @@ -26,6 +26,8 @@ MULTI_CAPS_FUNC_DECL(mmx) MULTI_CAPS_FUNC_DECL(sse) +void ff_int32_to_float_a_sse2(uint8_t **dst, const uint8_t **src, int len); + void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, @@ -44,4 +46,9 @@ void swri_audio_convert_init_x86(struct AudioConvert *ac, MULTI_CAPS_FUNC(AV_CPU_FLAG_MMX, mmx) MULTI_CAPS_FUNC(AV_CPU_FLAG_SSE, sse) + + if(mm_flags & AV_CPU_FLAG_SSE2) { + if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_S32P) + ac->simd_f = ff_int32_to_float_a_sse2; + } } |