FFmpeg
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | FFIIRFilterContext |
Functions | |
void | ff_iir_filter_init (FFIIRFilterContext *f) |
Initialize FFIIRFilterContext. More... | |
void | ff_iir_filter_init_mips (FFIIRFilterContext *f) |
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. More... | |
struct FFIIRFilterState * | ff_iir_filter_init_state (int order) |
Create new filter state. More... | |
void | ff_iir_filter_free_coeffsp (struct FFIIRFilterCoeffs **coeffs) |
Free filter coefficients. More... | |
void | ff_iir_filter_free_statep (struct FFIIRFilterState **state) |
Free and zero filter state. More... | |
IIR filter interface
Definition in file iirfilter.h.
enum IIRFilterType |
Enumerator | |
---|---|
FF_FILTER_TYPE_BESSEL | |
FF_FILTER_TYPE_BIQUAD | |
FF_FILTER_TYPE_BUTTERWORTH | |
FF_FILTER_TYPE_CHEBYSHEV | |
FF_FILTER_TYPE_ELLIPTIC |
Definition at line 35 of file iirfilter.h.
enum IIRFilterMode |
Enumerator | |
---|---|
FF_FILTER_MODE_LOWPASS | |
FF_FILTER_MODE_HIGHPASS | |
FF_FILTER_MODE_BANDPASS | |
FF_FILTER_MODE_BANDSTOP |
Definition at line 43 of file iirfilter.h.
void ff_iir_filter_init | ( | FFIIRFilterContext * | f | ) |
Initialize FFIIRFilterContext.
Definition at line 320 of file iirfilter.c.
Referenced by ff_psy_preprocess_init().
void ff_iir_filter_init_mips | ( | FFIIRFilterContext * | f | ) |
Definition at line 203 of file iirfilter_mips.c.
Referenced by ff_iir_filter_init().
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.
avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
filt_type | filter type (e.g. Butterworth) |
filt_mode | filter mode (e.g. lowpass) |
order | filter order |
cutoff_ratio | cutoff to input frequency ratio |
stopband | stopband to input frequency ratio (used by bandpass and bandstop filter modes) |
ripple | ripple factor (used only in Chebyshev filters) |
Definition at line 166 of file iirfilter.c.
Referenced by ff_psy_preprocess_init(), and main().
struct FFIIRFilterState* ff_iir_filter_init_state | ( | int | order | ) |
Create new filter state.
order | filter order |
Definition at line 205 of file iirfilter.c.
Referenced by ff_psy_preprocess_init(), and main().
void ff_iir_filter_free_coeffsp | ( | struct FFIIRFilterCoeffs ** | coeffs | ) |
Free filter coefficients.
coeffs | pointer allocated with ff_iir_filter_init_coeffs() |
Definition at line 310 of file iirfilter.c.
Referenced by ff_iir_filter_init_coeffs(), ff_psy_preprocess_end(), and main().
void ff_iir_filter_free_statep | ( | struct FFIIRFilterState ** | state | ) |
Free and zero filter state.
state | pointer to pointer allocated with ff_iir_filter_init_state() |
Definition at line 305 of file iirfilter.c.
Referenced by ff_psy_preprocess_end(), and main().