Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2017-12-17 22:07:33 +0300
committerAurelien Jacobs <aurel@gnuage.org>2018-03-08 00:26:53 +0300
commitf1e490b1adedd90ce35db894520ccc61cacb991d (patch)
tree1cd6ddb1e050f66ea0fef6a5df444c15c4b922c0 /libavcodec/sbcdsp.c
parent88508a87a55789672ce0eb66ccd23fda38eab5af (diff)
sbcenc: add MMX optimizations
This was originally based on libsbc, and was fully integrated into ffmpeg. Rough speed test: C version: speed= 592x MMX version: speed= 785x
Diffstat (limited to 'libavcodec/sbcdsp.c')
-rw-r--r--libavcodec/sbcdsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/sbcdsp.c b/libavcodec/sbcdsp.c
index e155387f0d..2d0addcf28 100644
--- a/libavcodec/sbcdsp.c
+++ b/libavcodec/sbcdsp.c
@@ -379,4 +379,7 @@ av_cold void ff_sbcdsp_init(SBCDSPContext *s)
/* Default implementation for scale factors calculation */
s->sbc_calc_scalefactors = sbc_calc_scalefactors;
s->sbc_calc_scalefactors_j = sbc_calc_scalefactors_j;
+
+ if (ARCH_X86)
+ ff_sbcdsp_init_x86(s);
}