comparison acelp_filters.h @ 7161:2b763a495c07 libavcodec

Add a rounding parameter to ff_acelp_lp_synthesis_filter()
author vitor
date Sun, 29 Jun 2008 11:19:50 +0000
parents 94465a2c3b34
children 3c7f3265f970
comparison
equal deleted inserted replaced
7160:05c4de3904f6 7161:2b763a495c07
126 * \param in input signal 126 * \param in input signal
127 * \param buffer_length amount of data to process 127 * \param buffer_length amount of data to process
128 * \param filter_length filter length (11 for 10th order LP filter) 128 * \param filter_length filter length (11 for 10th order LP filter)
129 * \param stop_on_overflow 1 - return immediately if overflow occurs 129 * \param stop_on_overflow 1 - return immediately if overflow occurs
130 * 0 - ignore overflows 130 * 0 - ignore overflows
131 * \param rounder the amount to add for rounding (usually 0x800 or 0xfff)
131 * 132 *
132 * \return 1 if overflow occurred, 0 - otherwise 133 * \return 1 if overflow occurred, 0 - otherwise
133 * 134 *
134 * \note Output buffer must contain 10 samples of past 135 * \note Output buffer must contain 10 samples of past
135 * speech data before pointer. 136 * speech data before pointer.
140 int16_t *out, 141 int16_t *out,
141 const int16_t* filter_coeffs, 142 const int16_t* filter_coeffs,
142 const int16_t* in, 143 const int16_t* in,
143 int buffer_length, 144 int buffer_length,
144 int filter_length, 145 int filter_length,
145 int stop_on_overflow); 146 int stop_on_overflow,
147 int rounder);
146 148
147 /** 149 /**
148 * \brief Calculates coefficients of weighted A(z/weight) filter. 150 * \brief Calculates coefficients of weighted A(z/weight) filter.
149 * \param out [out] weighted A(z/weight) result 151 * \param out [out] weighted A(z/weight) result
150 * filter (-0x8000 <= (3.12) < 0x8000) 152 * filter (-0x8000 <= (3.12) < 0x8000)