FFmpeg  4.0
Macros | Enumerations | Functions
window_func.h File Reference
#include <math.h>
#include "libavutil/avassert.h"

Go to the source code of this file.

Macros

#define SINC(x)   (!(x)) ? 1 : sin(M_PI * (x))/(M_PI * (x));
 
#define SQR(x)   ((x)*(x))
 

Enumerations

enum  WindowFunc {
  WFUNC_RECTANGULAR, WFUNC_HANN, WFUNC_HAMMING, WFUNC_BLACKMAN,
  WFUNC_NUTTALL3, WFUNC_MNUTTALL3, WFUNC_NUTTALL, WFUNC_BNUTTALL,
  WFUNC_BHARRIS, WFUNC_TUKEY, NB_WFUNC, WFUNC_RECT,
  WFUNC_HANNING, WFUNC_HAMMING, WFUNC_BLACKMAN, WFUNC_BARTLETT,
  WFUNC_WELCH, WFUNC_FLATTOP, WFUNC_BHARRIS, WFUNC_BNUTTALL,
  WFUNC_SINE, WFUNC_NUTTALL, WFUNC_BHANN, WFUNC_LANCZOS,
  WFUNC_GAUSS, WFUNC_TUKEY, WFUNC_DOLPH, WFUNC_CAUCHY,
  WFUNC_PARZEN, WFUNC_POISSON, NB_WFUNC
}
 

Functions

static void generate_window_func (float *lut, int N, int win_func, float *overlap)
 

Macro Definition Documentation

◆ SINC

#define SINC (   x)    (!(x)) ? 1 : sin(M_PI * (x))/(M_PI * (x));

Referenced by generate_window_func().

◆ SQR

#define SQR (   x)    ((x)*(x))

Referenced by generate_window_func().

Enumeration Type Documentation

◆ WindowFunc

enum WindowFunc
Enumerator
WFUNC_RECTANGULAR 
WFUNC_HANN 
WFUNC_HAMMING 
WFUNC_BLACKMAN 
WFUNC_NUTTALL3 
WFUNC_MNUTTALL3 
WFUNC_NUTTALL 
WFUNC_BNUTTALL 
WFUNC_BHARRIS 
WFUNC_TUKEY 
NB_WFUNC 
WFUNC_RECT 
WFUNC_HANNING 
WFUNC_HAMMING 
WFUNC_BLACKMAN 
WFUNC_BARTLETT 
WFUNC_WELCH 
WFUNC_FLATTOP 
WFUNC_BHARRIS 
WFUNC_BNUTTALL 
WFUNC_SINE 
WFUNC_NUTTALL 
WFUNC_BHANN 
WFUNC_LANCZOS 
WFUNC_GAUSS 
WFUNC_TUKEY 
WFUNC_DOLPH 
WFUNC_CAUCHY 
WFUNC_PARZEN 
WFUNC_POISSON 
NB_WFUNC 

Definition at line 28 of file window_func.h.

Function Documentation

◆ generate_window_func()

static void generate_window_func ( float *  lut,
int  N,
int  win_func,
float *  overlap 
)
inlinestatic

Definition at line 35 of file window_func.h.

Referenced by config_input(), config_output(), config_props(), and ff_opus_psy_init().