FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
af_biquads.c File Reference
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  ChanCache
 
struct  BiquadsContext
 

Macros

#define BIQUAD_FILTER(name, type, min, max)
 
#define OFFSET(x)   offsetof(BiquadsContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define DEFINE_BIQUAD_FILTER(name_, description_)
 

Enumerations

enum  FilterType {
  biquad, equalizer, bass, treble,
  band, bandpass, bandreject, allpass,
  highpass, lowpass
}
 
enum  WidthType {
  NONE, HZ, OCTAVE, QFACTOR,
  SLOPE
}
 

Functions

static av_cold int init (AVFilterContext *ctx, const char *args)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFilterBufferRef *buf)
 
static av_cold void uninit (AVFilterContext *ctx)
 

Variables

static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 

Macro Definition Documentation

#define BIQUAD_FILTER (   name,
  type,
  min,
  max 
)

Definition at line 170 of file af_biquads.c.

#define OFFSET (   x)    offsetof(BiquadsContext, x)

Definition at line 451 of file af_biquads.c.

Definition at line 452 of file af_biquads.c.

#define DEFINE_BIQUAD_FILTER (   name_,
  description_ 
)
Value:
static av_cold int name_##_init(AVFilterContext *ctx, const char *args) \
{ \
BiquadsContext *p = ctx->priv; \
p->class = &name_##_class; \
p->filter_type = name_; \
return init(ctx, args); \
} \
\
AVFilter avfilter_af_##name_ = { \
.name = #name_, \
.description = NULL_IF_CONFIG_SMALL(description_), \
.priv_size = sizeof(BiquadsContext), \
.init = name_##_init, \
.uninit = uninit, \
.inputs = inputs, \
.priv_class = &name_##_class, \
}

Definition at line 454 of file af_biquads.c.

Enumeration Type Documentation

enum FilterType
Enumerator:
biquad 
equalizer 
bass 
treble 
band 
bandpass 
bandreject 
allpass 
highpass 
lowpass 

Definition at line 71 of file af_biquads.c.

enum WidthType
Enumerator:
NONE 
HZ 
OCTAVE 
QFACTOR 
SLOPE 

Definition at line 84 of file af_biquads.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx,
const char *  args 
)
static

Definition at line 119 of file af_biquads.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 140 of file af_biquads.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 239 of file af_biquads.c.

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef buf 
)
static

Definition at line 395 of file af_biquads.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 425 of file af_biquads.c.

Variable Documentation

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}

Definition at line 433 of file af_biquads.c.

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
.config_props = config_output,
},
{ NULL }
}

Definition at line 442 of file af_biquads.c.