Mercurial > libavcodec.hg
changeset 6971:701306df51ab libavcodec
Rename dec2() function
author | vitor |
---|---|
date | Sun, 01 Jun 2008 19:36:43 +0000 |
parents | 6b666c5587e0 |
children | 4f95de7686a3 |
files | ra144.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ra144.c Sun Jun 01 19:35:04 2008 +0000 +++ b/ra144.c Sun Jun 01 19:36:43 2008 +0000 @@ -297,7 +297,7 @@ return retval; } -static int dec2(RA144Context *ractx, int16_t *decsp, int block_num, +static int interp(RA144Context *ractx, int16_t *decsp, int block_num, int copynew, int energy) { int work[10]; @@ -355,10 +355,10 @@ energy = decodeval[get_bits(&gb, 5) << 1]; // Useless table entries? - refl_rms[0] = dec2(ractx, block_coefs[0], 0, 0, ractx->old_energy); - refl_rms[1] = dec2(ractx, block_coefs[1], 1, energy > ractx->old_energy, + refl_rms[0] = interp(ractx, block_coefs[0], 0, 0, ractx->old_energy); + refl_rms[1] = interp(ractx, block_coefs[1], 1, energy > ractx->old_energy, t_sqrt(energy*ractx->old_energy) >> 12); - refl_rms[2] = dec2(ractx, block_coefs[2], 2, 1, energy); + refl_rms[2] = interp(ractx, block_coefs[2], 2, 1, energy); refl_rms[3] = rms(ractx->lpc_refl, energy); int_to_int16(block_coefs[3], ractx->lpc_coef);