summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-06-01 13:17:22 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-06-01 13:17:22 +0000
commit907892ee19a040c244ed3a0c27493c90bf28cf72 (patch)
tree7acb235031a40319a8feee59f2215c970346d89f /libavcodec/ra144.c
parentd981252c27de4369ac7b2685b886b79a733a227e (diff)
Rename functions
Originally committed as revision 13597 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index cbcbab0e99..757b8755c6 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -73,9 +73,9 @@ static int t_sqrt(unsigned int x)
/**
* Evaluate the LPC filter coefficients from the reflection coefficients.
- * Does the inverse of the eq() function.
+ * Does the inverse of the eval_refl() function.
*/
-static void do_voice(const int *refl, int *coefs)
+static void eval_coefs(const int *refl, int *coefs)
{
int buffer[10];
int *b1 = buffer;
@@ -251,12 +251,12 @@ static int dec1(int16_t *decsp, const int *data, const int *inp, int f)
/**
* Evaluate the reflection coefficients from the filter coefficients.
- * Does the inverse of the do_voice() function.
+ * Does the inverse of the eval_coefs() function.
*
* @return 1 if one of the reflection coefficients is of magnitude greater than
* 4095, 0 if not.
*/
-static int eq(const int16_t *coefs, int *refl)
+static int eval_refl(const int16_t *coefs, int *refl)
{
int retval = 0;
int b, c, i;
@@ -312,7 +312,7 @@ static int dec2(RA144Context *ractx, int16_t *decsp, int block_num,
for (x=0; x<30; x++)
decsp[x] = (a * ractx->lpc_coef[x] + b * ractx->lpc_coef_old[x])>> 2;
- if (eq(decsp, work)) {
+ if (eval_refl(decsp, work)) {
// The interpolated coefficients are unstable, copy either new or old
// coefficients
if (copynew)
@@ -350,7 +350,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
// "<< 1"? Doesn't this make one value out of two of the table useless?
ractx->lpc_refl[i] = decodetable[i][get_bits(&gb, sizes[i]) << 1];
- do_voice(ractx->lpc_refl, ractx->lpc_coef);
+ eval_coefs(ractx->lpc_refl, ractx->lpc_coef);
energy = decodeval[get_bits(&gb, 5) << 1]; // Useless table entries?