FFmpeg
Data Structures | Macros | Functions | Variables
af_adynamicsmooth.c File Reference
#include "libavutil/ffmath.h"
#include "libavutil/opt.h"
#include "avfilter.h"
#include "audio.h"

Go to the source code of this file.

Data Structures

struct  AudioDynamicSmoothContext
 

Macros

#define OFFSET(x)   offsetof(AudioDynamicSmoothContext, x)
 
#define FLAGS   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_RUNTIME_PARAM
 

Functions

static int config_input (AVFilterLink *inlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *in)
 
static av_cold void uninit (AVFilterContext *ctx)
 
 AVFILTER_DEFINE_CLASS (adynamicsmooth)
 

Variables

static const AVOption adynamicsmooth_options []
 
static const AVFilterPad inputs []
 
const AVFilter ff_af_adynamicsmooth
 

Macro Definition Documentation

◆ OFFSET

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

Definition at line 103 of file af_adynamicsmooth.c.

◆ FLAGS

Definition at line 104 of file af_adynamicsmooth.c.

Function Documentation

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 33 of file af_adynamicsmooth.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 45 of file af_adynamicsmooth.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 96 of file af_adynamicsmooth.c.

◆ AVFILTER_DEFINE_CLASS()

AVFILTER_DEFINE_CLASS ( adynamicsmooth  )

Variable Documentation

◆ adynamicsmooth_options

const AVOption adynamicsmooth_options[]
static
Initial value:
= {
{ "sensitivity", "set smooth sensitivity", OFFSET(sensitivity), AV_OPT_TYPE_DOUBLE, {.dbl=2}, 0, 1000000, FLAGS },
{ "basefreq", "set base frequency", OFFSET(basefreq), AV_OPT_TYPE_DOUBLE, {.dbl=22050}, 2, 1000000, FLAGS },
{ NULL }
}

Definition at line 106 of file af_adynamicsmooth.c.

◆ inputs

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
}

Definition at line 114 of file af_adynamicsmooth.c.

◆ ff_af_adynamicsmooth

const AVFilter ff_af_adynamicsmooth
Initial value:
= {
.name = "adynamicsmooth",
.description = NULL_IF_CONFIG_SMALL("Apply Dynamic Smoothing of input audio."),
.priv_size = sizeof(AudioDynamicSmoothContext),
.priv_class = &adynamicsmooth_class,
.process_command = ff_filter_process_command,
}

Definition at line 123 of file af_adynamicsmooth.c.

FILTER_SINGLE_SAMPLEFMT
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
Definition: internal.h:175
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_adynamicsmooth.c:45
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_adynamicsmooth.c:96
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:247
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: internal.h:182
NULL
#define NULL
Definition: coverity.c:32
ff_audio_default_filterpad
const AVFilterPad ff_audio_default_filterpad[1]
An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.
Definition: audio.c:33
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:94
ff_filter_process_command
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
Definition: avfilter.c:887
OFFSET
#define OFFSET(x)
Definition: af_adynamicsmooth.c:103
FLAGS
#define FLAGS
Definition: af_adynamicsmooth.c:104
inputs
static const AVFilterPad inputs[]
Definition: af_adynamicsmooth.c:114
AV_SAMPLE_FMT_DBLP
@ AV_SAMPLE_FMT_DBLP
double, planar
Definition: samplefmt.h:67
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: internal.h:183
config_input
static int config_input(AVFilterLink *inlink)
Definition: af_adynamicsmooth.c:33
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
#define AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() c...
Definition: avfilter.h:155
AudioDynamicSmoothContext
Definition: af_adynamicsmooth.c:24