FFmpeg
Macros | Functions
afir_template.c File Reference
#include "libavutil/tx.h"
#include "avfilter.h"
#include "internal.h"
#include "audio.h"

Go to the source code of this file.

Macros

#define SAMPLE_FORMAT   double
 
#define SQRT   sqrt
 
#define HYPOT   hypot
 
#define ctype   AVComplexDouble
 
#define ftype   double
 
#define TX_TYPE   AV_TX_DOUBLE_RDFT
 
#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 int fn() get_power (AVFilterContext *ctx, AudioFIRContext *s, int cur_nb_taps, int ch, ftype *time)
 
static void fn() convert_channel (AVFilterContext *ctx, AudioFIRContext *s, int ch, AudioFIRSegment *seg, int coeff_partition, int selir)
 
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 ioffset, int offset, int selir)
 

Macro Definition Documentation

◆ SAMPLE_FORMAT

#define SAMPLE_FORMAT   double

Definition at line 40 of file afir_template.c.

◆ SQRT

#define SQRT   sqrt

Definition at line 41 of file afir_template.c.

◆ HYPOT

#define HYPOT   hypot

Definition at line 42 of file afir_template.c.

◆ ctype

#define ctype   AVComplexDouble

Definition at line 43 of file afir_template.c.

◆ ftype

#define ftype   double

Definition at line 44 of file afir_template.c.

◆ TX_TYPE

#define TX_TYPE   AV_TX_DOUBLE_RDFT

Definition at line 45 of file afir_template.c.

◆ fn3

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

Definition at line 48 of file afir_template.c.

◆ fn2

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

Definition at line 49 of file afir_template.c.

◆ fn

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

Definition at line 50 of file afir_template.c.

Function Documentation

◆ draw_response()

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

Definition at line 52 of file afir_template.c.

◆ get_power()

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

Definition at line 142 of file afir_template.c.

◆ convert_channel()

static void fn() convert_channel ( AVFilterContext ctx,
AudioFIRContext s,
int  ch,
AudioFIRSegment seg,
int  coeff_partition,
int  selir 
)
static

Definition at line 245 of file afir_template.c.

◆ fir_fadd()

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

Definition at line 273 of file afir_template.c.

Referenced by fir_quantum().

◆ fir_quantum()

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

Definition at line 287 of file afir_template.c.