FFmpeg
Data Structures | Macros | Functions | Variables
af_tremolo.c File Reference
#include "libavutil/opt.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"

Go to the source code of this file.

Data Structures

struct  TremoloContext
 

Macros

#define OFFSET(x)   offsetof(TremoloContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

 AVFILTER_DEFINE_CLASS (tremolo)
 
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)
 

Variables

static const AVOption tremolo_options []
 
static const AVFilterPad avfilter_af_tremolo_inputs []
 
static const AVFilterPad avfilter_af_tremolo_outputs []
 
AVFilter ff_af_tremolo
 

Macro Definition Documentation

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

Definition at line 34 of file af_tremolo.c.

Definition at line 35 of file af_tremolo.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( tremolo  )
static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 45 of file af_tremolo.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 85 of file af_tremolo.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 115 of file af_tremolo.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 121 of file af_tremolo.c.

Variable Documentation

const AVOption tremolo_options[]
static
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.0, 1.0, FLAGS },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: af_tremolo.c:35
#define OFFSET(x)
Definition: af_tremolo.c:34

Definition at line 37 of file af_tremolo.c.

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

Definition at line 143 of file af_tremolo.c.

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

Definition at line 153 of file af_tremolo.c.

AVFilter ff_af_tremolo
Initial value:
= {
.name = "tremolo",
.description = NULL_IF_CONFIG_SMALL("Apply tremolo effect."),
.priv_size = sizeof(TremoloContext),
.priv_class = &tremolo_class,
}
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_tremolo.c:115
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int query_formats(AVFilterContext *ctx)
Definition: af_tremolo.c:85
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
static const AVFilterPad avfilter_af_tremolo_inputs[]
Definition: af_tremolo.c:143
static const AVFilterPad avfilter_af_tremolo_outputs[]
Definition: af_tremolo.c:153

Definition at line 161 of file af_tremolo.c.