Mercurial > libavcodec.hg
comparison acelp_vectors.h @ 11647:26aabf52f578 libavcodec
Split the input/output data arguments to ff_adaptive_gain_control().
author | rbultje |
---|---|
date | Wed, 21 Apr 2010 17:43:52 +0000 |
parents | c2e19a511e26 |
children | dc394a1cc943 |
comparison
equal
deleted
inserted
replaced
11646:a69e24b73f3c | 11647:26aabf52f578 |
---|---|
212 int length); | 212 int length); |
213 | 213 |
214 /** | 214 /** |
215 * Adaptive gain control (as used in AMR postfiltering) | 215 * Adaptive gain control (as used in AMR postfiltering) |
216 * | 216 * |
217 * @param buf_out the input speech buffer | 217 * @param out output buffer for filtered speech data |
218 * @param in the input speech buffer (may be the same as out) | |
218 * @param speech_energ input energy | 219 * @param speech_energ input energy |
219 * @param size the input buffer size | 220 * @param size the input buffer size |
220 * @param alpha exponential filter factor | 221 * @param alpha exponential filter factor |
221 * @param gain_mem a pointer to the filter memory (single float of size) | 222 * @param gain_mem a pointer to the filter memory (single float of size) |
222 */ | 223 */ |
223 void ff_adaptive_gain_control(float *buf_out, float speech_energ, | 224 void ff_adaptive_gain_control(float *out, const float *in, float speech_energ, |
224 int size, float alpha, float *gain_mem); | 225 int size, float alpha, float *gain_mem); |
225 | 226 |
226 /** | 227 /** |
227 * Set the sum of squares of a signal by scaling | 228 * Set the sum of squares of a signal by scaling |
228 * | 229 * |