FFmpeg
Macros | Functions
dialoguenhance_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 ONE   1.0
 
#define ZERO   0.0
 
#define HALF   0.5
 
#define SIN   sin
 
#define CLIP   av_clipd
 
#define EPSILON   DBL_EPSILON
 
#define fn3(a, b)   a##_##b
 
#define fn2(a, b)   fn3(a,b)
 
#define fn(a)   fn2(a, SAMPLE_FORMAT)
 

Functions

static int fn() de_tx_init (AVFilterContext *ctx)
 
static void fn() apply_window (AudioDialogueEnhanceContext *s, const ftype *in_frame, ftype *out_frame, const int add_to_out_frame)
 
static ftype fn() sqr (ftype x)
 
static void fn() get_centere (ctype *left, ctype *right, ctype *center, int N)
 
static ftype fn() flux (ftype *curf, ftype *prevf, int N)
 
static ftype fn() fluxlr (ftype *lf, ftype *lpf, ftype *rf, ftype *rpf, int N)
 
static ftype fn() calc_vad (ftype fc, ftype flr, ftype a)
 
static void fn() get_final (ftype *c, ftype *l, ftype *r, ftype vad, int N, ftype original, ftype enhance)
 
static int fn() de_stereo (AVFilterContext *ctx, AVFrame *out)
 

Macro Definition Documentation

◆ SAMPLE_FORMAT

#define SAMPLE_FORMAT   double

Definition at line 50 of file dialoguenhance_template.c.

◆ SQRT

#define SQRT   sqrt

Definition at line 51 of file dialoguenhance_template.c.

◆ HYPOT

#define HYPOT   hypot

Definition at line 52 of file dialoguenhance_template.c.

◆ ctype

#define ctype   AVComplexDouble

Definition at line 53 of file dialoguenhance_template.c.

◆ ftype

#define ftype   double

Definition at line 54 of file dialoguenhance_template.c.

◆ TX_TYPE

#define TX_TYPE   AV_TX_DOUBLE_RDFT

Definition at line 55 of file dialoguenhance_template.c.

◆ ONE

#define ONE   1.0

Definition at line 56 of file dialoguenhance_template.c.

◆ ZERO

#define ZERO   0.0

Definition at line 57 of file dialoguenhance_template.c.

◆ HALF

#define HALF   0.5

Definition at line 58 of file dialoguenhance_template.c.

◆ SIN

#define SIN   sin

Definition at line 59 of file dialoguenhance_template.c.

◆ CLIP

#define CLIP   av_clipd

Definition at line 60 of file dialoguenhance_template.c.

◆ EPSILON

#define EPSILON   DBL_EPSILON

Definition at line 61 of file dialoguenhance_template.c.

◆ fn3

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

Definition at line 64 of file dialoguenhance_template.c.

◆ fn2

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

Definition at line 65 of file dialoguenhance_template.c.

◆ fn

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

Definition at line 66 of file dialoguenhance_template.c.

Function Documentation

◆ de_tx_init()

static int fn() de_tx_init ( AVFilterContext ctx)
static

Definition at line 68 of file dialoguenhance_template.c.

◆ apply_window()

static void fn() apply_window ( AudioDialogueEnhanceContext *  s,
const ftype in_frame,
ftype out_frame,
const int  add_to_out_frame 
)
static

Definition at line 96 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ sqr()

static ftype fn() sqr ( ftype  x)
static

Definition at line 111 of file dialoguenhance_template.c.

Referenced by flux(), fluxlr(), get_centere(), and get_final().

◆ get_centere()

static void fn() get_centere ( ctype left,
ctype right,
ctype center,
int  N 
)
static

Definition at line 116 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ flux()

static ftype fn() flux ( ftype curf,
ftype prevf,
int  N 
)
static

Definition at line 132 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ fluxlr()

static ftype fn() fluxlr ( ftype lf,
ftype lpf,
ftype rf,
ftype rpf,
int  N 
)
static

Definition at line 150 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ calc_vad()

static ftype fn() calc_vad ( ftype  fc,
ftype  flr,
ftype  a 
)
static

Definition at line 172 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ get_final()

static void fn() get_final ( ftype c,
ftype l,
ftype r,
ftype  vad,
int  N,
ftype  original,
ftype  enhance 
)
static

Definition at line 179 of file dialoguenhance_template.c.

Referenced by de_stereo().

◆ de_stereo()

static int fn() de_stereo ( AVFilterContext ctx,
AVFrame out 
)
static

Definition at line 201 of file dialoguenhance_template.c.