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

Go to the source code of this file.

Data Structures

struct  VibratoContext


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


static int filter_frame (AVFilterLink *inlink, AVFrame *in)
static int query_formats (AVFilterContext *ctx)
static av_cold void uninit (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)


static const AVOption vibrato_options []
static const AVFilterPad avfilter_af_vibrato_inputs []
static const AVFilterPad avfilter_af_vibrato_outputs []
AVFilter ff_af_vibrato

Macro Definition Documentation

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

Definition at line 42 of file af_vibrato.c.

Definition at line 43 of file af_vibrato.c.

Function Documentation

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 53 of file af_vibrato.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 114 of file af_vibrato.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 144 of file af_vibrato.c.

static int config_input ( AVFilterLink inlink)

Definition at line 155 of file af_vibrato.c.

Variable Documentation

const AVOption vibrato_options[]
Initial value:
= {
{ "f", "set frequency in hertz", OFFSET(freq), AV_OPT_TYPE_DOUBLE, {.dbl = 5.0}, 0.1, 20000.0, FLAGS },
{ "d", "set depth as percentage", OFFSET(depth), AV_OPT_TYPE_DOUBLE, {.dbl = 0.5}, 0.00, 1.0, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: af_vibrato.c:43
int depth
Definition: v4l.c:62
#define OFFSET(x)
Definition: af_vibrato.c:42

Definition at line 45 of file af_vibrato.c.

const AVFilterPad avfilter_af_vibrato_inputs[]
Initial value:
= {
.name = "default",
.config_props = config_input,
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int config_input(AVFilterLink *inlink)
Definition: af_vibrato.c:155
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_vibrato.c:53

Definition at line 183 of file af_vibrato.c.

const AVFilterPad avfilter_af_vibrato_outputs[]
Initial value:
= {
.name = "default",
{ NULL }
#define NULL
Definition: coverity.c:32

Definition at line 193 of file af_vibrato.c.

AVFilter ff_af_vibrato
Initial value:
= {
.name = "vibrato",
.description = NULL_IF_CONFIG_SMALL("Apply vibrato effect."),
.priv_size = sizeof(VibratoContext),
.priv_class = &vibrato_class,
static const AVFilterPad avfilter_af_vibrato_inputs[]
Definition: af_vibrato.c:183
static int query_formats(AVFilterContext *ctx)
Definition: af_vibrato.c:114
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_vibrato.c:144
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad avfilter_af_vibrato_outputs[]
Definition: af_vibrato.c:193

Definition at line 201 of file af_vibrato.c.