FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
af_aecho.c File Reference
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avfilter.h"
#include "audio.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  AudioEchoContext
 

Macros

#define OFFSET(x)   offsetof(AudioEchoContext, x)
 
#define A   AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
 
#define MOD(a, b)   (((a) >= (b)) ? (a) - (b) : (a))
 
#define ECHO(name, type, min, max)
 

Functions

 AVFILTER_DEFINE_CLASS (aecho)
 
static void count_items (char *item_str, int *nb_items)
 
static void fill_items (char *item_str, int *nb_items, float *items)
 
static av_cold void uninit (AVFilterContext *ctx)
 
static av_cold int init (AVFilterContext *ctx)
 
static int query_formats (AVFilterContext *ctx)
 
static int config_output (AVFilterLink *outlink)
 
static int filter_frame (AVFilterLink *inlink, AVFrame *frame)
 
static int request_frame (AVFilterLink *outlink)
 

Variables

static const AVOption aecho_options []
 
static const AVFilterPad aecho_inputs []
 
static const AVFilterPad aecho_outputs []
 
AVFilter ff_af_aecho
 

Macro Definition Documentation

#define OFFSET (   x)    offsetof(AudioEchoContext, x)

Definition at line 46 of file af_aecho.c.

Definition at line 47 of file af_aecho.c.

#define MOD (   a,
  b 
)    (((a) >= (b)) ? (a) - (b) : (a))

Definition at line 180 of file af_aecho.c.

#define ECHO (   name,
  type,
  min,
  max 
)

Definition at line 182 of file af_aecho.c.

Referenced by term_init().

Function Documentation

AVFILTER_DEFINE_CLASS ( aecho  )
static void count_items ( char *  item_str,
int *  nb_items 
)
static

Definition at line 59 of file af_aecho.c.

Referenced by init().

static void fill_items ( char *  item_str,
int *  nb_items,
float *  items 
)
static

Definition at line 71 of file af_aecho.c.

Referenced by init().

static av_cold void uninit ( AVFilterContext ctx)
static

Definition at line 86 of file af_aecho.c.

static av_cold int init ( AVFilterContext ctx)
static

Definition at line 99 of file af_aecho.c.

static int query_formats ( AVFilterContext ctx)
static

Definition at line 152 of file af_aecho.c.

static int config_output ( AVFilterLink outlink)
static

Definition at line 228 of file af_aecho.c.

static int filter_frame ( AVFilterLink inlink,
AVFrame frame 
)
static

Definition at line 269 of file af_aecho.c.

static int request_frame ( AVFilterLink outlink)
static

Definition at line 295 of file af_aecho.c.

Variable Documentation

const AVOption aecho_options[]
static
Initial value:
= {
{ "in_gain", "set signal input gain", OFFSET(in_gain), AV_OPT_TYPE_FLOAT, {.dbl=0.6}, 0, 1, A },
{ "out_gain", "set signal output gain", OFFSET(out_gain), AV_OPT_TYPE_FLOAT, {.dbl=0.3}, 0, 1, A },
{ "delays", "set list of signal delays", OFFSET(delays), AV_OPT_TYPE_STRING, {.str="1000"}, 0, 0, A },
{ "decays", "set list of signal decays", OFFSET(decays), AV_OPT_TYPE_STRING, {.str="0.5"}, 0, 0, A },
{ NULL }
}

Definition at line 49 of file af_aecho.c.

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

Definition at line 330 of file af_aecho.c.

const AVFilterPad aecho_outputs[]
static
Initial value:
= {
{
.name = "default",
.request_frame = request_frame,
.config_props = config_output,
},
{ NULL }
}

Definition at line 339 of file af_aecho.c.

AVFilter ff_af_aecho
Initial value:
= {
.name = "aecho",
.description = NULL_IF_CONFIG_SMALL("Add echoing to the audio."),
.query_formats = query_formats,
.priv_size = sizeof(AudioEchoContext),
.priv_class = &aecho_class,
.init = init,
}

Definition at line 349 of file af_aecho.c.