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 146 of file af_dcshift.c.

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

Definition at line 155 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:126
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static int query_formats(AVFilterContext *ctx)
Definition: af_dcshift.c:55
static const AVFilterPad dcshift_inputs[]
Definition: af_dcshift.c:146
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 dcshift_outputs[]
Definition: af_dcshift.c:155
#define flags(name, subs,...)
Definition: cbs_av1.c:560
static av_cold int init(AVFilterContext *ctx)
Definition: af_dcshift.c:46

Definition at line 163 of file af_dcshift.c.