FFmpeg
|
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "libavutil/eval.h"
#include "libavutil/avassert.h"
#include "libavcodec/avfft.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"
Go to the source code of this file.
Data Structures | |
struct | GainEntry |
struct | OverlapIndex |
struct | FIREqualizerContext |
Macros | |
#define | RDFT_BITS_MIN 4 |
#define | RDFT_BITS_MAX 16 |
#define | NB_GAIN_ENTRY_MAX 4096 |
#define | OFFSET(x) offsetof(FIREqualizerContext, x) |
#define | FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
#define | TFLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM |
#define | SELECT_GAIN(s) (s->gain_cmd ? s->gain_cmd : s->gain) |
#define | SELECT_GAIN_ENTRY(s) (s->gain_entry_cmd ? s->gain_entry_cmd : s->gain_entry) |
Functions | |
AVFILTER_DEFINE_CLASS (firequalizer) | |
static void | common_uninit (FIREqualizerContext *s) |
static av_cold void | uninit (AVFilterContext *ctx) |
static void | fast_convolute (FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, float *av_restrict conv_buf, OverlapIndex *av_restrict idx, float *av_restrict data, int nsamples) |
static void | fast_convolute_nonlinear (FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, float *av_restrict conv_buf, OverlapIndex *av_restrict idx, float *av_restrict data, int nsamples) |
static void | fast_convolute2 (FIREqualizerContext *av_restrict s, const float *av_restrict kernel_buf, FFTComplex *av_restrict conv_buf, OverlapIndex *av_restrict idx, float *av_restrict data0, float *av_restrict data1, int nsamples) |
static void | dump_fir (AVFilterContext *ctx, FILE *fp, int ch) |
static double | entry_func (void *p, double freq, double gain) |
static int | gain_entry_compare (const void *key, const void *memb) |
static double | gain_interpolate_func (void *p, double freq) |
static double | cubic_interpolate_func (void *p, double freq) |
static void | generate_min_phase_kernel (FIREqualizerContext *s, float *rdft_buf) |
static int | generate_kernel (AVFilterContext *ctx, const char *gain, const char *gain_entry) |
static int | config_input (AVFilterLink *inlink) |
static int | filter_frame (AVFilterLink *inlink, AVFrame *frame) |
static int | request_frame (AVFilterLink *outlink) |
static int | process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags) |
Variables | |
static const AVOption | firequalizer_options [] |
static const char *const | var_names [] |
static const AVFilterPad | firequalizer_inputs [] |
static const AVFilterPad | firequalizer_outputs [] |
const AVFilter | ff_af_firequalizer |
#define RDFT_BITS_MIN 4 |
Definition at line 30 of file af_firequalizer.c.
#define RDFT_BITS_MAX 16 |
Definition at line 31 of file af_firequalizer.c.
#define NB_GAIN_ENTRY_MAX 4096 |
Definition at line 55 of file af_firequalizer.c.
#define OFFSET | ( | x | ) | offsetof(FIREqualizerContext, x) |
Definition at line 114 of file af_firequalizer.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 115 of file af_firequalizer.c.
Definition at line 116 of file af_firequalizer.c.
Definition at line 725 of file af_firequalizer.c.
Definition at line 726 of file af_firequalizer.c.
enum WindowFunc |
Definition at line 33 of file af_firequalizer.c.
enum Scale |
Enumerator | |
---|---|
SCALE_LINLIN | |
SCALE_LINLOG | |
SCALE_LOGLIN | |
SCALE_LOGLOG | |
NB_SCALE |
Definition at line 47 of file af_firequalizer.c.
enum VarOffset |
Enumerator | |
---|---|
VAR_F | |
VAR_SR | |
VAR_CH | |
VAR_CHID | |
VAR_CHS | |
VAR_CHLAYOUT | |
VAR_NB |
Definition at line 515 of file af_firequalizer.c.
AVFILTER_DEFINE_CLASS | ( | firequalizer | ) |
|
static |
Definition at line 151 of file af_firequalizer.c.
Referenced by config_input(), and uninit().
|
static |
Definition at line 174 of file af_firequalizer.c.
|
static |
Definition at line 183 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 221 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 261 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 325 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 384 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 413 of file af_firequalizer.c.
Referenced by cubic_interpolate_func(), and gain_interpolate_func().
|
static |
Definition at line 425 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 460 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 525 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 573 of file af_firequalizer.c.
Referenced by config_input(), and process_command().
|
static |
Definition at line 728 of file af_firequalizer.c.
|
static |
Definition at line 815 of file af_firequalizer.c.
Referenced by request_frame().
|
static |
Definition at line 851 of file af_firequalizer.c.
|
static |
Definition at line 873 of file af_firequalizer.c.
|
static |
Definition at line 118 of file af_firequalizer.c.
|
static |
Definition at line 505 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 922 of file af_firequalizer.c.
|
static |
Definition at line 932 of file af_firequalizer.c.
const AVFilter ff_af_firequalizer |
Definition at line 940 of file af_firequalizer.c.