Mercurial > libavcodec.hg
diff acelp_filters.h @ 10463:9f35b262d3f0 libavcodec
Commit some functions that are used by both SIPR and AMR.
Based on AMR SoC code by Robert Swain and Colin McQuillan.
author | vitor |
---|---|
date | Tue, 27 Oct 2009 23:53:18 +0000 |
parents | cfb009484d2d |
children | 0516f4062307 |
line wrap: on
line diff
--- a/acelp_filters.h Tue Oct 27 20:56:56 2009 +0000 +++ b/acelp_filters.h Tue Oct 27 23:53:18 2009 +0000 @@ -56,6 +56,14 @@ int frac_pos, int filter_length, int length); /** + * Floating point version of ff_acelp_interpolate() + */ +void ff_acelp_interpolatef(float *out, const float *in, + const float *filter_coeffs, int precision, + int frac_pos, int filter_length, int length); + + +/** * high-pass filtering and upscaling (4.2.5 of G.729). * @param out [out] output buffer for filtered speech data * @param hpf_f [in/out] past filtered data from previous (2 items long) @@ -97,4 +105,15 @@ float gain, float mem[2], int n); +/** + * Apply tilt compensation filter, 1 - tilt * z-1. + * + * @param mem pointer to the filter's state (one single float) + * @param tilt tilt factor + * @param samples array where the filter is applied + * @param size the size of the samples array + */ +void ff_tilt_compensation(float *mem, float tilt, float *samples, int size); + + #endif /* AVCODEC_ACELP_FILTERS_H */