FFmpeg
Macros | Functions
fft-internal.h File Reference

Go to the source code of this file.

Macros

#define SCALE_FLOAT(a, bits)   lrint((a) * (double)(1 << (bits)))
 
#define ff_imdct_calc_c   FFT_NAME(ff_imdct_calc_c)
 
#define ff_imdct_half_c   FFT_NAME(ff_imdct_half_c)
 
#define ff_mdct_calc_c   FFT_NAME(ff_mdct_calc_c)
 

Functions

void ff_imdct_calc_c (FFTContext *s, FFTSample *output, const FFTSample *input)
 Compute inverse MDCT of size N = 2^nbits. More...
 
void ff_imdct_half_c (FFTContext *s, FFTSample *output, const FFTSample *input)
 Compute the middle half of the inverse MDCT of size N = 2^nbits, thus excluding the parts that can be derived by symmetry. More...
 
void ff_mdct_calc_c (FFTContext *s, FFTSample *output, const FFTSample *input)
 Compute MDCT of size N = 2^nbits. More...
 

Macro Definition Documentation

◆ SCALE_FLOAT

#define SCALE_FLOAT (   a,
  bits 
)    lrint((a) * (double)(1 << (bits)))

Definition at line 39 of file fft-internal.h.

◆ ff_imdct_calc_c

#define ff_imdct_calc_c   FFT_NAME(ff_imdct_calc_c)

Definition at line 59 of file fft-internal.h.

◆ ff_imdct_half_c

#define ff_imdct_half_c   FFT_NAME(ff_imdct_half_c)

Definition at line 60 of file fft-internal.h.

◆ ff_mdct_calc_c

#define ff_mdct_calc_c   FFT_NAME(ff_mdct_calc_c)

Definition at line 61 of file fft-internal.h.

Function Documentation

◆ ff_imdct_calc_c()

void ff_imdct_calc_c ( FFTContext s,
FFTSample output,
const FFTSample input 
)

Compute inverse MDCT of size N = 2^nbits.

Parameters
outputN samples
inputN/2 samples

Definition at line 147 of file mdct_template.c.

◆ ff_imdct_half_c()

void ff_imdct_half_c ( FFTContext s,
FFTSample output,
const FFTSample input 
)

Compute the middle half of the inverse MDCT of size N = 2^nbits, thus excluding the parts that can be derived by symmetry.

Parameters
outputN/2 samples
inputN/2 samples

Definition at line 105 of file mdct_template.c.

Referenced by ff_imdct_calc_c().

◆ ff_mdct_calc_c()

void ff_mdct_calc_c ( FFTContext s,
FFTSample out,
const FFTSample input 
)

Compute MDCT of size N = 2^nbits.

Parameters
inputN samples
outN/2 samples

Definition at line 167 of file mdct_template.c.