diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2013-04-09 21:57:07 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-05-03 18:23:14 +0200 |
commit | 5a97469a4fd12ef0327292ad6062f89a5e055a62 (patch) | |
tree | 7f8c0724ef15233e2ab92d655d8c12bc6e5b90f9 /libavcodec/x86/sbrdsp_init.c | |
parent | 769d921f3e4d3808320238f4f33b47cd492f1c04 (diff) | |
download | ffmpeg-5a97469a4fd12ef0327292ad6062f89a5e055a62.tar.gz |
x86: sbrdsp: Implement SSE2 qmf_deint_bfly
Sandybridge: 47 cycles
Having a loop counter is a 7 cycle gain.
Unrolling is another 7 cycle gain.
Working in reverse scan is another 6 cycles.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec/x86/sbrdsp_init.c')
-rw-r--r-- | libavcodec/x86/sbrdsp_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/x86/sbrdsp_init.c b/libavcodec/x86/sbrdsp_init.c index cb65a23f22..f3f6c65d8f 100644 --- a/libavcodec/x86/sbrdsp_init.c +++ b/libavcodec/x86/sbrdsp_init.c @@ -34,6 +34,7 @@ void ff_sbr_hf_gen_sse(float (*X_high)[2], const float (*X_low)[2], float bw, int start, int end); void ff_sbr_neg_odd_64_sse(float *z); void ff_sbr_qmf_post_shuffle_sse(float W[32][2], const float *z); +void ff_sbr_qmf_deint_bfly_sse2(float *v, const float *src0, const float *src1); av_cold void ff_sbrdsp_init_x86(SBRDSPContext *s) { @@ -47,4 +48,8 @@ av_cold void ff_sbrdsp_init_x86(SBRDSPContext *s) s->hf_gen = ff_sbr_hf_gen_sse; s->qmf_post_shuffle = ff_sbr_qmf_post_shuffle_sse; } + + if (EXTERNAL_SSE2(mm_flags)) { + s->qmf_deint_bfly = ff_sbr_qmf_deint_bfly_sse2; + } } |