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 FABS   fabs
 
#define POW   pow
 
#define fn3(a, b)   a##_##b
 
#define fn2(a, b)   fn3(a,b)
 
#define fn(a)   fn2(a, SAMPLE_FORMAT)
 

Functions

static ftype fn() ir_gain (AVFilterContext *ctx, AudioFIRContext *s, int cur_nb_taps, const ftype *time)
 
static void fn() ir_scale (AVFilterContext *ctx, AudioFIRContext *s, int cur_nb_taps, int ch, ftype *time, ftype ch_gain)
 
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)
 
static void fn() fir_quantums (AVFilterContext *ctx, AudioFIRContext *s, AVFrame *out, int min_part_size, int ch, int offset, int prev_selir, int selir)
 

Macro Definition Documentation

◆ SAMPLE_FORMAT

#define SAMPLE_FORMAT   double

Definition at line 44 of file afir_template.c.

◆ SQRT

#define SQRT   sqrt

Definition at line 45 of file afir_template.c.

◆ HYPOT

#define HYPOT   hypot

Definition at line 46 of file afir_template.c.

◆ ctype

#define ctype   AVComplexDouble

Definition at line 47 of file afir_template.c.

◆ ftype

#define ftype   double

Definition at line 48 of file afir_template.c.

◆ TX_TYPE

#define TX_TYPE   AV_TX_DOUBLE_RDFT

Definition at line 49 of file afir_template.c.

◆ FABS

#define FABS   fabs

Definition at line 50 of file afir_template.c.

◆ POW

#define POW   pow

Definition at line 51 of file afir_template.c.

◆ fn3

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

Definition at line 54 of file afir_template.c.

◆ fn2

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

Definition at line 55 of file afir_template.c.

◆ fn

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

Definition at line 56 of file afir_template.c.

Function Documentation

◆ ir_gain()

static ftype fn() ir_gain ( AVFilterContext ctx,
AudioFIRContext s,
int  cur_nb_taps,
const ftype time 
)
static

Definition at line 58 of file afir_template.c.

◆ ir_scale()

static void fn() ir_scale ( AVFilterContext ctx,
AudioFIRContext s,
int  cur_nb_taps,
int  ch,
ftype time,
ftype  ch_gain 
)
static

Definition at line 80 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 96 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 124 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 138 of file afir_template.c.

Referenced by fir_quantums().

◆ fir_quantums()

static void fn() fir_quantums ( AVFilterContext ctx,
AudioFIRContext s,
AVFrame out,
int  min_part_size,
int  ch,
int  offset,
int  prev_selir,
int  selir 
)
static

Definition at line 246 of file afir_template.c.