af_earwax.c File Reference

Stereo Widening Effect. More...

#include "libavutil/channel_layout.h"
#include "avfilter.h"
#include "audio.h"
#include "formats.h"
Include dependency graph for af_earwax.c:

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, AVFrame *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 filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 112 of file af_earwax.c.

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().

Variable Documentation

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),
}
static const AVFilterPad earwax_outputs[]
Definition: af_earwax.c:152
static const AVFilterPad outputs[]
Definition: af_ashowinfo.c:117
static const AVFilterPad earwax_inputs[]
Definition: af_earwax.c:143
static int query_formats(AVFilterContext *ctx)
Definition: af_earwax.c:78
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs

Definition at line 160 of file af_earwax.c.

const AVFilterPad earwax_inputs[]
static
Initial value:
= {
{
.name = "default",
.filter_frame = filter_frame,
},
{ NULL }
}
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
Definition: af_earwax.c:112
NULL
Definition: eval.c:55

Definition at line 143 of file af_earwax.c.

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

Definition at line 152 of file af_earwax.c.