FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mdct_template.c File Reference

MDCT/IMDCT transforms. More...

#include <stdlib.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/mathematics.h"
#include "fft.h"
#include "fft-internal.h"

Go to the source code of this file.

Macros

#define RSCALE(x)   (x)
 

Functions

av_cold int ff_mdct_init (FFTContext *s, int nbits, int inverse, double scale)
 init MDCT or IMDCT computation.
 
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.
 
void ff_imdct_calc_c (FFTContext *s, FFTSample *output, const FFTSample *input)
 Compute inverse MDCT of size N = 2^nbits.
 
void ff_mdct_calc_c (FFTContext *s, FFTSample *out, const FFTSample *input)
 Compute MDCT of size N = 2^nbits.
 
av_cold void ff_mdct_end (FFTContext *s)
 

Detailed Description

MDCT/IMDCT transforms.

Definition in file mdct_template.c.

Macro Definition Documentation

#define RSCALE (   x)    (x)

Definition at line 35 of file mdct_template.c.

Referenced by ff_mdct_calc_c(), and ff_mdct_calcw_c().

Function Documentation

av_cold int ff_mdct_init ( FFTContext s,
int  nbits,
int  inverse,
double  scale 
)

init MDCT or IMDCT computation.

Definition at line 47 of file mdct_template.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 99 of file mdct_template.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 141 of file mdct_template.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 161 of file mdct_template.c.

av_cold void ff_mdct_end ( FFTContext s)

Definition at line 203 of file mdct_template.c.