Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / ffmpeg / libavcodec / dcadsp.c
index 7d5044298a08bf605d68a7017f0cae928299fb6a..b32d962c339ae6951e4ea4b4a7b520037ea403af 100644 (file)
  */
 
 #include "config.h"
+
 #include "libavutil/attributes.h"
 #include "libavutil/intreadwrite.h"
+
 #include "dcadsp.h"
 
 static void decode_hf_c(float dst[DCA_SUBBANDS][8],
@@ -42,9 +44,8 @@ static void decode_hf_c(float dst[DCA_SUBBANDS][8],
     }
 }
 
-static inline void
-dca_lfe_fir(float *out, const float *in, const float *coefs,
-            int decifactor)
+static inline void dca_lfe_fir(float *out, const float *in, const float *coefs,
+                               int decifactor)
 {
     float *out2    = out + 2 * decifactor - 1;
     int num_coeffs = 256 / decifactor;
@@ -55,7 +56,7 @@ dca_lfe_fir(float *out, const float *in, const float *coefs,
         float v0 = 0.0;
         float v1 = 0.0;
         for (j = 0; j < num_coeffs; j++, coefs++) {
-            v0 += in[-j] * *coefs;
+            v0 += in[-j]                 * *coefs;
             v1 += in[j + 1 - num_coeffs] * *coefs;
         }
         *out++  = v0;
@@ -86,7 +87,8 @@ static void dca_qmf_32_subbands(float samples_in[32][8], int sb_act,
         }
 
         synth->synth_filter_float(imdct, synth_buf_ptr, synth_buf_offset,
-                                  synth_buf2, window, samples_out, raXin, scale);
+                                  synth_buf2, window, samples_out, raXin,
+                                  scale);
         samples_out += 32;
     }
 }
@@ -103,10 +105,13 @@ static void dca_lfe_fir1_c(float *out, const float *in, const float *coefs)
 
 av_cold void ff_dcadsp_init(DCADSPContext *s)
 {
-    s->lfe_fir[0] = dca_lfe_fir0_c;
-    s->lfe_fir[1] = dca_lfe_fir1_c;
+    s->lfe_fir[0]      = dca_lfe_fir0_c;
+    s->lfe_fir[1]      = dca_lfe_fir1_c;
     s->qmf_32_subbands = dca_qmf_32_subbands;
-    s->decode_hf = decode_hf_c;
-    if (ARCH_ARM) ff_dcadsp_init_arm(s);
-    if (ARCH_X86) ff_dcadsp_init_x86(s);
+    s->decode_hf       = decode_hf_c;
+
+    if (ARCH_ARM)
+        ff_dcadsp_init_arm(s);
+    if (ARCH_X86)
+        ff_dcadsp_init_x86(s);
 }