[FFmpeg-soc] [soc]: r3834 - qcelp/qcelpdec.c

reynaldo subversion at mplayerhq.hu
Sat Nov 15 21:03:40 CET 2008


Author: reynaldo
Date: Sat Nov 15 21:03:36 2008
New Revision: 3834

Log:
Cosmetics

Modified:
   qcelp/qcelpdec.c

Modified: qcelp/qcelpdec.c
==============================================================================
--- qcelp/qcelpdec.c	(original)
+++ qcelp/qcelpdec.c	Sat Nov 15 21:03:36 2008
@@ -123,7 +123,7 @@ static void qcelp_decode_lspf(const QCEL
  * TIA/EIA/IS-733 2.4.6.2
  */
 static void qcelp_decode_params(AVCodecContext *avctx, uint16_t *cbseed,
-            float *gain, int *index, int *is_ifq)
+                                float *gain, int *index, int *is_ifq)
 {
     int                 i, gs[16], g0[16], g1[16], predictor;
     const uint8_t       *cbgain, *cbsign, *cindex, *data;
@@ -254,7 +254,8 @@ static void qcelp_decode_params(AVCodecC
  * @param cnd_vector array for the generated scaled codebook vector
  */
 static int qcelp_compute_svector(qcelp_packet_rate rate, const float *gain,
-           const int *index, uint16_t cbseed, float *cdn_vector)
+                                 const int *index, uint16_t cbseed,
+                                 float *cdn_vector)
 {
     int      i,j;
     uint16_t new_cbseed;
@@ -362,7 +363,7 @@ static float qcelp_compute_subframe_ener
  * @param scalefactors array to place the resulting four scalefactors
  */
 static void qcelp_get_gain_scalefactors(const float *in, const float *out,
-            float *scalefactors)
+                                        float *scalefactors)
 {
     int i;
 
@@ -517,7 +518,8 @@ static int qcelp_do_pitchfilter(QCELPCon
  * @param frame_num frame number in decoded stream
  */
 void qcelp_do_interpolate_lspf(qcelp_packet_rate rate, float *prev_lspf,
-     float *curr_lspf, float *interpolated_lspf, int sample_num, int frame_num)
+                               float *curr_lspf, float *interpolated_lspf,
+                               int sample_num, int frame_num)
 {
     int   i;
     float curr_weight, prev_weight;
@@ -590,7 +592,7 @@ static void qcelp_convolve(float *v1, co
     memcpy(copy, v1, sizeof(copy));
     dim=d1+d2-1;
 
-    for(i=0;i<dim;i++)
+    for(i=0; i<dim; i++)
     {
         v1[i]=0.0;
         for(j=0;j<=i;j++)
@@ -668,7 +670,7 @@ static void qcelp_lsp2lpc(float *lspf, f
  * TIA/EIA/IS-733 2.4.3.1 (NOOOOT)
  */
 static void qcelp_do_formant(float *in, float *out, float *lpc_coefs,
-            float *memory)
+                             float *memory)
 {
     float tmp[50];
     int i,j;
@@ -710,7 +712,7 @@ static float qcelp_detilt(float z)
 }
 
 static int qcelp_decode_frame(AVCodecContext *avctx, void *data,
-           int *data_size, uint8_t *buf, int buf_size)
+                              int *data_size, uint8_t *buf, int buf_size)
 {
     QCELPContext *q    = avctx->priv_data;
     const QCELPBitmap *order = NULL;



More information about the FFmpeg-soc mailing list