diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-10-27 23:53:18 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-10-27 23:53:18 +0000 |
commit | 504eee37debbf7ce6ec3b79ae8825727258c3fd7 (patch) | |
tree | 094306ce1889f1e9ddf817f67e6d86c681ed6aa4 /libavcodec/acelp_vectors.h | |
parent | 2be414c8dee911744268341b5bd94b9e6a96f67c (diff) | |
download | ffmpeg-504eee37debbf7ce6ec3b79ae8825727258c3fd7.tar.gz |
Commit some functions that are used by both SIPR and AMR.
Based on AMR SoC code by Robert Swain and Colin McQuillan.
Originally committed as revision 20392 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/acelp_vectors.h')
-rw-r--r-- | libavcodec/acelp_vectors.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/acelp_vectors.h b/libavcodec/acelp_vectors.h index 3a47a7b61c..58cd84c841 100644 --- a/libavcodec/acelp_vectors.h +++ b/libavcodec/acelp_vectors.h @@ -164,4 +164,16 @@ void ff_acelp_weighted_vector_sum( void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b, float weight_coeff_a, float weight_coeff_b, int length); +/** + * Adaptative gain control (as used in AMR postfiltering) + * + * @param buf_out the input speech buffer + * @param speech_energ input energy + * @param size the input buffer size + * @param alpha exponential filter factor + * @param gain_mem a pointer to the filter memory (single float of size) + */ +void ff_adaptative_gain_control(float *buf_out, float speech_energ, + int size, float alpha, float *gain_mem); + #endif /* AVCODEC_ACELP_VECTORS_H */ |