Macros | Functions
afir_template.c File Reference
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "audio.h"

Go to the source code of this file.


#define SAMPLE_FORMAT   double
#define SQRT   sqrt
#define ctype   AVComplexDouble
#define ftype   double
#define fn3(a, b)   a##_##b
#define fn2(a, b)   fn3(a,b)
#define fn(a)   fn2(a, SAMPLE_FORMAT)


static void fn() draw_response (AVFilterContext *ctx, AVFrame *out)
static void fn() convert_channels (AVFilterContext *ctx, AudioFIRContext *s)
static int fn() get_power (AVFilterContext *ctx, AudioFIRContext *s, int cur_nb_taps)
static void fn() direct (const ftype *in, const ctype *ir, int len, ftype *out)
static void fn() fir_fadd (AudioFIRContext *s, ftype *dst, const ftype *src, int nb_samples)
static int fn() fir_quantum (AVFilterContext *ctx, AVFrame *out, int ch, int offset)

Macro Definition Documentation


#define SAMPLE_FORMAT   double

Definition at line 36 of file afir_template.c.


#define SQRT   sqrt

Definition at line 37 of file afir_template.c.

◆ ctype

#define ctype   AVComplexDouble

Definition at line 38 of file afir_template.c.

◆ ftype

#define ftype   double

Definition at line 39 of file afir_template.c.

◆ fn3

#define fn3 (   a,
)    a##_##b

Definition at line 42 of file afir_template.c.

◆ fn2

#define fn2 (   a,
)    fn3(a,b)

Definition at line 43 of file afir_template.c.

◆ fn

#define fn (   a)    fn2(a, SAMPLE_FORMAT)

Definition at line 44 of file afir_template.c.

Function Documentation

◆ draw_response()

static void fn() draw_response ( AVFilterContext ctx,
AVFrame out 

Definition at line 46 of file afir_template.c.

◆ convert_channels()

static void fn() convert_channels ( AVFilterContext ctx,
AudioFIRContext s 

Definition at line 135 of file afir_template.c.

◆ get_power()

static int fn() get_power ( AVFilterContext ctx,
AudioFIRContext s,
int  cur_nb_taps 

Definition at line 191 of file afir_template.c.

◆ direct()

static void fn() direct ( const ftype in,
const ctype ir,
int  len,
ftype out 

◆ fir_fadd()

static void fn() fir_fadd ( AudioFIRContext s,
ftype dst,
const ftype src,
int  nb_samples 

Definition at line 255 of file afir_template.c.

Referenced by fir_quantum().

◆ fir_quantum()

static int fn() fir_quantum ( AVFilterContext ctx,
AVFrame out,
int  ch,
int  offset 

Definition at line 269 of file afir_template.c.