FFmpeg
 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
 

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 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)
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 97 of file af_earwax.c.

Referenced by filter_frame().

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 114 of file af_earwax.c.

Variable Documentation

const int8_t filt[NUMTAPS]
static

Definition at line 39 of file af_earwax.c.

Referenced by apply_tns(), avfilter_insert_filter(), common_hv_2ht_2vt_4x4_msa(), common_hv_2ht_2vt_4x8_msa(), common_hv_2ht_2vt_8x4_msa(), common_hv_2ht_2vt_8x8mult_msa(), common_hv_2ht_2vt_and_aver_dst_4x4_msa(), common_hv_2ht_2vt_and_aver_dst_4x8_msa(), common_hv_2ht_2vt_and_aver_dst_8x4_msa(), common_hv_2ht_2vt_and_aver_dst_8x8mult_msa(), common_hv_8ht_8vt_4w_msa(), common_hv_8ht_8vt_8w_msa(), common_hv_8ht_8vt_and_aver_dst_4w_msa(), common_hv_8ht_8vt_and_aver_dst_8w_msa(), common_hz_2t_4x4_msa(), common_hz_2t_4x8_msa(), common_hz_2t_8x4_msa(), common_hz_2t_8x8mult_msa(), common_hz_2t_and_aver_dst_4x4_msa(), common_hz_2t_and_aver_dst_4x8_msa(), common_hz_2t_and_aver_dst_8x4_msa(), common_hz_2t_and_aver_dst_8x8mult_msa(), common_hz_4t_12w_msa(), common_hz_4t_16w_msa(), common_hz_4t_24w_msa(), common_hz_4t_32w_msa(), common_hz_4t_4x16_msa(), common_hz_4t_4x2_msa(), common_hz_4t_4x4_msa(), common_hz_4t_4x8_msa(), common_hz_4t_6w_msa(), common_hz_4t_8x2mult_msa(), common_hz_4t_8x4mult_msa(), common_hz_6t_4x4_msa(), common_hz_6t_4x8_msa(), common_hz_8t_12w_msa(), common_hz_8t_16w_msa(), common_hz_8t_24w_msa(), common_hz_8t_32w_msa(), common_hz_8t_48w_msa(), common_hz_8t_4x16_msa(), common_hz_8t_4x4_msa(), common_hz_8t_4x8_msa(), common_hz_8t_64w_msa(), common_hz_8t_8x4_msa(), common_hz_8t_8x8mult_msa(), common_hz_8t_and_aver_dst_16w_msa(), common_hz_8t_and_aver_dst_32w_msa(), common_hz_8t_and_aver_dst_4x4_msa(), common_hz_8t_and_aver_dst_4x8_msa(), common_hz_8t_and_aver_dst_64w_msa(), common_hz_8t_and_aver_dst_8w_msa(), common_vt_2t_4x4_msa(), common_vt_2t_4x8_msa(), common_vt_2t_8x4_msa(), common_vt_2t_8x8mult_msa(), common_vt_2t_and_aver_dst_4x4_msa(), common_vt_2t_and_aver_dst_4x8_msa(), common_vt_2t_and_aver_dst_8x4_msa(), common_vt_2t_and_aver_dst_8x8mult_msa(), common_vt_4t_12w_msa(), common_vt_4t_16w_msa(), common_vt_4t_24w_msa(), common_vt_4t_32w_mult_msa(), common_vt_4t_4x2_msa(), common_vt_4t_4x4multiple_msa(), common_vt_4t_6w_msa(), common_vt_4t_8x2_msa(), common_vt_4t_8x4mult_msa(), common_vt_4t_8x6_msa(), common_vt_8t_12w_msa(), common_vt_8t_16w_msa(), common_vt_8t_16w_mult_msa(), common_vt_8t_4w_msa(), common_vt_8t_8w_msa(), common_vt_8t_and_aver_dst_16w_mult_msa(), common_vt_8t_and_aver_dst_4w_msa(), common_vt_8t_and_aver_dst_8w_msa(), create_filter(), decode_tns(), ff_aac_apply_tns(), ff_aac_encode_tns_info(), ff_avg_bilin_16h_msa(), ff_avg_bilin_16hv_msa(), ff_avg_bilin_16v_msa(), ff_avg_bilin_32h_msa(), ff_avg_bilin_32v_msa(), ff_avg_bilin_64h_msa(), ff_avg_bilin_64v_msa(), ff_put_bilin_16h_msa(), ff_put_bilin_16hv_msa(), ff_put_bilin_16v_msa(), ff_put_bilin_32h_msa(), ff_put_bilin_32v_msa(), ff_put_bilin_64h_msa(), ff_put_bilin_64v_msa(), ff_put_vp8_bilinear16_h_msa(), ff_put_vp8_bilinear16_hv_msa(), ff_put_vp8_bilinear16_v_msa(), ff_put_vp8_epel16_h4_msa(), ff_put_vp8_epel16_h6_msa(), ff_put_vp8_epel16_v4_msa(), ff_put_vp8_epel16_v6_msa(), ff_put_vp8_epel4_h4v4_msa(), ff_put_vp8_epel4_h4v6_msa(), ff_put_vp8_epel4_h6v4_msa(), ff_put_vp8_epel4_h6v6_msa(), ff_put_vp8_epel4_v4_msa(), ff_put_vp8_epel4_v6_msa(), ff_put_vp8_epel8_h4_msa(), ff_put_vp8_epel8_h4v4_msa(), ff_put_vp8_epel8_h4v6_msa(), ff_put_vp8_epel8_h6_msa(), ff_put_vp8_epel8_h6v4_msa(), ff_put_vp8_epel8_h6v6_msa(), ff_put_vp8_epel8_v4_msa(), ff_put_vp8_epel8_v6_msa(), filter16_brng(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), graph_check_validity(), graph_config_links(), and scalarproduct().

const AVFilterPad earwax_inputs[]
static
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:114

Definition at line 150 of file af_earwax.c.

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

Definition at line 159 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:159
static const AVFilterPad earwax_inputs[]
Definition: af_earwax.c:150
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. ...
Definition: internal.h:179
static const AVFilterPad outputs[]
Definition: af_afftfilt.c:389
static const AVFilterPad inputs[]
Definition: af_afftfilt.c:379

Definition at line 167 of file af_earwax.c.