FFmpeg
Macros | Functions | Variables
sinewin_tablegen.h File Reference
#include <assert.h>
#include <math.h>
#include "libavutil/attributes.h"
#include "libavutil/common.h"
#include "libavutil/thread.h"

Go to the source code of this file.

Macros

#define INIT_FF_SINE_WINDOW_INIT_FUNC(index)
 

Functions

 SINETABLE (32)
 
 SINETABLE (64)
 
 SINETABLE (128)
 
 SINETABLE (256)
 
 SINETABLE (512)
 
 SINETABLE (1024)
 
 SINETABLE (2048)
 
 SINETABLE (4096)
 
 SINETABLE (8192)
 
av_cold void ff_sine_window_init (float *window, int n)
 Generate a sine window. More...
 
av_cold void ff_init_ff_sine_windows (int index)
 initialize the specified entry of ff_sine_windows More...
 

Variables

SINETABLE_CONST float *const ff_sine_windows []
 
static void(*const sine_window_init_func_array [])(void)
 
static AVOnce init_sine_window_once [9]
 

Macro Definition Documentation

◆ INIT_FF_SINE_WINDOW_INIT_FUNC

#define INIT_FF_SINE_WINDOW_INIT_FUNC (   index)
Value:
static void init_ff_sine_window_ ## index(void) \
{ \
ff_sine_window_init(ff_sine_windows[index], 1 << index);\
}

Definition at line 67 of file sinewin_tablegen.h.

Function Documentation

◆ SINETABLE() [1/9]

SINETABLE ( 32  )

◆ SINETABLE() [2/9]

SINETABLE ( 64  )

◆ SINETABLE() [3/9]

SINETABLE ( 128  )

◆ SINETABLE() [4/9]

SINETABLE ( 256  )

◆ SINETABLE() [5/9]

SINETABLE ( 512  )

◆ SINETABLE() [6/9]

SINETABLE ( 1024  )

◆ SINETABLE() [7/9]

SINETABLE ( 2048  )

◆ SINETABLE() [8/9]

SINETABLE ( 4096  )

◆ SINETABLE() [9/9]

SINETABLE ( 8192  )

◆ ff_sine_window_init()

av_cold void ff_sine_window_init ( float window,
int  n 
)

Generate a sine window.

Parameters
windowpointer to half window
nsize of half window

Definition at line 59 of file sinewin_tablegen.h.

Referenced by ff_init_ff_sine_windows(), imc_decode_init(), init_cook_mlt(), init_tables_float_fn(), and wmavoice_decode_init().

◆ ff_init_ff_sine_windows()

av_cold void ff_init_ff_sine_windows ( int  index)

Variable Documentation

◆ ff_sine_windows

SINETABLE_CONST float* const ff_sine_windows[]
Initial value:
= {
ff_sine_32, ff_sine_64, ff_sine_128,
ff_sine_256, ff_sine_512, ff_sine_1024,
ff_sine_2048, ff_sine_4096, ff_sine_8192,
}

Definition at line 51 of file sinewin_tablegen.h.

Referenced by decode_init(), ff_init_ff_sine_windows(), ff_wma_init(), imdct_and_window(), and main().

◆ sine_window_init_func_array

void(*const sine_window_init_func_array[])(void)
static
Initial value:
= {
init_ff_sine_window_5,
init_ff_sine_window_6,
init_ff_sine_window_7,
init_ff_sine_window_8,
init_ff_sine_window_9,
init_ff_sine_window_10,
init_ff_sine_window_11,
init_ff_sine_window_12,
init_ff_sine_window_13,
}

Definition at line 83 of file sinewin_tablegen.h.

Referenced by ff_init_ff_sine_windows().

◆ init_sine_window_once

AVOnce init_sine_window_once[9]
static
ff_sine_windows
SINETABLE_CONST float *const ff_sine_windows[]
Definition: sinewin_tablegen.h:51
AV_ONCE_INIT
#define AV_ONCE_INIT
Definition: thread.h:203
NULL
#define NULL
Definition: coverity.c:32
index
int index
Definition: gxfenc.c:90