comparison acelp_vectors.h @ 10708:2da0262d550b libavcodec

cosmetics: Reformat some function declarations.
author diego
date Thu, 24 Dec 2009 12:13:03 +0000
parents 608d19b30fa3
children 00fcecde822b
comparison
equal deleted inserted replaced
10707:6e3c41fb2eb7 10708:2da0262d550b
143 * @param pulse_count number of pulses decoded using first table 143 * @param pulse_count number of pulses decoded using first table
144 * @param bits length of one pulse index in bits 144 * @param bits length of one pulse index in bits
145 * 145 *
146 * Used in G.729 @8k, G.729 @4.4k, G.729 @6.4k, AMR @7.95k, AMR @7.40k 146 * Used in G.729 @8k, G.729 @4.4k, G.729 @6.4k, AMR @7.95k, AMR @7.40k
147 */ 147 */
148 void ff_acelp_fc_pulse_per_track( 148 void ff_acelp_fc_pulse_per_track(int16_t* fc_v,
149 int16_t* fc_v, 149 const uint8_t *tab1,
150 const uint8_t *tab1, 150 const uint8_t *tab2,
151 const uint8_t *tab2, 151 int pulse_indexes,
152 int pulse_indexes, 152 int pulse_signs,
153 int pulse_signs, 153 int pulse_count,
154 int pulse_count, 154 int bits);
155 int bits);
156 155
157 /** 156 /**
158 * Decode the algebraic codebook index to pulse positions and signs and 157 * Decode the algebraic codebook index to pulse positions and signs and
159 * construct the algebraic codebook vector for MODE_12k2. 158 * construct the algebraic codebook vector for MODE_12k2.
160 * 159 *
185 * 184 *
186 * @note It is safe to pass the same buffer for out and in_a or in_b. 185 * @note It is safe to pass the same buffer for out and in_a or in_b.
187 * 186 *
188 * out[i] = (in_a[i]*weight_a + in_b[i]*weight_b + rounder) >> shift 187 * out[i] = (in_a[i]*weight_a + in_b[i]*weight_b + rounder) >> shift
189 */ 188 */
190 void ff_acelp_weighted_vector_sum( 189 void ff_acelp_weighted_vector_sum(int16_t* out,
191 int16_t* out, 190 const int16_t *in_a,
192 const int16_t *in_a, 191 const int16_t *in_b,
193 const int16_t *in_b, 192 int16_t weight_coeff_a,
194 int16_t weight_coeff_a, 193 int16_t weight_coeff_b,
195 int16_t weight_coeff_b, 194 int16_t rounder,
196 int16_t rounder, 195 int shift,
197 int shift, 196 int length);
198 int length);
199 197
200 /** 198 /**
201 * float implementation of weighted sum of two vectors. 199 * float implementation of weighted sum of two vectors.
202 * @param out [out] result of addition 200 * @param out [out] result of addition
203 * @param in_a first vector 201 * @param in_a first vector
207 * @param length vectors length 205 * @param length vectors length
208 * 206 *
209 * @note It is safe to pass the same buffer for out and in_a or in_b. 207 * @note It is safe to pass the same buffer for out and in_a or in_b.
210 */ 208 */
211 void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b, 209 void ff_weighted_vector_sumf(float *out, const float *in_a, const float *in_b,
212 float weight_coeff_a, float weight_coeff_b, int length); 210 float weight_coeff_a, float weight_coeff_b,
211 int length);
213 212
214 /** 213 /**
215 * Adaptative gain control (as used in AMR postfiltering) 214 * Adaptative gain control (as used in AMR postfiltering)
216 * 215 *
217 * @param buf_out the input speech buffer 216 * @param buf_out the input speech buffer