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

◆ OFFSET

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

Definition at line 55 of file af_deesser.c.

◆ A

Definition at line 56 of file af_deesser.c.

Enumeration Type Documentation

◆ OutModes

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()

AVFILTER_DEFINE_CLASS ( deesser  )

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 71 of file af_deesser.c.

◆ config_input()

static int config_input ( AVFilterLink inlink)
static

Definition at line 100 of file af_deesser.c.

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 118 of file af_deesser.c.

◆ uninit()

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 209 of file af_deesser.c.

Variable Documentation

◆ deesser_options

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 }
}

Definition at line 58 of file af_deesser.c.

◆ inputs

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

Definition at line 216 of file af_deesser.c.

◆ outputs

const AVFilterPad outputs[]
static
Initial value:
= {
{
.name = "default",
},
{ NULL }
}

Definition at line 226 of file af_deesser.c.

◆ ff_af_deesser

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,
}

Definition at line 234 of file af_deesser.c.

config_input
static int config_input(AVFilterLink *inlink)
Definition: af_deesser.c:100
max
#define max(a, b)
Definition: cuda_runtime.h:33
uninit
static av_cold void uninit(AVFilterContext *ctx)
Definition: af_deesser.c:209
NB_MODES
@ NB_MODES
Definition: af_deesser.c:52
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: af_deesser.c:71
IN_MODE
@ IN_MODE
Definition: af_deesser.c:49
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
Definition: af_deesser.c:118
inputs
static const AVFilterPad inputs[]
Definition: af_deesser.c:216
outputs
static const AVFilterPad outputs[]
Definition: af_deesser.c:226
AV_OPT_TYPE_DOUBLE
@ AV_OPT_TYPE_DOUBLE
Definition: opt.h:225
A
#define A
Definition: af_deesser.c:56
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
NULL
#define NULL
Definition: coverity.c:32
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:188
OFFSET
#define OFFSET(x)
Definition: af_deesser.c:55
OUT_MODE
@ OUT_MODE
Definition: af_deesser.c:50
mode
mode
Definition: ebur128.h:83
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:223
ESS_MODE
@ ESS_MODE
Definition: af_deesser.c:51
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:133
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:565
DeesserContext
Definition: af_deesser.c:37
AV_OPT_TYPE_CONST
@ AV_OPT_TYPE_CONST
Definition: opt.h:232