diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-24 08:15:50 +0400 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-24 08:15:50 +0400 |
commit | a6755f8d53fc5284938fc1ecde999f16b42d5882 (patch) | |
tree | 19d67eeef45bca70ec854ebfd06f1c4b46b6c5e8 | |
parent | 5e65f5df0e0cd91eed74cce87c5d65b19e176595 (diff) |
Rename and comment bandwidth broadening tables
(s/table1a/syn_bw_tab/, s/table2a/gain_bw_tab/).
Originally committed as revision 14363 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ra288.c | 4 | ||||
-rw-r--r-- | libavcodec/ra288.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index ce5c3aef94..bae3b445e1 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -196,7 +196,7 @@ static void update(Real288_internal *glob) 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 @@ static void update(Real288_internal *glob) 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) */ diff --git a/libavcodec/ra288.h b/libavcodec/ra288.h index f2fec9c5df..c6b24d4d3c 100644 --- a/libavcodec/ra288.h +++ b/libavcodec/ra288.h @@ -190,7 +190,8 @@ static const float gain_window[38]={ 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 @@ static const float table1a[36]={ 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 }; |