comparison acelp_vectors.h @ 10463:9f35b262d3f0 libavcodec

Commit some functions that are used by both SIPR and AMR. Based on AMR SoC code by Robert Swain and Colin McQuillan.
author vitor
date Tue, 27 Oct 2009 23:53:18 +0000
parents 139d30c8c274
children 5f2ced30548b
comparison
equal deleted inserted replaced
10462:dd97c2418d4e 10463:9f35b262d3f0
162 * @note It is safe to pass the same buffer for out and in_a or in_b. 162 * @note It is safe to pass the same buffer for out and in_a or in_b.
163 */ 163 */
164 void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b, 164 void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
165 float weight_coeff_a, float weight_coeff_b, int length); 165 float weight_coeff_a, float weight_coeff_b, int length);
166 166
167 /**
168 * Adaptative gain control (as used in AMR postfiltering)
169 *
170 * @param buf_out the input speech buffer
171 * @param speech_energ input energy
172 * @param size the input buffer size
173 * @param alpha exponential filter factor
174 * @param gain_mem a pointer to the filter memory (single float of size)
175 */
176 void ff_adaptative_gain_control(float *buf_out, float speech_energ,
177 int size, float alpha, float *gain_mem);
178
167 #endif /* AVCODEC_ACELP_VECTORS_H */ 179 #endif /* AVCODEC_ACELP_VECTORS_H */