34 float cutoff_coeff = 0.4;
40 cutoff_coeff, 0.0, 0.0);
43 for (i = 0; i <
SIZE; i++)
44 x[i] =
lrint(0.75 * INT16_MAX * sin(0.5 *
M_PI * i * i / SIZE));
48 for (i = 0; i <
SIZE; i++)
49 printf(
"%6d %6d\n", x[i], y[i]);
av_cold struct FFIIRFilterState * ff_iir_filter_init_state(int order)
Create new filter state.
av_cold struct FFIIRFilterCoeffs * ff_iir_filter_init_coeffs(void *avc, enum IIRFilterType filt_type, enum IIRFilterMode filt_mode, int order, float cutoff_ratio, float stopband, float ripple)
Initialize filter coefficients.
av_cold void ff_iir_filter_free_statep(struct FFIIRFilterState **state)
Free and zero filter state.
void ff_iir_filter(const struct FFIIRFilterCoeffs *c, struct FFIIRFilterState *s, int size, const int16_t *src, int sstep, int16_t *dst, int dstep)
Perform IIR filtering on signed 16-bit input samples.
Replacements for frequently missing libm functions.
IIR filter global parameters.
av_cold void ff_iir_filter_free_coeffsp(struct FFIIRFilterCoeffs **coeffsp)
Free filter coefficients.