|
|
|
@ -28,6 +28,7 @@ MULTI_CAPS_FUNC_DECL(sse) |
|
|
|
|
|
|
|
|
|
void ff_int32_to_float_a_sse2(uint8_t **dst, const uint8_t **src, int len); |
|
|
|
|
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 swri_audio_convert_init_x86(struct AudioConvert *ac, |
|
|
|
|
enum AVSampleFormat out_fmt, |
|
|
|
@ -53,5 +54,7 @@ MULTI_CAPS_FUNC(AV_CPU_FLAG_SSE, sse) |
|
|
|
|
ac->simd_f = ff_int32_to_float_a_sse2; |
|
|
|
|
if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_S16P) |
|
|
|
|
ac->simd_f = ff_int16_to_float_a_sse2; |
|
|
|
|
if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S32P && in_fmt == AV_SAMPLE_FMT_FLTP) |
|
|
|
|
ac->simd_f = ff_float_to_int32_a_sse2; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|