hvirtual/quicktime/ffmpeg/libavcodec/mdct.c File Reference

#include "dsputil.h"

Include dependency graph for mdct.c:

Go to the source code of this file.

Defines

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

Functions

int ff_mdct_init (MDCTContext *s, int nbits, int inverse)
void ff_imdct_calc (MDCTContext *s, FFTSample *output, const FFTSample *input, FFTSample *tmp)
void ff_mdct_calc (MDCTContext *s, FFTSample *out, const FFTSample *input, FFTSample *tmp)
void ff_mdct_end (MDCTContext *s)


Detailed Description

MDCT/IMDCT transforms.

Definition in file mdct.c.


Define Documentation

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

Value:

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

Definition at line 61 of file mdct.c.


Function Documentation

void ff_imdct_calc ( MDCTContext s,
FFTSample output,
const FFTSample input,
FFTSample tmp 
)

Compute inverse MDCT of size N = 2^nbits

Parameters:
output N samples
input N/2 samples
tmp N/2 samples

Definition at line 77 of file mdct.c.

References CMUL, ff_fft_calc(), MDCTContext::fft, FFTComplex::im, MDCTContext::nbits, FFTComplex::re, FFTContext::revtab, MDCTContext::tcos, and MDCTContext::tsin.

Referenced by main(), vorbis_parse_audio_packet(), and wma_decode_block().

Here is the call graph for this function:

void ff_mdct_calc ( MDCTContext s,
FFTSample out,
const FFTSample input,
FFTSample tmp 
)

Compute MDCT of size N = 2^nbits

Parameters:
input N samples
out N/2 samples
tmp temporary storage of N/2 samples

Definition at line 129 of file mdct.c.

References CMUL, ff_fft_calc(), MDCTContext::fft, FFTComplex::im, MDCTContext::nbits, FFTComplex::re, FFTContext::revtab, MDCTContext::tcos, and MDCTContext::tsin.

Referenced by main().

Here is the call graph for this function:

void ff_mdct_end ( MDCTContext s  ) 

Definition at line 170 of file mdct.c.

References av_freep(), ff_fft_end(), MDCTContext::fft, MDCTContext::tcos, and MDCTContext::tsin.

Referenced by main(), vorbis_free(), and wma_decode_end().

Here is the call graph for this function:

int ff_mdct_init ( MDCTContext s,
int  nbits,
int  inverse 
)

init MDCT or IMDCT computation.

Definition at line 29 of file mdct.c.

References av_freep(), av_malloc(), ff_fft_init(), MDCTContext::fft, M_PI, MDCTContext::n, MDCTContext::nbits, MDCTContext::tcos, and MDCTContext::tsin.

Referenced by main(), vorbis_parse_id_hdr(), and wma_decode_init().

Here is the call graph for this function:


Generated on Mon Apr 28 14:05:00 2008 for Cinelerra by  doxygen 1.5.5