diff dsputil.c @ 7563:8390efaa0c03 libavcodec

simd downmix 13% faster ac3 if downmixing
author lorenm
date Wed, 13 Aug 2008 23:33:48 +0000
parents e267f2519248
children 7cf793954871
line wrap: on
line diff
--- a/dsputil.c	Wed Aug 13 23:30:53 2008 +0000
+++ b/dsputil.c	Wed Aug 13 23:33:48 2008 +0000
@@ -41,6 +41,9 @@
 /* vorbis.c */
 void vorbis_inverse_coupling(float *mag, float *ang, int blocksize);
 
+/* ac3dec.c */
+void ff_ac3_downmix_c(float (*samples)[256], float (*matrix)[2], int out_ch, int in_ch, int len);
+
 /* flacenc.c */
 void ff_flac_compute_autocorr(const int32_t *data, int len, int lag, double *autoc);
 
@@ -4476,6 +4479,9 @@
 #ifdef CONFIG_VORBIS_DECODER
     c->vorbis_inverse_coupling = vorbis_inverse_coupling;
 #endif
+#ifdef CONFIG_AC3_DECODER
+    c->ac3_downmix = ff_ac3_downmix_c;
+#endif
 #ifdef CONFIG_FLAC_ENCODER
     c->flac_compute_autocorr = ff_flac_compute_autocorr;
 #endif