FFmpeg
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.

Macros

#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)
 

Functions

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

◆ SAMPLE_FORMAT

#define SAMPLE_FORMAT   double

Definition at line 36 of file afir_template.c.

◆ SQRT

#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,
  b 
)    a##_##b

Definition at line 42 of file afir_template.c.

◆ fn2

#define fn2 (   a,
  b 
)    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 
)
static

Definition at line 46 of file afir_template.c.

◆ convert_channels()

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

Definition at line 135 of file afir_template.c.

◆ get_power()

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

Definition at line 191 of file afir_template.c.

◆ direct()

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

◆ fir_fadd()

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

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 
)
static

Definition at line 269 of file afir_template.c.