#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"
Go to the source code of this file.
#define MOD |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) >= (b)) ? (a) - (b) : (a)) |
#define S |
( |
|
x | ) |
s->segments[2 * ((x) + 1)] |
#define S |
( |
|
x | ) |
s->segments[2 * (x)] |
#define L |
( |
|
x | ) |
s->segments[i - (x)] |
AVFILTER_DEFINE_CLASS |
( |
compand |
| ) |
|
static void count_items |
( |
char * |
item_str, |
|
|
int * |
nb_items |
|
) |
| |
|
static |
Initial value:= {
{
"attacks",
"set time over which increase of volume is determined",
OFFSET(attacks),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0,
A },
{
"decays",
"set time over which decrease of volume is determined",
OFFSET(decays),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0,
A },
{
"delay",
"set delay for samples before sending them to volume adjuster",
OFFSET(delay),
AV_OPT_TYPE_DOUBLE, {.dbl=0}, 0, 20,
A },
{ NULL }
}
Definition at line 67 of file af_compand.c.
Initial value:= {
{
.name = "default",
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
Definition at line 489 of file af_compand.c.
Initial value:= {
{
.name = "default",
},
{ NULL }
}
static int request_frame(AVFilterLink *outlink)
static int config_output(AVFilterLink *outlink)
Definition at line 498 of file af_compand.c.
Initial value:= {
.name = "compand",
.priv_class = &compand_class,
}
static const AVFilterPad compand_inputs[]
static const AVFilterPad outputs[]
static const AVFilterPad compand_outputs[]
static av_cold int init(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVFilterPad inputs[]
static av_cold void uninit(AVFilterContext *ctx)
Definition at line 508 of file af_compand.c.