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"
#include "filters.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 104 of file af_adynamicsmooth.c.

◆ FLAGS

Definition at line 105 of file af_adynamicsmooth.c.

Function Documentation

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 34 of file af_adynamicsmooth.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 46 of file af_adynamicsmooth.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 97 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 107 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 115 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 124 of file af_adynamicsmooth.c.

FILTER_INPUTS
#define FILTER_INPUTS(array)
Definition: filters.h:262
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_adynamicsmooth.c:46
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_adynamicsmooth.c:97
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
Definition: opt.h:267
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
FILTER_OUTPUTS
#define FILTER_OUTPUTS(array)
Definition: filters.h:263
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:34
FILTER_SINGLE_SAMPLEFMT
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
Definition: filters.h:255
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:901
OFFSET
#define OFFSET(x)
Definition: af_adynamicsmooth.c:104
FLAGS
#define FLAGS
Definition: af_adynamicsmooth.c:105
inputs
static const AVFilterPad inputs[]
Definition: af_adynamicsmooth.c:115
AV_SAMPLE_FMT_DBLP
@ AV_SAMPLE_FMT_DBLP
double, planar
Definition: samplefmt.h:67
config_input
static int config_input(AVFilterLink *inlink)
Definition: af_adynamicsmooth.c:34
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:190
AudioDynamicSmoothContext
Definition: af_adynamicsmooth.c:25