Data Structures | Macros | Functions | Variables
af_stereowiden.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  StereoWidenContext


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


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


static const AVOption stereowiden_options []
static const AVFilterPad inputs []
static const AVFilterPad outputs []
AVFilter ff_af_stereowiden

Macro Definition Documentation

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

Definition at line 41 of file af_stereowiden.c.

Definition at line 42 of file af_stereowiden.c.

Definition at line 43 of file af_stereowiden.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( stereowiden  )
static int query_formats ( AVFilterContext ctx)

Definition at line 55 of file af_stereowiden.c.

static int config_input ( AVFilterLink inlink)

Definition at line 71 of file af_stereowiden.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 86 of file af_stereowiden.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 134 of file af_stereowiden.c.

Variable Documentation

const AVOption stereowiden_options[]
Initial value:
= {
{ "delay", "set delay time", OFFSET(delay), AV_OPT_TYPE_FLOAT, {.dbl=20}, 1, 100, A },
{ "feedback", "set feedback gain", OFFSET(feedback), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.9, AT },
{ "crossfeed", "set cross feed", OFFSET(crossfeed), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.8, AT },
{ "drymix", "set dry-mix", OFFSET(drymix), AV_OPT_TYPE_FLOAT, {.dbl=.8}, 0, 1.0, AT },
{ NULL }
#define NULL
Definition: coverity.c:32
#define A
#define OFFSET(x)
#define AT

Definition at line 45 of file af_stereowiden.c.

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

Definition at line 141 of file af_stereowiden.c.

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

Definition at line 151 of file af_stereowiden.c.

AVFilter ff_af_stereowiden
Initial value:
= {
.name = "stereowiden",
.description = NULL_IF_CONFIG_SMALL("Apply stereo widening effect."),
.query_formats = query_formats,
.priv_size = sizeof(StereoWidenContext),
.priv_class = &stereowiden_class,
static av_cold void uninit(AVFilterContext *ctx)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options...
Definition: avfilter.c:869
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:133
#define flags(name, subs,...)
Definition: cbs_av1.c:564
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_afftdn.c:1374
static int query_formats(AVFilterContext *ctx)

Definition at line 159 of file af_stereowiden.c.