changeset 7371:c6c6b6236ff3 libavcodec

Rename and comment bandwidth broadening tables (s/table1a/syn_bw_tab/, s/table2a/gain_bw_tab/).
author vitor
date Thu, 24 Jul 2008 04:15:50 +0000
parents 61df1ddb1001
children e97d0795ee70
files ra288.c ra288.h
diffstat 2 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ra288.c	Thu Jul 24 04:07:50 2008 +0000
+++ b/ra288.c	Thu Jul 24 04:15:50 2008 +0000
@@ -196,7 +196,7 @@
                      syn_window);
 
     if (!eval_lpc_coeffs(temp1, glob->st1, 36))
-        colmult(glob->pr1, glob->st1, table1a, 36);
+        colmult(glob->pr1, glob->st1, syn_bw_tab, 36);
 
     memcpy(buffer2    , glob->history + 4, 4*sizeof(*buffer2));
     memcpy(buffer2 + 4, glob->history    , 4*sizeof(*buffer2));
@@ -205,7 +205,7 @@
                      gain_window);
 
     if (!eval_lpc_coeffs(temp2, glob->st2, 10))
-        colmult(glob->pr2, glob->st2, table2a, 10);
+        colmult(glob->pr2, glob->st2, gain_bw_tab, 10);
 }
 
 /* Decode a block (celp) */
--- a/ra288.h	Thu Jul 24 04:07:50 2008 +0000
+++ b/ra288.h	Thu Jul 24 04:15:50 2008 +0000
@@ -190,7 +190,8 @@
   0.183868408, 0.0923461914
 };
 
-static const float table1a[36]={
+/** Synthesis bandwidth broadening table */
+static const float syn_bw_tab[36]={
   0.98828125,  0.976699829, 0.965254128, 0.953942537, 0.942763507, 0.931715488,
   0.920796931, 0.910006344, 0.899342179, 0.888803005, 0.878387332, 0.868093729,
   0.857920766, 0.847867012, 0.837931097, 0.828111589, 0.818407178, 0.808816493,
@@ -199,7 +200,8 @@
   0.693900526, 0.685768902, 0.677732527, 0.669790328, 0.66194123,  0.654184103
 };
 
-static const float table2a[10]={
+/** Gain bandwidth broadening table */
+static const float gain_bw_tab[10]={
   0.90625,     0.821289063, 0.74432373,  0.674499512, 0.61126709,
   0.553955078, 0.50201416,  0.454956055, 0.41229248,  0.373657227
 };