FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
af_crystalizer.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  CrystalizerContext
 

Macros

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

Functions

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

Variables

static const AVOption crystalizer_options []
 
static const AVFilterPad inputs []
 
static const AVFilterPad outputs []
 
AVFilter ff_af_crystalizer
 

Macro Definition Documentation

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

Definition at line 34 of file af_crystalizer.c.

Definition at line 35 of file af_crystalizer.c.

Function Documentation

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

Definition at line 45 of file af_crystalizer.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 67 of file af_crystalizer.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 120 of file af_crystalizer.c.

Variable Documentation

const AVOption crystalizer_options[]
static
Initial value:
= {
{ "i", "set intensity", OFFSET(mult), AV_OPT_TYPE_FLOAT, {.dbl=2.0}, 0, 10, A },
{ "c", "enable clipping", OFFSET(clip), AV_OPT_TYPE_BOOL, {.i64=1}, 0, 1, A },
{ NULL }
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define A
static int16_t mult(Float11 *f1, Float11 *f2)
Definition: g726.c:55
static double clip(void *opaque, double val)
Clip value val in the minval - maxval range.
Definition: vf_lut.c:157

Definition at line 37 of file af_crystalizer.c.

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

Definition at line 127 of file af_crystalizer.c.

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

Definition at line 136 of file af_crystalizer.c.

AVFilter ff_af_crystalizer
Initial value:
= {
.name = "crystalizer",
.description = NULL_IF_CONFIG_SMALL("Simple expand audio dynamic range filter."),
.query_formats = query_formats,
.priv_size = sizeof(CrystalizerContext),
.priv_class = &crystalizer_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
static av_cold void uninit(AVFilterContext *ctx)

Definition at line 144 of file af_crystalizer.c.