diff options
author | James Almer <jamrial@gmail.com> | 2014-11-13 13:47:55 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2014-11-13 13:47:55 -0300 |
commit | 3cec54b7d72bc594b28faa7b8fb6683ef397fe66 (patch) | |
tree | 19bc6828a49c0b4d45512c81e9204eb5242b6593 /libavcodec/flacdsp.c | |
parent | 2093c1dc51ee1c08cb558759a1c59e6d1e3358a0 (diff) | |
download | ffmpeg-3cec54b7d72bc594b28faa7b8fb6683ef397fe66.tar.gz |
x86/flacdsp: add SSE2 and AVX decorrelate functions
Two to four times faster depending on instruction set, block size and channel count.
Diffstat (limited to 'libavcodec/flacdsp.c')
-rw-r--r-- | libavcodec/flacdsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/flacdsp.c b/libavcodec/flacdsp.c index b15bc7476b..a83eb833b5 100644 --- a/libavcodec/flacdsp.c +++ b/libavcodec/flacdsp.c @@ -85,7 +85,7 @@ static void flac_lpc_32_c(int32_t *decoded, const int coeffs[32], } -av_cold void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, +av_cold void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, int channels, int bps) { if (bps > 16) { @@ -127,7 +127,7 @@ av_cold void ff_flacdsp_init(FLACDSPContext *c, enum AVSampleFormat fmt, } if (ARCH_ARM) - ff_flacdsp_init_arm(c, fmt, bps); + ff_flacdsp_init_arm(c, fmt, channels, bps); if (ARCH_X86) - ff_flacdsp_init_x86(c, fmt, bps); + ff_flacdsp_init_x86(c, fmt, channels, bps); } |