FFmpeg
 All Data Structures 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
 

Macros

#define NUMTAPS   64
 

Functions

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

Variables

static const int8_t filt [NUMTAPS]
 
static const AVFilterPad earwax_inputs []
 
static const AVFilterPad earwax_outputs []
 
AVFilter avfilter_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)
static

Definition at line 78 of file af_earwax.c.

static int config_input ( AVFilterLink inlink)
static

Definition at line 94 of file af_earwax.c.

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

Definition at line 106 of file af_earwax.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef insamples 
)
static

Definition at line 123 of file af_earwax.c.

Variable Documentation

const int8_t filt[NUMTAPS]
static
const AVFilterPad earwax_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
.config_props = config_input,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 156 of file af_earwax.c.

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

Definition at line 167 of file af_earwax.c.

AVFilter avfilter_af_earwax
Initial value:
= {
.name = "earwax",
.description = NULL_IF_CONFIG_SMALL("Widen the stereo image."),
.query_formats = query_formats,
.priv_size = sizeof(EarwaxContext),
}

Definition at line 175 of file af_earwax.c.