FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
 

Macros

#define OFFSET(x)   offsetof(StereoWidenContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Functions

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

Variables

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.

Function Documentation

AVFILTER_DEFINE_CLASS ( stereowiden  )
static int query_formats ( AVFilterContext ctx)
static

Definition at line 54 of file af_stereowiden.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 70 of file af_stereowiden.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 84 of file af_stereowiden.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 133 of file af_stereowiden.c.

Variable Documentation

const AVOption stereowiden_options[]
static
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, A },
{ "crossfeed", "set cross feed", OFFSET(crossfeed), AV_OPT_TYPE_FLOAT, {.dbl=.3}, 0, 0.8, A },
{ "drymix", "set dry-mix", OFFSET(drymix), AV_OPT_TYPE_FLOAT, {.dbl=.8}, 0, 1.0, A },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define A
#define OFFSET(x)

Definition at line 44 of file af_stereowiden.c.

const AVFilterPad inputs[]
static
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 140 of file af_stereowiden.c.

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

Definition at line 150 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)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
static int query_formats(AVFilterContext *ctx)

Definition at line 158 of file af_stereowiden.c.