FFmpeg
Data Structures | Macros | Functions | Variables
af_earwax.c File Reference
#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

◆ NUMTAPS

#define NUMTAPS   64

Definition at line 37 of file af_earwax.c.

Function Documentation

◆ query_formats()

static int query_formats ( AVFilterContext ctx)
static

Definition at line 78 of file af_earwax.c.

◆ scalarproduct()

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

◆ filter_frame()

static int filter_frame ( AVFilterLink inlink,
AVFrame insamples 
)
static

Definition at line 114 of file af_earwax.c.

Variable Documentation

◆ filt

const int8_t filt[NUMTAPS]
static

Definition at line 39 of file af_earwax.c.

Referenced by apply_tns(), avfilter_graph_create_filter(), 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_8w_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_16w_msa(), common_vt_4t_24w_msa(), common_vt_4t_32w_msa(), common_vt_4t_4x2_msa(), common_vt_4t_4x4multiple_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(), ff_vk_init_sampler(), filter16_brng(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), graph_check_validity(), graph_config_links(), and scalarproduct().

◆ earwax_inputs

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

Definition at line 150 of file af_earwax.c.

◆ earwax_outputs

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

Definition at line 159 of file af_earwax.c.

◆ ff_af_earwax

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),
}

Definition at line 167 of file af_earwax.c.

earwax_inputs
static const AVFilterPad earwax_inputs[]
Definition: af_earwax.c:150
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
earwax_outputs
static const AVFilterPad earwax_outputs[]
Definition: af_earwax.c:159
outputs
static const AVFilterPad outputs[]
Definition: af_acontrast.c:203
filter_frame
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
Definition: af_earwax.c:114
NULL
#define NULL
Definition: coverity.c:32
inputs
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: filter_design.txt:243
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:188
query_formats
static int query_formats(AVFilterContext *ctx)
Definition: af_earwax.c:78
EarwaxContext
Definition: af_earwax.c:74