Data Structures | Macros | Functions | Variables
af_crossfeed.c File Reference
#include "libavutil/channel_layout.h"
#include "libavutil/ffmath.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  CrossfeedContext


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


static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)


static const AVOption crossfeed_options []
static const AVFilterPad inputs []
static const AVFilterPad outputs []
AVFilter ff_af_crossfeed

Macro Definition Documentation

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

Definition at line 146 of file af_crossfeed.c.

Definition at line 147 of file af_crossfeed.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)

Definition at line 41 of file af_crossfeed.c.

static int config_input ( AVFilterLink inlink)

Definition at line 57 of file af_crossfeed.c.

Referenced by process_command().

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 83 of file af_crossfeed.c.

static int process_command ( AVFilterContext ctx,
const char *  cmd,
const char *  args,
char *  res,
int  res_len,
int  flags 

Definition at line 134 of file af_crossfeed.c.


Variable Documentation

const AVOption crossfeed_options[]
Initial value:
= {
{ "strength", "set crossfeed strength", OFFSET(strength), AV_OPT_TYPE_DOUBLE, {.dbl=.2}, 0, 1, FLAGS },
{ "range", "set soundstage wideness", OFFSET(range), AV_OPT_TYPE_DOUBLE, {.dbl=.5}, 0, 1, FLAGS },
{ "slope", "set curve slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=.5}, .01, 1, FLAGS },
{ "level_in", "set level in", OFFSET(level_in), AV_OPT_TYPE_DOUBLE, {.dbl=.9}, 0, 1, FLAGS },
{ "level_out", "set level out", OFFSET(level_out), AV_OPT_TYPE_DOUBLE, {.dbl=1.}, 0, 1, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: af_crossfeed.c:147
#define OFFSET(x)
Definition: af_crossfeed.c:146

Definition at line 149 of file af_crossfeed.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 config_input(AVFilterLink *inlink)
Definition: af_crossfeed.c:57
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_crossfeed.c:83

Definition at line 160 of file af_crossfeed.c.

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

Definition at line 170 of file af_crossfeed.c.

AVFilter ff_af_crossfeed
Initial value:
= {
.name = "crossfeed",
.description = NULL_IF_CONFIG_SMALL("Apply headphone crossfeed filter."),
.query_formats = query_formats,
.priv_size = sizeof(CrossfeedContext),
.priv_class = &crossfeed_class,
static const AVFilterPad inputs[]
Definition: af_crossfeed.c:160
static const AVFilterPad outputs[]
Definition: af_crossfeed.c:170
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:153
static int query_formats(AVFilterContext *ctx)
Definition: af_crossfeed.c:41
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:134
#define flags(name, subs,...)
Definition: cbs_av1.c:560
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_crossfeed.c:134

Definition at line 178 of file af_crossfeed.c.