All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
af_earwax.c File Reference

Stereo Widening Effect. More...

#include "libavutil/channel_layout.h"
#include "avfilter.h"
#include "audio.h"
#include "formats.h"

Go to the source code of this file.

Data Structures

struct  EarwaxContext


#define NUMTAPS   64


static int query_formats (AVFilterContext *ctx)
static int16_t * scalarproduct (const int16_t *in, const int16_t *endin, int16_t *out)
static int filter_frame (AVFilterLink *inlink, AVFrame *insamples)


static const int8_t filt [NUMTAPS]
static const AVFilterPad earwax_inputs []
static const AVFilterPad earwax_outputs []
AVFilter ff_af_earwax

Detailed Description

Stereo Widening Effect.

Adds audio cues to move stereo image in front of the listener. Adapted from the libsox earwax effect.

Definition in file af_earwax.c.

Macro Definition Documentation

#define NUMTAPS   64

Definition at line 37 of file af_earwax.c.

Referenced by filter_frame(), and scalarproduct().

Function Documentation

static int query_formats ( AVFilterContext ctx)

Definition at line 78 of file af_earwax.c.

static int16_t* scalarproduct ( const int16_t *  in,
const int16_t *  endin,
int16_t *  out 

Definition at line 95 of file af_earwax.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 

Definition at line 112 of file af_earwax.c.

Variable Documentation

const int8_t filt[NUMTAPS]
const AVFilterPad earwax_inputs[]
Initial value:
= {
.name = "default",
.filter_frame = filter_frame,
{ NULL }
#define NULL
Definition: coverity.c:32
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
Definition: af_earwax.c:112

Definition at line 148 of file af_earwax.c.

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

Definition at line 157 of file af_earwax.c.

AVFilter ff_af_earwax
Initial value:
= {
.name = "earwax",
.description = NULL_IF_CONFIG_SMALL("Widen the stereo image."),
.query_formats = query_formats,
.priv_size = sizeof(EarwaxContext),
static const AVFilterPad earwax_outputs[]
Definition: af_earwax.c:157
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:248
static const AVFilterPad earwax_inputs[]
Definition: af_earwax.c:148
static int query_formats(AVFilterContext *ctx)
Definition: af_earwax.c:78
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:175
static const AVFilterPad inputs[]
Definition: af_ashowinfo.c:239

Definition at line 165 of file af_earwax.c.