FFmpeg
Data Structures | Macros | Functions | Variables
af_extrastereo.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  ExtraStereoContext
 

Macros

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

Functions

 AVFILTER_DEFINE_CLASS (extrastereo)
 
static int query_formats (AVFilterContext *ctx)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 

Variables

static const AVOption extrastereo_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_af_extrastereo
 

Macro Definition Documentation

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

Definition at line 33 of file af_extrastereo.c.

Definition at line 34 of file af_extrastereo.c.

Function Documentation

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

Definition at line 44 of file af_extrastereo.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 60 of file af_extrastereo.c.

Variable Documentation

const AVOption extrastereo_options[]
static
Initial value:
= {
{ "m", "set the difference coefficient", OFFSET(mult), AV_OPT_TYPE_FLOAT, {.dbl=2.5}, -10, 10, A },
{ "c", "enable clipping", OFFSET(clip), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, A },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
static int16_t mult(Float11 *f1, Float11 *f2)
Definition: g726.c:55
static double clip(void *opaque, double val)
Clip value val in the minval - maxval range.
Definition: vf_lut.c:162
#define A

Definition at line 36 of file af_extrastereo.c.

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

Definition at line 106 of file af_extrastereo.c.

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

Definition at line 115 of file af_extrastereo.c.

AVFilter ff_af_extrastereo
Initial value:
= {
.name = "extrastereo",
.description = NULL_IF_CONFIG_SMALL("Increase difference between stereo audio channels."),
.query_formats = query_formats,
.priv_size = sizeof(ExtraStereoContext),
.priv_class = &extrastereo_class,
}
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
Definition: avfilter.h:125
static const AVFilterPad inputs[]
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
#define flags(name, subs,...)
Definition: cbs_av1.c:561
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad outputs[]

Definition at line 123 of file af_extrastereo.c.