aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/x86/swresample_x86.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-03 15:52:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-03 15:58:51 +0200
commitc1fe2db3769d1a9e2e8d3ea718e4306648bafede (patch)
tree4bbfa99a43e20c08c174be9955a41b8298209155 /libswresample/x86/swresample_x86.c
parent29ed1900cc07d9704c3e2ebdb721baf73f17f328 (diff)
downloadffmpeg-c1fe2db3769d1a9e2e8d3ea718e4306648bafede.tar.gz
swr: add ff_int32_to_float_a_avx
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/x86/swresample_x86.c')
-rw-r--r--libswresample/x86/swresample_x86.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libswresample/x86/swresample_x86.c b/libswresample/x86/swresample_x86.c
index 9e5ac493c4..dc6ade5709 100644
--- a/libswresample/x86/swresample_x86.c
+++ b/libswresample/x86/swresample_x86.c
@@ -33,6 +33,8 @@ void ff_int16_to_float_a_sse2(uint8_t **dst, const uint8_t **src, int len);
void ff_float_to_int32_a_sse2(uint8_t **dst, const uint8_t **src, int len);
void ff_float_to_int16_a_sse2(uint8_t **dst, const uint8_t **src, int len);
+void ff_int32_to_float_a_avx(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,
@@ -64,4 +66,8 @@ MULTI_CAPS_FUNC(AV_CPU_FLAG_SSE, sse)
if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S16P && in_fmt == AV_SAMPLE_FMT_FLTP)
ac->simd_f = ff_float_to_int16_a_sse2;
}
+ if(HAVE_AVX && mm_flags & AV_CPU_FLAG_AVX) {
+ 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_avx;
+ }
}