diff options
author | James Almer <jamrial@gmail.com> | 2014-04-25 04:52:31 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-25 16:46:07 +0200 |
commit | cdac3ab59f3c187ee12006972dba0757a1e7cc08 (patch) | |
tree | 7f0bc69d052fea30b6e0158f03b50a2ad638e485 /libswresample/resample.c | |
parent | 92cc6d5163cd43a1a909dcc63787292f33e5d6ed (diff) | |
download | ffmpeg-cdac3ab59f3c187ee12006972dba0757a1e7cc08.tar.gz |
swresample: add swri_resample_double_sse2
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/resample.c')
-rw-r--r-- | libswresample/resample.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libswresample/resample.c b/libswresample/resample.c index ac87671902..0ce74d076c 100644 --- a/libswresample/resample.c +++ b/libswresample/resample.c @@ -317,6 +317,10 @@ static int set_compensation(ResampleContext *c, int sample_delta, int compensati #define TEMPLATE_RESAMPLE_S16_SSE2 #include "resample_template.c" #undef TEMPLATE_RESAMPLE_S16_SSE2 + +#define TEMPLATE_RESAMPLE_DBL_SSE2 +#include "resample_template.c" +#undef TEMPLATE_RESAMPLE_DBL_SSE2 #endif #endif // HAVE_MMXEXT_INLINE @@ -344,6 +348,10 @@ static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, A ret= swri_resample_float_sse (c, (float*)dst->ch[i], (const float*)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); #endif else if(c->format == AV_SAMPLE_FMT_FLTP) ret= swri_resample_float(c, (float *)dst->ch[i], (const float *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); +#if HAVE_SSE2_INLINE + else if(c->format == AV_SAMPLE_FMT_DBLP && (mm_flags&AV_CPU_FLAG_SSE2)) + ret= swri_resample_double_sse2(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); +#endif else if(c->format == AV_SAMPLE_FMT_DBLP) ret= swri_resample_double(c,(double *)dst->ch[i], (const double *)src->ch[i], consumed, src_size, dst_size, i+1==dst->ch_count); } if(need_emms) |