Mercurial > libavcodec.hg
comparison celp_filters.h @ 8091:4c95f44c4c23 libavcodec
Add a LPC filter
Part of the QCELP patch by Kenan Gillet, kenan.gillet gmail com
author | vitor |
---|---|
date | Thu, 30 Oct 2008 21:05:37 +0000 |
parents | 611a21e4b01b |
children | 408d200a6179 |
comparison
equal
deleted
inserted
replaced
8090:1c07635d7334 | 8091:4c95f44c4c23 |
---|---|
67 int buffer_length, | 67 int buffer_length, |
68 int filter_length, | 68 int filter_length, |
69 int stop_on_overflow, | 69 int stop_on_overflow, |
70 int rounder); | 70 int rounder); |
71 | 71 |
72 /** | |
73 * LP synthesis filter. | |
74 * @param out [out] pointer to output buffer | |
75 * - the array out[-filter_length, -1] must | |
76 * contain the previous result of this filter | |
77 * @param filter_coeffs filter coefficients. | |
78 * @param in input signal | |
79 * @param buffer_length amount of data to process | |
80 * @param filter_length filter length (10 for 10th order LP filter) | |
81 * | |
82 * @return 1 if overflow occurred, 0 - otherwise | |
83 * | |
84 * @note Output buffer must contain 10 samples of past | |
85 * speech data before pointer. | |
86 * | |
87 * Routine applies 1/A(z) filter to given speech data. | |
88 */ | |
89 void ff_celp_lp_synthesis_filterf( | |
90 float *out, | |
91 const float* filter_coeffs, | |
92 const float* in, | |
93 int buffer_length, | |
94 int filter_length); | |
95 | |
72 #endif /* AVCODEC_CELP_FILTERS_H */ | 96 #endif /* AVCODEC_CELP_FILTERS_H */ |