Go to the documentation of this file.
23 #ifndef AVCODEC_ACELP_FILTERS_H
24 #define AVCODEC_ACELP_FILTERS_H
33 const float *filter_coeffs,
int precision,
34 int frac_pos,
int filter_length,
int length);
48 const float zero_coeffs[2],
49 const float pole_coeffs[2],
87 const int16_t* filter_coeffs,
int precision,
88 int frac_pos,
int filter_length,
int length);
94 const float *filter_coeffs,
int precision,
95 int frac_pos,
int filter_length,
int length);
122 const int16_t* in,
int length);
136 const float zero_coeffs[2],
137 const float pole_coeffs[2],
139 float mem[2],
int n);
void ff_tilt_compensation(float *mem, float tilt, float *samples, int size)
Apply tilt compensation filter, 1 - tilt * z-1.
void ff_acelp_interpolatef(float *out, const float *in, const float *filter_coeffs, int precision, int frac_pos, int filter_length, int length)
Floating point version of ff_acelp_interpolate()
const int16_t ff_acelp_interp_filter[61]
low-pass Finite Impulse Response filter coefficients.
void(* acelp_interpolatef)(float *out, const float *in, const float *filter_coeffs, int precision, int frac_pos, int filter_length, int length)
Floating point version of ff_acelp_interpolate()
void ff_acelp_apply_order_2_transfer_function(float *out, const float *in, const float zero_coeffs[2], const float pole_coeffs[2], float gain, float mem[2], int n)
Apply an order 2 rational transfer function in-place.
void ff_acelp_filter_init(ACELPFContext *c)
Initialize ACELPFContext.
void ff_acelp_interpolate(int16_t *out, const int16_t *in, const int16_t *filter_coeffs, int precision, int frac_pos, int filter_length, int length)
Generic FIR interpolation routine.
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
void ff_acelp_high_pass_filter(int16_t *out, int hpf_f[2], const int16_t *in, int length)
high-pass filtering and upscaling (4.2.5 of G.729).
void(* acelp_apply_order_2_transfer_function)(float *out, const float *in, const float zero_coeffs[2], const float pole_coeffs[2], float gain, float mem[2], int n)
Apply an order 2 rational transfer function in-place.
Filter the word “frame” indicates either a video frame or a group of audio samples
void ff_acelp_filter_init_mips(ACELPFContext *c)