#include <math.h>
#include "libavutil/avassert.h"
 
Go to the source code of this file.
 | 
| #define  | SINC(x)   (!(x)) ? 1 : sin(M_PI * (x))/(M_PI * (x)); | 
|   | 
| #define  | SQR(x)   ((x)*(x)) | 
|   | 
 | 
| 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, 
WFUNC_BOHMAN, 
NB_WFUNC
 
 } | 
|   | 
◆ SINC
      
        
          | #define SINC | 
          ( | 
            | 
          x | ) | 
             (!(x)) ? 1 : sin(M_PI * (x))/(M_PI * (x)); | 
        
      
 
 
◆ SQR
      
        
          | #define SQR | 
          ( | 
            | 
          x | ) | 
             ((x)*(x)) | 
        
      
 
 
◆ 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  |  | 
| WFUNC_BOHMAN  |  | 
| NB_WFUNC  |  | 
Definition at line 28 of file window_func.h.
 
 
◆ generate_window_func()
  
  
      
        
          | static void generate_window_func  | 
          ( | 
          float *  | 
          lut,  | 
         
        
           | 
           | 
          int  | 
          N,  | 
         
        
           | 
           | 
          int  | 
          win_func,  | 
         
        
           | 
           | 
          float *  | 
          overlap  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   |