comparison celp_filters.h @ 10690:63451af5f8f9 libavcodec

Cosmetics: make celp_filters.* formatting more consistent with the rest of FFmpeg
author vitor
date Wed, 16 Dec 2009 17:15:57 +0000
parents d124d9b688d0
children 0885e7a93ed4
comparison
equal deleted inserted replaced
10689:d124d9b688d0 10690:63451af5f8f9
34 * 34 *
35 * fc_out[n] = sum(i,0,len-1){ fc_in[i] * filter[(len + n - i)%len] } 35 * fc_out[n] = sum(i,0,len-1){ fc_in[i] * filter[(len + n - i)%len] }
36 * 36 *
37 * \note fc_in and fc_out should not overlap! 37 * \note fc_in and fc_out should not overlap!
38 */ 38 */
39 void ff_celp_convolve_circ(int16_t* fc_out, 39 void ff_celp_convolve_circ(int16_t *fc_out, const int16_t *fc_in,
40 const int16_t* fc_in, 40 const int16_t *filter, int len);
41 const int16_t* filter,
42 int len);
43 41
44 /** 42 /**
45 * Add an array to a rotated array. 43 * Add an array to a rotated array.
46 * 44 *
47 * out[k] = in[k] + fac * lagged[k-lag] with wrap-around 45 * out[k] = in[k] + fac * lagged[k-lag] with wrap-around
72 * @note Output buffer must contain filter_length samples of past 70 * @note Output buffer must contain filter_length samples of past
73 * speech data before pointer. 71 * speech data before pointer.
74 * 72 *
75 * Routine applies 1/A(z) filter to given speech data. 73 * Routine applies 1/A(z) filter to given speech data.
76 */ 74 */
77 int ff_celp_lp_synthesis_filter(int16_t *out, 75 int ff_celp_lp_synthesis_filter(int16_t *out, const int16_t *filter_coeffs,
78 const int16_t* filter_coeffs, 76 const int16_t *in, int buffer_length,
79 const int16_t* in, 77 int filter_length, int stop_on_overflow,
80 int buffer_length,
81 int filter_length,
82 int stop_on_overflow,
83 int rounder); 78 int rounder);
84 79
85 /** 80 /**
86 * LP synthesis filter. 81 * LP synthesis filter.
87 * @param out [out] pointer to output buffer 82 * @param out [out] pointer to output buffer
96 * @note Output buffer must contain filter_length samples of past 91 * @note Output buffer must contain filter_length samples of past
97 * speech data before pointer. 92 * speech data before pointer.
98 * 93 *
99 * Routine applies 1/A(z) filter to given speech data. 94 * Routine applies 1/A(z) filter to given speech data.
100 */ 95 */
101 void ff_celp_lp_synthesis_filterf(float *out, 96 void ff_celp_lp_synthesis_filterf(float *out, const float *filter_coeffs,
102 const float* filter_coeffs, 97 const float *in, int buffer_length,
103 const float* in,
104 int buffer_length,
105 int filter_length); 98 int filter_length);
106 99
107 /** 100 /**
108 * LP zero synthesis filter. 101 * LP zero synthesis filter.
109 * @param out [out] pointer to output buffer 102 * @param out [out] pointer to output buffer
117 * @note Output buffer must contain filter_length samples of past 110 * @note Output buffer must contain filter_length samples of past
118 * speech data before pointer. 111 * speech data before pointer.
119 * 112 *
120 * Routine applies A(z) filter to given speech data. 113 * Routine applies A(z) filter to given speech data.
121 */ 114 */
122 void ff_celp_lp_zero_synthesis_filterf(float *out, 115 void ff_celp_lp_zero_synthesis_filterf(float *out, const float *filter_coeffs,
123 const float* filter_coeffs, 116 const float *in, int buffer_length,
124 const float* in,
125 int buffer_length,
126 int filter_length); 117 int filter_length);
127 118
128 #endif /* AVCODEC_CELP_FILTERS_H */ 119 #endif /* AVCODEC_CELP_FILTERS_H */