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 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 int16_t* scalarproduct ( const int16_t *  in,
const int16_t *  endin,
int16_t *  out 
)
inlinestatic

Definition at line 95 of file af_earwax.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFilterBufferRef insamples 
)
static

Definition at line 112 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,
.min_perms = AV_PERM_READ,
},
{ NULL }
}

Definition at line 145 of file af_earwax.c.

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

Definition at line 155 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 163 of file af_earwax.c.