Mercurial > libavcodec.hg
comparison acelp_filters.h @ 11648:0516f4062307 libavcodec
Split input/output data arguments to ff_acelp_apply_order_2_transfer_function().
author | rbultje |
---|---|
date | Wed, 21 Apr 2010 17:45:24 +0000 |
parents | 9f35b262d3f0 |
children | 0885e7a93ed4 |
comparison
equal
deleted
inserted
replaced
11647:26aabf52f578 | 11648:0516f4062307 |
---|---|
90 const int16_t* in, int length); | 90 const int16_t* in, int length); |
91 | 91 |
92 /** | 92 /** |
93 * Apply an order 2 rational transfer function in-place. | 93 * Apply an order 2 rational transfer function in-place. |
94 * | 94 * |
95 * @param samples [in/out] | 95 * @param out output buffer for filtered speech samples |
96 * @param in input buffer containing speech data (may be the same as out) | |
96 * @param zero_coeffs z^-1 and z^-2 coefficients of the numerator | 97 * @param zero_coeffs z^-1 and z^-2 coefficients of the numerator |
97 * @param pole_coeffs z^-1 and z^-2 coefficients of the denominator | 98 * @param pole_coeffs z^-1 and z^-2 coefficients of the denominator |
98 * @param gain scale factor for final output | 99 * @param gain scale factor for final output |
99 * @param mem intermediate values used by filter (should be 0 initially) | 100 * @param mem intermediate values used by filter (should be 0 initially) |
100 * @param n number of samples | 101 * @param n number of samples |
101 */ | 102 */ |
102 void ff_acelp_apply_order_2_transfer_function(float *samples, | 103 void ff_acelp_apply_order_2_transfer_function(float *out, const float *in, |
103 const float zero_coeffs[2], | 104 const float zero_coeffs[2], |
104 const float pole_coeffs[2], | 105 const float pole_coeffs[2], |
105 float gain, | 106 float gain, |
106 float mem[2], int n); | 107 float mem[2], int n); |
107 | 108 |