|
|
@ -35,6 +35,11 @@ extern void ff_mix_2_to_1_s16p_flt_sse4(int16_t **src, float **matrix, int len, |
|
|
|
extern void ff_mix_2_to_1_s16p_q8_sse2(int16_t **src, int16_t **matrix, |
|
|
|
extern void ff_mix_2_to_1_s16p_q8_sse2(int16_t **src, int16_t **matrix, |
|
|
|
int len, int out_ch, int in_ch); |
|
|
|
int len, int out_ch, int in_ch); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern void ff_mix_1_to_2_fltp_flt_sse(float **src, float **matrix, int len, |
|
|
|
|
|
|
|
int out_ch, int in_ch); |
|
|
|
|
|
|
|
extern void ff_mix_1_to_2_fltp_flt_avx(float **src, float **matrix, int len, |
|
|
|
|
|
|
|
int out_ch, int in_ch); |
|
|
|
|
|
|
|
|
|
|
|
av_cold void ff_audio_mix_init_x86(AudioMix *am) |
|
|
|
av_cold void ff_audio_mix_init_x86(AudioMix *am) |
|
|
|
{ |
|
|
|
{ |
|
|
|
#if HAVE_YASM |
|
|
|
#if HAVE_YASM |
|
|
@ -43,6 +48,8 @@ av_cold void ff_audio_mix_init_x86(AudioMix *am) |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE && HAVE_SSE) { |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE && HAVE_SSE) { |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
2, 1, 16, 8, "SSE", ff_mix_2_to_1_fltp_flt_sse); |
|
|
|
2, 1, 16, 8, "SSE", ff_mix_2_to_1_fltp_flt_sse); |
|
|
|
|
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
|
|
|
|
1, 2, 16, 4, "SSE", ff_mix_1_to_2_fltp_flt_sse); |
|
|
|
} |
|
|
|
} |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE2 && HAVE_SSE) { |
|
|
|
if (mm_flags & AV_CPU_FLAG_SSE2 && HAVE_SSE) { |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_S16P, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_S16P, AV_MIX_COEFF_TYPE_FLT, |
|
|
@ -57,6 +64,8 @@ av_cold void ff_audio_mix_init_x86(AudioMix *am) |
|
|
|
if (mm_flags & AV_CPU_FLAG_AVX && HAVE_AVX) { |
|
|
|
if (mm_flags & AV_CPU_FLAG_AVX && HAVE_AVX) { |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
2, 1, 32, 16, "AVX", ff_mix_2_to_1_fltp_flt_avx); |
|
|
|
2, 1, 32, 16, "AVX", ff_mix_2_to_1_fltp_flt_avx); |
|
|
|
|
|
|
|
ff_audio_mix_set_func(am, AV_SAMPLE_FMT_FLTP, AV_MIX_COEFF_TYPE_FLT, |
|
|
|
|
|
|
|
1, 2, 32, 8, "AVX", ff_mix_1_to_2_fltp_flt_avx); |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|