Paraslash Audio Streaming | |
About News Download Documentation Development |
Inverse modified discrete cosine transform. More...
#include <math.h>
#include <regex.h>
#include "para.h"
#include "error.h"
#include "string.h"
#include "imdct.h"
#include "wma.h"
Macros | |
#define | BF(x, y, a, b) |
#define | BUTTERFLIES(a0, a1, a2, a3) |
#define | BUTTERFLIES_BIG(a0, a1, a2, a3) |
#define | TRANSFORM(a0, a1, a2, a3, wre, wim) |
#define | TRANSFORM_ZERO(a0, a1, a2, a3) |
#define | BUTTERFLIES BUTTERFLIES_BIG |
#define | DECL_FFT(n, n2, n4) |
#define | CMUL(pre, pim, are, aim, bre, bim) |
Typedefs | |
typedef float | fftsample_t |
Functions | |
void | imdct (struct mdct_context *ctx, float *output, const float *input) |
Compute the inverse MDCT. More... | |
int | imdct_init (int nbits, struct mdct_context **result) |
Initialize the inverse modified cosine transform. More... | |
void | imdct_end (struct mdct_context *ctx) |
Deallocate imdct resources. More... | |
Inverse modified discrete cosine transform.
#define BF | ( | x, | |
y, | |||
a, | |||
b | |||
) |
#define BUTTERFLIES | ( | a0, | |
a1, | |||
a2, | |||
a3 | |||
) |
#define BUTTERFLIES_BIG | ( | a0, | |
a1, | |||
a2, | |||
a3 | |||
) |
#define TRANSFORM | ( | a0, | |
a1, | |||
a2, | |||
a3, | |||
wre, | |||
wim | |||
) |
#define TRANSFORM_ZERO | ( | a0, | |
a1, | |||
a2, | |||
a3 | |||
) |
#define BUTTERFLIES BUTTERFLIES_BIG |
#define DECL_FFT | ( | n, | |
n2, | |||
n4 | |||
) |
#define CMUL | ( | pre, | |
pim, | |||
are, | |||
aim, | |||
bre, | |||
bim | |||
) |
typedef float fftsample_t |
void imdct | ( | struct mdct_context * | ctx, |
float * | output, | ||
const float * | input | ||
) |
Compute the inverse MDCT.
ctx | The initialized context structure. |
output | N samples. |
input | N/2 samples. |
int imdct_init | ( | int | nbits, |
struct mdct_context ** | result | ||
) |
Initialize the inverse modified cosine transform.
nbits | The number of bits to use (4 <= nbits <= 18). |
result | Opaque structure that must be passed to imdct(). |
References arr_alloc(), and zalloc().
void imdct_end | ( | struct mdct_context * | ctx | ) |
Deallocate imdct resources.
ctx | The pointer obtained by imdct_init(). |