FFmpeg
Loading...
Searching...
No Matches
afir_template.c File Reference
#include "libavutil/tx.h"
#include "avfilter.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)
 
#define fn2(a, b)
 
#define fn(a)
 

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 43 of file afir_template.c.

◆ SQRT

#define SQRT   sqrt

Definition at line 44 of file afir_template.c.

◆ HYPOT

#define HYPOT   hypot

Definition at line 45 of file afir_template.c.

◆ ctype

◆ ftype

#define ftype   double

Definition at line 47 of file afir_template.c.

◆ TX_TYPE

◆ FABS

#define FABS   fabs

Definition at line 49 of file afir_template.c.

Referenced by ir_gain().

◆ POW

#define POW   pow

Definition at line 50 of file afir_template.c.

Referenced by ir_gain().

◆ fn3

#define fn3 ( a,
b )
Value:
a##_##b
#define _
int a
#define b
Definition input.c:43

Definition at line 53 of file afir_template.c.

◆ fn2

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

Definition at line 54 of file afir_template.c.

◆ fn

#define fn ( a)
Value:
#define SAMPLE_FORMAT
#define fn2(a, b)

Definition at line 55 of file afir_template.c.

Referenced by fir_quantum(), and fir_quantums().

Function Documentation

◆ ir_gain()

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

Definition at line 57 of file afir_template.c.

Referenced by ir_gain().

◆ 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 79 of file afir_template.c.

Referenced by ir_scale().

◆ convert_channel()

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

Definition at line 95 of file afir_template.c.

Referenced by convert_channel().

◆ fir_fadd()

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

Definition at line 123 of file afir_template.c.

Referenced by fir_fadd(), and 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 137 of file afir_template.c.

Referenced by fir_quantum(), and 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 245 of file afir_template.c.

Referenced by fir_quantums().