Data Structures | Macros | Functions | Variables
af_asubboost.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  ASubBoostContext
struct  ThreadData
 Used for passing data between threads. More...


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


static int query_formats (AVFilterContext *ctx)
static int get_coeffs (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int filter_channels (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
static av_cold void uninit (AVFilterContext *ctx)
static int process_command (AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)


static const AVOption asubboost_options []
static const AVFilterPad inputs []
static const AVFilterPad outputs []
AVFilter ff_af_asubboost

Macro Definition Documentation

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

Definition at line 213 of file af_asubboost.c.

Definition at line 214 of file af_asubboost.c.

Function Documentation

static int query_formats ( AVFilterContext ctx)

Definition at line 47 of file af_asubboost.c.

static int get_coeffs ( AVFilterContext ctx)

Definition at line 76 of file af_asubboost.c.

Referenced by config_input(), and process_command().

static int config_input ( AVFilterLink inlink)

Definition at line 101 of file af_asubboost.c.

static int filter_channels ( AVFilterContext ctx,
void arg,
int  jobnr,
int  nb_jobs 

Definition at line 119 of file af_asubboost.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame in 

Definition at line 165 of file af_asubboost.c.

static av_cold void uninit ( AVFilterContext ctx)

Definition at line 192 of file af_asubboost.c.

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

Definition at line 201 of file af_asubboost.c.


Variable Documentation

const AVOption asubboost_options[]
Initial value:
= {
{ "dry", "set dry gain", OFFSET(dry_gain), AV_OPT_TYPE_DOUBLE, {.dbl=0.7}, 0, 1, FLAGS },
{ "wet", "set wet gain", OFFSET(wet_gain), AV_OPT_TYPE_DOUBLE, {.dbl=0.7}, 0, 1, FLAGS },
{ "decay", "set decay", OFFSET(decay), AV_OPT_TYPE_DOUBLE, {.dbl=0.7}, 0, 1, FLAGS },
{ "feedback", "set feedback", OFFSET(feedback), AV_OPT_TYPE_DOUBLE, {.dbl=0.9}, 0, 1, FLAGS },
{ "cutoff", "set cutoff", OFFSET(cutoff), AV_OPT_TYPE_DOUBLE, {.dbl=100}, 50, 900, FLAGS },
{ "slope", "set slope", OFFSET(slope), AV_OPT_TYPE_DOUBLE, {.dbl=0.5}, 0.0001, 1, FLAGS },
{ "delay", "set delay", OFFSET(delay), AV_OPT_TYPE_DOUBLE, {.dbl=20}, 1, 100, FLAGS },
{ NULL }
#define NULL
Definition: coverity.c:32
#define FLAGS
Definition: af_asubboost.c:214
#define OFFSET(x)
Definition: af_asubboost.c:213

Definition at line 216 of file af_asubboost.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_asubboost.c:101
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_asubboost.c:165

Definition at line 229 of file af_asubboost.c.

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

Definition at line 239 of file af_asubboost.c.

AVFilter ff_af_asubboost
Initial value:
= {
.name = "asubboost",
.description = NULL_IF_CONFIG_SMALL("Boost subwoofer frequencies."),
.query_formats = query_formats,
.priv_size = sizeof(ASubBoostContext),
.priv_class = &asubboost_class,
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
Definition: af_asubboost.c:201
static int query_formats(AVFilterContext *ctx)
Definition: af_asubboost.c:47
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:117
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
Definition: avfilter.h:117
static const AVFilterPad outputs[]
Definition: af_asubboost.c:239
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:561
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_asubboost.c:192
static const AVFilterPad inputs[]
Definition: af_asubboost.c:229

Definition at line 247 of file af_asubboost.c.