diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-24 03:28:42 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-24 03:28:42 +0000 |
commit | 475d0e146426440afb1c19f2f12d2c22a5aae10b (patch) | |
tree | dab965ac7181208938e1a55103bf619805dc0c83 /libavcodec/ra288.c | |
parent | 0f72a2b7d3871ff6249c79590e2f5ae01c8191e5 (diff) | |
download | ffmpeg-475d0e146426440afb1c19f2f12d2c22a5aae10b.tar.gz |
Add comments to do_hybrid_window()
Originally committed as revision 14359 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index dbe1707e2f..9f10bbca97 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -137,6 +137,20 @@ static void prodsum(float *tgt, const float *src, int len, int n) } +/** + * Hybrid window filtering. See blocks 36 and 49 of the G.728 specification. + * + * @param order the order of the filter + * @param n the length of the input + * @param non_rec the number of non recursive samples + * @param out the filter output + * @param in pointer to the input of the filter + * @param hist pointer to the input history of the filter. It is updated by + * this function. + * @param out pointer to the non recursive part of the output + * @param out2 pointer to the recursive part of the output + * @param window pointer to the windowing function table + */ static void do_hybrid_window(int order, int n, int non_rec, const float *in, float *out, float *hist, float *out2, const float *window) @@ -146,7 +160,7 @@ static void do_hybrid_window(int order, int n, int non_rec, const float *in, float buffer2[37]; float work[111]; - /* rotate and multiply */ + /* update history */ memmove(hist , hist + n, (order + non_rec)*sizeof(*hist)); memcpy (hist + order + non_rec, in , n *sizeof(*hist)); |