summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-05-31 15:37:41 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-05-31 15:37:41 +0000
commit2f7d6835b6b8767d0931f40590aefb2fd9e78019 (patch)
tree3cb8f07fa0df6616a6194b09e5ca0d900ae3dbfb /libavcodec/ra144.c
parentfbe52e41884bb43e279de453b8052f681a6ccd51 (diff)
Add doxy comments to eq() and do_voice()
Originally committed as revision 13581 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c
index 920582758b..b28dea9ca1 100644
--- a/libavcodec/ra144.c
+++ b/libavcodec/ra144.c
@@ -71,7 +71,10 @@ static int t_sqrt(unsigned int x)
return (ff_sqrt(x << 20) << s) << 2;
}
-/* do 'voice' */
+/**
+ * Evaluate the LPC filter coefficients from the reflection coefficients.
+ * Does the inverse of the eq() function.
+ */
static void do_voice(const int *a1, int *a2)
{
int buffer[10];
@@ -246,6 +249,13 @@ static int dec1(int16_t *decsp, const int *data, const int *inp, int f)
return rms(data, f);
}
+/**
+ * Evaluate the reflection coefficients from the filter coefficients.
+ * Does the inverse of the do_voice() function.
+ *
+ * @return 1 if one of the reflection coefficients is of magnitude greater than
+ * 4095, 0 if not.
+ */
static int eq(const int16_t *in, int *target)
{
int retval = 0;