comparison acelp_vectors.h @ 9156:139d30c8c274 libavcodec

Functional part Kenan Gillet's 'extract and share weighted_vector_sumf' patchset. Idea is to share this common code between the AMR and QCELP decoders.
author reynaldo
date Mon, 09 Mar 2009 21:55:24 +0000
parents c4a4495715dd
children 9f35b262d3f0
comparison
equal deleted inserted replaced
9155:9e66ada64b76 9156:139d30c8c274
148 int16_t weight_coeff_b, 148 int16_t weight_coeff_b,
149 int16_t rounder, 149 int16_t rounder,
150 int shift, 150 int shift,
151 int length); 151 int length);
152 152
153 /**
154 * float implementation of weighted sum of two vectors.
155 * @param out [out] result of addition
156 * @param in_a first vector
157 * @param in_b second vector
158 * @param weight_coeff_a first vector weight coefficient
159 * @param weight_coeff_a second vector weight coefficient
160 * @param length vectors length
161 *
162 * @note It is safe to pass the same buffer for out and in_a or in_b.
163 */
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);
166
153 #endif /* AVCODEC_ACELP_VECTORS_H */ 167 #endif /* AVCODEC_ACELP_VECTORS_H */