|
|
@ -111,6 +111,15 @@ extern void ff_conv_s16_to_fltp_2ch_sse2(float *const *dst, int16_t *src, |
|
|
|
extern void ff_conv_s16_to_fltp_2ch_avx (float *const *dst, int16_t *src, |
|
|
|
extern void ff_conv_s16_to_fltp_2ch_avx (float *const *dst, int16_t *src, |
|
|
|
int len, int channels); |
|
|
|
int len, int channels); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void ff_conv_s16_to_fltp_6ch_sse2 (float *const *dst, int16_t *src, |
|
|
|
|
|
|
|
int len, int channels); |
|
|
|
|
|
|
|
extern void ff_conv_s16_to_fltp_6ch_ssse3(float *const *dst, int16_t *src, |
|
|
|
|
|
|
|
int len, int channels); |
|
|
|
|
|
|
|
extern void ff_conv_s16_to_fltp_6ch_sse4 (float *const *dst, int16_t *src, |
|
|
|
|
|
|
|
int len, int channels); |
|
|
|
|
|
|
|
extern void ff_conv_s16_to_fltp_6ch_avx (float *const *dst, int16_t *src, |
|
|
|
|
|
|
|
int len, int channels); |
|
|
|
|
|
|
|
|
|
|
|
av_cold void ff_audio_convert_init_x86(AudioConvert *ac) |
|
|
|
av_cold void ff_audio_convert_init_x86(AudioConvert *ac) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if HAVE_YASM |
|
|
|
#if HAVE_YASM |
|
|
@ -164,6 +173,8 @@ av_cold void ff_audio_convert_init_x86(AudioConvert *ac) |
|
|
|
6, 16, 4, "SSE2", ff_conv_s16_to_s16p_6ch_sse2); |
|
|
|
6, 16, 4, "SSE2", ff_conv_s16_to_s16p_6ch_sse2); |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
2, 16, 8, "SSE2", ff_conv_s16_to_fltp_2ch_sse2); |
|
|
|
2, 16, 8, "SSE2", ff_conv_s16_to_fltp_2ch_sse2); |
|
|
|
|
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
|
|
|
|
6, 16, 4, "SSE2", ff_conv_s16_to_fltp_6ch_sse2); |
|
|
|
} |
|
|
|
} |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSSE3 && HAVE_SSE) { |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSSE3 && HAVE_SSE) { |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16P, |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16P, |
|
|
@ -174,6 +185,8 @@ av_cold void ff_audio_convert_init_x86(AudioConvert *ac) |
|
|
|
2, 16, 8, "SSSE3", ff_conv_s16_to_s16p_2ch_ssse3); |
|
|
|
2, 16, 8, "SSSE3", ff_conv_s16_to_s16p_2ch_ssse3); |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_S16, |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_S16P, AV_SAMPLE_FMT_S16, |
|
|
|
6, 16, 4, "SSSE3", ff_conv_s16_to_s16p_6ch_ssse3); |
|
|
|
6, 16, 4, "SSSE3", ff_conv_s16_to_s16p_6ch_ssse3); |
|
|
|
|
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
|
|
|
|
6, 16, 4, "SSSE3", ff_conv_s16_to_fltp_6ch_ssse3); |
|
|
|
} |
|
|
|
} |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE4 && HAVE_SSE) { |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE4 && HAVE_SSE) { |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_S16, |
|
|
@ -204,6 +217,8 @@ av_cold void ff_audio_convert_init_x86(AudioConvert *ac) |
|
|
|
6, 16, 4, "AVX", ff_conv_s16_to_s16p_6ch_avx); |
|
|
|
6, 16, 4, "AVX", ff_conv_s16_to_s16p_6ch_avx); |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
2, 16, 8, "AVX", ff_conv_s16_to_fltp_2ch_avx); |
|
|
|
2, 16, 8, "AVX", ff_conv_s16_to_fltp_2ch_avx); |
|
|
|
|
|
|
|
ff_audio_convert_set_func(ac, AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_S16, |
|
|
|
|
|
|
|
6, 16, 4, "AVX", ff_conv_s16_to_fltp_6ch_avx); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|