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 void filter_flt (void **d, void **p, const void **s, int nb_samples, int channels, float mult, int clip)
 
static void filter_dbl (void **d, void **p, const void **s, int nb_samples, int channels, float mult, int clip)
 
static void filter_fltp (void **d, void **p, const void **s, int nb_samples, int channels, float mult, int clip)
 
static void filter_dblp (void **d, void **p, const void **s, int nb_samples, int channels, float mult, int clip)
 
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 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 36 of file af_crystalizer.c.

Definition at line 37 of file af_crystalizer.c.

Function Documentation

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

Definition at line 47 of file af_crystalizer.c.

static void filter_flt ( void **  d,
void **  p,
const void **  s,
int  nb_samples,
int  channels,
float  mult,
int  clip 
)
static

Definition at line 77 of file af_crystalizer.c.

Referenced by config_input().

static void filter_dbl ( void **  d,
void **  p,
const void **  s,
int  nb_samples,
int  channels,
float  mult,
int  clip 
)
static

Definition at line 102 of file af_crystalizer.c.

Referenced by config_input().

static void filter_fltp ( void **  d,
void **  p,
const void **  s,
int  nb_samples,
int  channels,
float  mult,
int  clip 
)
static

Definition at line 127 of file af_crystalizer.c.

Referenced by config_input().

static void filter_dblp ( void **  d,
void **  p,
const void **  s,
int  nb_samples,
int  channels,
float  mult,
int  clip 
)
static

Definition at line 150 of file af_crystalizer.c.

Referenced by config_input().

static int config_input ( AVFilterLink inlink)
static

Definition at line 173 of file af_crystalizer.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame in 
)
static

Definition at line 188 of file af_crystalizer.c.

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 223 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)
static int16_t mult(Float11 *f1, Float11 *f2)
Definition: g726.c:55
#define A
static double clip(void *opaque, double val)
Clip value val in the minval - maxval range.
Definition: vf_lut.c:162

Definition at line 39 of file af_crystalizer.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)
static int config_input(AVFilterLink *inlink)

Definition at line 230 of file af_crystalizer.c.

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

Definition at line 240 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:186
static int query_formats(AVFilterContext *ctx)
static const AVFilterPad outputs[]
static const AVFilterPad inputs[]
static av_cold void uninit(AVFilterContext *ctx)

Definition at line 248 of file af_crystalizer.c.