paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Functions
imdct.h File Reference

Exported symbols from imdct.c. More...

Functions

int imdct_init (int nbits, struct mdct_context **result)
 Initialize the inverse modified cosine transform. More...
 
void imdct (struct mdct_context *s, float *output, const float *input)
 Compute the inverse MDCT. More...
 
void imdct_end (struct mdct_context *s)
 Deallocate imdct resources. More...
 

Detailed Description

Exported symbols from imdct.c.

Function Documentation

◆ imdct_init()

int imdct_init ( int  nbits,
struct mdct_context **  result 
)

Initialize the inverse modified cosine transform.

Parameters
nbitsThe number of bits to use (4 <= nbits <= 18).
resultOpaque structure that must be passed to imdct().
Returns
Standard.

References arr_alloc(), and zalloc().

◆ imdct()

void imdct ( struct mdct_context *  ctx,
float *  output,
const float *  input 
)

Compute the inverse MDCT.

Parameters
ctxThe initialized context structure.
outputN samples.
inputN/2 samples.
See also
imdct_init().

◆ imdct_end()

void imdct_end ( struct mdct_context *  ctx)

Deallocate imdct resources.

Parameters
ctxThe pointer obtained by imdct_init().