libavcodec/mdct.c File Reference

MDCT/IMDCT transforms. More...

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

Go to the source code of this file.

Defines

#define CMUL(pre, pim, are, aim, bre, bim)

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.c.


Define Documentation

#define CMUL ( pre,
pim,
are,
aim,
bre,
bim   ) 

Value:

{\
    FFTSample _are = (are);\
    FFTSample _aim = (aim);\
    FFTSample _bre = (bre);\
    FFTSample _bim = (bim);\
    (pre) = _are * _bre - _aim * _bim;\
    (pim) = _are * _bim + _aim * _bre;\
}

Definition at line 83 of file mdct.c.


Function Documentation

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

Compute inverse MDCT of size N = 2^nbits.

Parameters:
output N samples
input N/2 samples

Definition at line 141 of file mdct.c.

Referenced by ff_fft_init().

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:
output N/2 samples
input N/2 samples

Definition at line 99 of file mdct.c.

Referenced by ff_fft_init(), and ff_imdct_calc_c().

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

Compute MDCT of size N = 2^nbits.

Parameters:
input N samples
out N/2 samples

Definition at line 161 of file mdct.c.

Referenced by ff_fft_init().

av_cold void ff_mdct_end ( FFTContext s  ) 

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


Generated on Fri May 25 03:02:45 2012 for FFmpeg by  doxygen 1.5.6