FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
af_deesser.c File Reference
#include "libavutil/channel_layout.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  DeesserChannel
 
struct  DeesserContext
 

Macros

#define OFFSET(x)   offsetof(DeesserContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 

Enumerations

enum  OutModes {
  IN_MODE, OUT_MODE, NOISE_MODE, NB_MODES,
  IN_MODE, OUT_MODE, NOISE_MODE, NB_MODES,
  IN_MODE, OUT_MODE, ESS_MODE, NB_MODES
}
 

Functions

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

Variables

static const AVOption deesser_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_af_deesser
 

Macro Definition Documentation

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

Definition at line 55 of file af_deesser.c.

Definition at line 56 of file af_deesser.c.

Enumeration Type Documentation

enum OutModes
Enumerator
IN_MODE 
OUT_MODE 
NOISE_MODE 
NB_MODES 
IN_MODE 
OUT_MODE 
NOISE_MODE 
NB_MODES 
IN_MODE 
OUT_MODE 
ESS_MODE 
NB_MODES 

Definition at line 48 of file af_deesser.c.

Function Documentation

AVFILTER_DEFINE_CLASS ( deesser  )
static int query_formats ( AVFilterContext ctx)
static

Definition at line 71 of file af_deesser.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 100 of file af_deesser.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 118 of file af_deesser.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 209 of file af_deesser.c.

Variable Documentation

const AVOption deesser_options[]
static
Initial value:
= {
{ "i", "set intensity", OFFSET(intensity), AV_OPT_TYPE_DOUBLE, {.dbl=0.0}, 0.0, 1.0, A },
{ "m", "set max deessing", OFFSET(max), AV_OPT_TYPE_DOUBLE, {.dbl=0.5}, 0.0, 1.0, A },
{ "f", "set frequency", OFFSET(frequency), AV_OPT_TYPE_DOUBLE, {.dbl=0.5}, 0.0, 1.0, A },
{ "s", "set output mode", OFFSET(mode), AV_OPT_TYPE_INT, {.i64=OUT_MODE}, 0, NB_MODES-1, A, "mode" },
{ "i", "input", 0, AV_OPT_TYPE_CONST, {.i64=IN_MODE}, 0, 0, A, "mode" },
{ "o", "output", 0, AV_OPT_TYPE_CONST, {.i64=OUT_MODE}, 0, 0, A, "mode" },
{ "e", "ess", 0, AV_OPT_TYPE_CONST, {.i64=ESS_MODE}, 0, 0, A, "mode" },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define max(a, b)
Definition: cuda_runtime.h:33
#define OFFSET(x)
Definition: af_deesser.c:55
#define A
Definition: af_deesser.c:56
mode
Use these values in ebur128_init (or'ed).
Definition: ebur128.h:83

Definition at line 58 of file af_deesser.c.

const AVFilterPad inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
},
{ NULL }
}
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_deesser.c:118
static int config_input(AVFilterLink *inlink)
Definition: af_deesser.c:100

Definition at line 216 of file af_deesser.c.

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

Definition at line 226 of file af_deesser.c.

AVFilter ff_af_deesser
Initial value:
= {
.name = "deesser",
.description = NULL_IF_CONFIG_SMALL("Apply de-essing to the audio."),
.query_formats = query_formats,
.priv_size = sizeof(DeesserContext),
.priv_class = &deesser_class,
}
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_deesser.c:209
static const AVFilterPad outputs[]
Definition: af_deesser.c:226
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
static int query_formats(AVFilterContext *ctx)
Definition: af_deesser.c:71
static const AVFilterPad inputs[]
Definition: af_deesser.c:216
#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:133
#define flags(name, subs,...)
Definition: cbs_av1.c:561

Definition at line 234 of file af_deesser.c.