changeset 7650:1e4ae5de68a4 libavcodec

Rename subframe_size to a name that is not specific to some specific use of ff_acelp_convolve_circ()
author michael
date Thu, 21 Aug 2008 22:41:20 +0000
parents 8c5d7ede9c96
children de64f2e14b13
files acelp_filters.c acelp_filters.h
diffstat 2 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/acelp_filters.c	Thu Aug 21 22:36:32 2008 +0000
+++ b/acelp_filters.c	Thu Aug 21 22:41:20 2008 +0000
@@ -85,22 +85,22 @@
         int16_t* fc_out,
         const int16_t* fc_in,
         const int16_t* filter,
-        int subframe_size)
+        int len)
 {
     int i, k;
 
-    memset(fc_out, 0, subframe_size * sizeof(int16_t));
+    memset(fc_out, 0, len * sizeof(int16_t));
 
     /* Since there are few pulses over an entire subframe (i.e. almost
        all fc_in[i] are zero) it is faster to loop over fc_in first. */
-    for(i=0; i<subframe_size; i++)
+    for(i=0; i<len; i++)
     {
         if(fc_in[i])
         {
             for(k=0; k<i; k++)
-                fc_out[k] += (fc_in[i] * filter[subframe_size + k - i]) >> 15;
+                fc_out[k] += (fc_in[i] * filter[len + k - i]) >> 15;
 
-            for(k=i; k<subframe_size; k++)
+            for(k=i; k<len; k++)
                 fc_out[k] += (fc_in[i] * filter[k - i]) >> 15;
         }
     }
--- a/acelp_filters.h	Thu Aug 21 22:36:32 2008 +0000
+++ b/acelp_filters.h	Thu Aug 21 22:41:20 2008 +0000
@@ -75,7 +75,7 @@
         int16_t* fc_out,
         const int16_t* fc_in,
         const int16_t* filter,
-        int subframe_size);
+        int len);
 
 /**
  * LP synthesis filter.