FFmpeg
Loading...
Searching...
No Matches
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)
 
#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 FFFilter ff_af_adynamicsmooth
 

Macro Definition Documentation

◆ OFFSET

#define OFFSET ( x)
Value:

Definition at line 104 of file af_adynamicsmooth.c.

◆ FLAGS

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 }
}
#define FLAGS
Definition cmdutils.c:598
#define NULL
Definition coverity.c:32
#define OFFSET(x)
@ AV_OPT_TYPE_DOUBLE
Underlying C type is double.
Definition opt.h:266

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,
},
}
static int config_input(AVFilterLink *inlink)
static int filter_frame(DBEDecodeContext *s, AVFrame *frame)
Definition dolby_e.c:1067
@ AVMEDIA_TYPE_AUDIO
Definition avutil.h:201

Definition at line 115 of file af_adynamicsmooth.c.

◆ ff_af_adynamicsmooth

const FFFilter ff_af_adynamicsmooth
Initial value:
= {
.p.name = "adynamicsmooth",
.p.description = NULL_IF_CONFIG_SMALL("Apply Dynamic Smoothing of input audio."),
.p.priv_class = &adynamicsmooth_class,
.priv_size = sizeof(AudioDynamicSmoothContext),
.process_command = ff_filter_process_command,
}
static const AVFilterPad inputs[]
Definition af_aap.c:299
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
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:906
#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:204
@ AV_SAMPLE_FMT_DBLP
double, planar
Definition samplefmt.h:67
static av_cold void uninit(AVBitStreamFilterContext *ctx)
#define FILTER_INPUTS(array)
Definition filters.h:264
#define FILTER_OUTPUTS(array)
Definition filters.h:265
#define FILTER_SINGLE_SAMPLEFMT(sample_fmt_)
Definition filters.h:257
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 124 of file af_adynamicsmooth.c.