MDCT/IMDCT transforms.
More...
#include <stdlib.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/libm.h"
#include "libavutil/mathematics.h"
#include "fft.h"
#include "fft-internal.h"
|
|
#define | RSCALE(x, y) ((x) + (y)) |
| |
|
|
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. More...
|
| |
| void | ff_imdct_calc_c (FFTContext *s, FFTSample *output, const FFTSample *input) |
| | Compute inverse MDCT of size N = 2^nbits. More...
|
| |
| void | ff_mdct_calc_c (FFTContext *s, FFTSample *out, const FFTSample *input) |
| | Compute MDCT of size N = 2^nbits. More...
|
| |
|
av_cold void | ff_mdct_end (FFTContext *s) |
| |
§ ff_imdct_calc_c()
| 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 |
§ ff_imdct_half_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
-
| output | N/2 samples |
| input | N/2 samples |
§ ff_mdct_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 |