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

Go to the source code of this file.

Data Structures

struct  DCShiftContext


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


static av_cold int init (AVFilterContext *ctx)
static int query_formats (AVFilterContext *ctx)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)


static const AVOption dcshift_options []
static const AVFilterPad dcshift_inputs []
static const AVFilterPad dcshift_outputs []
AVFilter ff_af_dcshift

Macro Definition Documentation

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

Definition at line 35 of file af_dcshift.c.

Definition at line 36 of file af_dcshift.c.

Function Documentation

static av_cold int init ( AVFilterContext ctx)

Definition at line 46 of file af_dcshift.c.

static int query_formats ( AVFilterContext ctx)

Definition at line 55 of file af_dcshift.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 84 of file af_dcshift.c.

Variable Documentation

const AVOption dcshift_options[]
Initial value:
= {
{ "shift", "set DC shift", OFFSET(dcshift), AV_OPT_TYPE_DOUBLE, {.dbl=0}, -1, 1, A },
{ "limitergain", "set limiter gain", OFFSET(limitergain), AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, 1, A },
{ NULL }
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: af_dcshift.c:35
#define A
Definition: af_dcshift.c:36

Definition at line 38 of file af_dcshift.c.

const AVFilterPad dcshift_inputs[]
Initial value:
= {
.name = "default",
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_dcshift.c:84

Definition at line 140 of file af_dcshift.c.

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

Definition at line 149 of file af_dcshift.c.

AVFilter ff_af_dcshift
Initial value:
= {
.name = "dcshift",
.description = NULL_IF_CONFIG_SMALL("Apply a DC shift to the audio."),
.query_formats = query_formats,
.priv_size = sizeof(DCShiftContext),
.priv_class = &dcshift_class,
.init = init,
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:123
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int query_formats(AVFilterContext *ctx)
Definition: af_dcshift.c:55
static const AVFilterPad dcshift_inputs[]
Definition: af_dcshift.c:140
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:386
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:376
static const AVFilterPad dcshift_outputs[]
Definition: af_dcshift.c:149
static int flags
Definition: cpu.c:47
static av_cold int init(AVFilterContext *ctx)
Definition: af_dcshift.c:46

Definition at line 157 of file af_dcshift.c.