libavfilter/af_earwax.c File Reference

Stereo Widening Effect. More...

#include "libavutil/audioconvert.h"
#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  EarwaxContext

Defines

#define NUMTAPS   64

Functions

static int query_formats (AVFilterContext *ctx)
static int config_input (AVFilterLink *inlink)
static int16_tscalarproduct (const int16_t *in, const int16_t *endin, int16_t *out)
static void filter_samples (AVFilterLink *inlink, AVFilterBufferRef *insamples)

Variables

static const int8_t filt [NUMTAPS]
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.


Define Documentation

#define NUMTAPS   64

Definition at line 35 of file af_earwax.c.

Referenced by filter_samples(), and scalarproduct().


Function Documentation

static int config_input ( AVFilterLink inlink  )  [static]

Definition at line 91 of file af_earwax.c.

Referenced by command().

static void filter_samples ( AVFilterLink inlink,
AVFilterBufferRef insamples 
) [static]

Definition at line 120 of file af_earwax.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 76 of file af_earwax.c.

static int16_t* scalarproduct ( const int16_t in,
const int16_t endin,
int16_t out 
) [inline, static]

Definition at line 103 of file af_earwax.c.

Referenced by filter_samples().


Variable Documentation

Initial value:

 {
    .name           = "earwax",
    .description    = NULL_IF_CONFIG_SMALL("Widen the stereo image."),
    .query_formats  = query_formats,
    .priv_size      = sizeof(EarwaxContext),
    .inputs  = (const AVFilterPad[])  {{  .name     = "default",
                                    .type           = AVMEDIA_TYPE_AUDIO,
                                    .filter_samples = filter_samples,
                                    .config_props   = config_input,
                                    .min_perms      = AV_PERM_READ, },
                                 {  .name = NULL}},

    .outputs = (const AVFilterPad[])  {{  .name     = "default",
                                    .type           = AVMEDIA_TYPE_AUDIO, },
                                 {  .name = NULL}},
}

Definition at line 148 of file af_earwax.c.

const int8_t filt[NUMTAPS] [static]


Generated on Fri Oct 26 02:46:11 2012 for FFmpeg by  doxygen 1.5.8