FFmpeg
|
#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 | 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 int | query_formats (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 [] |
AVFilter | ff_af_firequalizer |
#define RDFT_BITS_MIN 4 |
Definition at line 29 of file af_firequalizer.c.
Referenced by config_input().
#define RDFT_BITS_MAX 16 |
Definition at line 30 of file af_firequalizer.c.
Referenced by config_input().
#define NB_GAIN_ENTRY_MAX 4096 |
Definition at line 54 of file af_firequalizer.c.
Referenced by entry_func().
#define OFFSET | ( | x | ) | offsetof(FIREqualizerContext, x) |
Definition at line 113 of file af_firequalizer.c.
#define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM |
Definition at line 114 of file af_firequalizer.c.
Definition at line 753 of file af_firequalizer.c.
Referenced by config_input(), and process_command().
Definition at line 754 of file af_firequalizer.c.
Referenced by config_input(), and process_command().
enum WindowFunc |
Definition at line 32 of file af_firequalizer.c.
enum Scale |
Enumerator | |
---|---|
SCALE_LINLIN | |
SCALE_LINLOG | |
SCALE_LOGLIN | |
SCALE_LOGLOG | |
NB_SCALE |
Definition at line 46 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 543 of file af_firequalizer.c.
AVFILTER_DEFINE_CLASS | ( | firequalizer | ) |
|
static |
Definition at line 149 of file af_firequalizer.c.
Referenced by config_input(), and uninit().
|
static |
Definition at line 172 of file af_firequalizer.c.
|
static |
Definition at line 181 of file af_firequalizer.c.
|
static |
Definition at line 211 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 249 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 289 of file af_firequalizer.c.
Referenced by filter_frame().
|
static |
Definition at line 353 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 412 of file af_firequalizer.c.
Referenced by generate_kernel().
Definition at line 441 of file af_firequalizer.c.
Referenced by cubic_interpolate_func(), and gain_interpolate_func().
|
static |
Definition at line 453 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 488 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 553 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 601 of file af_firequalizer.c.
Referenced by config_input(), and process_command().
|
static |
Definition at line 756 of file af_firequalizer.c.
|
static |
Definition at line 843 of file af_firequalizer.c.
Referenced by request_frame().
|
static |
Definition at line 879 of file af_firequalizer.c.
|
static |
Definition at line 901 of file af_firequalizer.c.
|
static |
Definition at line 116 of file af_firequalizer.c.
|
static |
Definition at line 533 of file af_firequalizer.c.
Referenced by generate_kernel().
|
static |
Definition at line 950 of file af_firequalizer.c.
|
static |
Definition at line 961 of file af_firequalizer.c.
AVFilter ff_af_firequalizer |
Definition at line 970 of file af_firequalizer.c.