FFmpeg
Macros | Functions
adynamicequalizer_template.c File Reference

Go to the source code of this file.

Macros

#define SAMPLE_FORMAT   double
 
#define SQRT   sqrt
 
#define TAN   tan
 
#define ONE   1.0
 
#define TWO   2.0
 
#define ZERO   0.0
 
#define FMIN   fmin
 
#define FMAX   fmax
 
#define CLIP   av_clipd
 
#define FABS   fabs
 
#define FLOG   log
 
#define FEXP   exp
 
#define FLOG2   log2
 
#define FLOG10   log10
 
#define FEXP2   exp2
 
#define FEXP10   ff_exp10
 
#define EPSILON   (1.0 / (1LL << 53))
 
#define ftype   double
 
#define LIN2LOG(x)   (20.0 * FLOG10(x))
 
#define LOG2LIN(x)   (FEXP10(x / 20.0))
 
#define fn3(a, b)   a##_##b
 
#define fn2(a, b)   fn3(a,b)
 
#define fn(a)   fn2(a, SAMPLE_FORMAT)
 
#define PEAKS(empty_value, op, sample, psample)
 

Functions

static ftype fn() get_svf (ftype in, const ftype *m, const ftype *a, ftype *b)
 
static int fn() filter_prepare (AVFilterContext *ctx)
 
static void fn() queue_sample (ChannelContext *cc, const ftype x, const int nb_samples)
 
static ftype fn() get_peak (ChannelContext *cc, ftype *score)
 
static int fn() filter_channels (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
 

Macro Definition Documentation

◆ SAMPLE_FORMAT

#define SAMPLE_FORMAT   double

Definition at line 57 of file adynamicequalizer_template.c.

◆ SQRT

#define SQRT   sqrt

Definition at line 58 of file adynamicequalizer_template.c.

◆ TAN

#define TAN   tan

Definition at line 59 of file adynamicequalizer_template.c.

◆ ONE

#define ONE   1.0

Definition at line 60 of file adynamicequalizer_template.c.

◆ TWO

#define TWO   2.0

Definition at line 61 of file adynamicequalizer_template.c.

◆ ZERO

#define ZERO   0.0

Definition at line 62 of file adynamicequalizer_template.c.

◆ FMIN

#define FMIN   fmin

Definition at line 63 of file adynamicequalizer_template.c.

◆ FMAX

#define FMAX   fmax

Definition at line 64 of file adynamicequalizer_template.c.

◆ CLIP

#define CLIP   av_clipd

Definition at line 65 of file adynamicequalizer_template.c.

◆ FABS

#define FABS   fabs

Definition at line 66 of file adynamicequalizer_template.c.

◆ FLOG

#define FLOG   log

Definition at line 67 of file adynamicequalizer_template.c.

◆ FEXP

#define FEXP   exp

Definition at line 68 of file adynamicequalizer_template.c.

◆ FLOG2

#define FLOG2   log2

Definition at line 69 of file adynamicequalizer_template.c.

◆ FLOG10

#define FLOG10   log10

Definition at line 70 of file adynamicequalizer_template.c.

◆ FEXP2

#define FEXP2   exp2

Definition at line 71 of file adynamicequalizer_template.c.

◆ FEXP10

#define FEXP10   ff_exp10

Definition at line 72 of file adynamicequalizer_template.c.

◆ EPSILON

#define EPSILON   (1.0 / (1LL << 53))

Definition at line 73 of file adynamicequalizer_template.c.

◆ ftype

#define ftype   double

Definition at line 74 of file adynamicequalizer_template.c.

◆ LIN2LOG

#define LIN2LOG (   x)    (20.0 * FLOG10(x))

Definition at line 77 of file adynamicequalizer_template.c.

◆ LOG2LIN

#define LOG2LIN (   x)    (FEXP10(x / 20.0))

Definition at line 78 of file adynamicequalizer_template.c.

◆ fn3

#define fn3 (   a,
  b 
)    a##_##b

Definition at line 80 of file adynamicequalizer_template.c.

◆ fn2

#define fn2 (   a,
  b 
)    fn3(a,b)

Definition at line 81 of file adynamicequalizer_template.c.

◆ fn

#define fn (   a)    fn2(a, SAMPLE_FORMAT)

Definition at line 82 of file adynamicequalizer_template.c.

◆ PEAKS

#define PEAKS (   empty_value,
  op,
  sample,
  psample 
)

Definition at line 165 of file adynamicequalizer_template.c.

Function Documentation

◆ get_svf()

static ftype fn() get_svf ( ftype  in,
const ftype m,
const ftype a,
ftype b 
)
static

Definition at line 84 of file adynamicequalizer_template.c.

Referenced by filter_channels().

◆ filter_prepare()

static int fn() filter_prepare ( AVFilterContext ctx)
static

Definition at line 97 of file adynamicequalizer_template.c.

◆ queue_sample()

static void fn() queue_sample ( ChannelContext cc,
const ftype  x,
const int  nb_samples 
)
static

Definition at line 206 of file adynamicequalizer_template.c.

Referenced by filter_channels().

◆ get_peak()

static ftype fn() get_peak ( ChannelContext cc,
ftype score 
)
static

Definition at line 243 of file adynamicequalizer_template.c.

Referenced by filter_channels().

◆ filter_channels()

static int fn() filter_channels ( AVFilterContext ctx,
void *  arg,
int  jobnr,
int  nb_jobs 
)
static

Definition at line 251 of file adynamicequalizer_template.c.