World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Файлы | |
файл | avfft.h |
Классы | |
struct | FFTComplex |
Определения типов | |
typedef float | FFTSample |
typedef struct FFTComplex | FFTComplex |
typedef struct FFTContext | FFTContext |
typedef struct RDFTContext | RDFTContext |
typedef struct DCTContext | DCTContext |
Перечисления | |
enum | RDFTransformType { DFT_R2C, IDFT_C2R, IDFT_R2C, DFT_C2R } |
enum | DCTTransformType { DCT_II = 0, DCT_III, DCT_I, DST_I } |
Функции | |
FFTContext * | av_fft_init (int nbits, int inverse) |
void | av_fft_permute (FFTContext *s, FFTComplex *z) |
void | av_fft_calc (FFTContext *s, FFTComplex *z) |
void | av_fft_end (FFTContext *s) |
FFTContext * | av_mdct_init (int nbits, int inverse, double scale) |
void | av_imdct_calc (FFTContext *s, FFTSample *output, const FFTSample *input) |
void | av_imdct_half (FFTContext *s, FFTSample *output, const FFTSample *input) |
void | av_mdct_calc (FFTContext *s, FFTSample *output, const FFTSample *input) |
void | av_mdct_end (FFTContext *s) |
RDFTContext * | av_rdft_init (int nbits, enum RDFTransformType trans) |
void | av_rdft_calc (RDFTContext *s, FFTSample *data) |
void | av_rdft_end (RDFTContext *s) |
DCTContext * | av_dct_init (int nbits, enum DCTTransformType type) |
void | av_dct_calc (DCTContext *s, FFTSample *data) |
void | av_dct_end (DCTContext *s) |
typedef float FFTSample |
typedef struct FFTComplex FFTComplex |
typedef struct FFTContext FFTContext |
typedef struct RDFTContext RDFTContext |
typedef struct DCTContext DCTContext |
enum RDFTransformType |
enum DCTTransformType |
FFTContext* av_fft_init | ( | int | nbits, |
int | inverse | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avfft.h>
Set up a complex FFT.
nbits | log2 of the length of the input array |
inverse | if 0 perform the forward transform, if 1 perform the inverse |
void av_fft_permute | ( | FFTContext * | s, |
FFTComplex * | z | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avfft.h>
Do the permutation needed BEFORE calling ff_fft_calc().
void av_fft_calc | ( | FFTContext * | s, |
FFTComplex * | z | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avfft.h>
Do a complex FFT with the parameters defined in av_fft_init(). The input data must be permuted before. No 1.0/sqrt(n) normalization is done.
void av_fft_end | ( | FFTContext * | s | ) |
FFTContext* av_mdct_init | ( | int | nbits, |
int | inverse, | ||
double | scale | ||
) |
void av_imdct_calc | ( | FFTContext * | s, |
FFTSample * | output, | ||
const FFTSample * | input | ||
) |
void av_imdct_half | ( | FFTContext * | s, |
FFTSample * | output, | ||
const FFTSample * | input | ||
) |
void av_mdct_calc | ( | FFTContext * | s, |
FFTSample * | output, | ||
const FFTSample * | input | ||
) |
void av_mdct_end | ( | FFTContext * | s | ) |
RDFTContext* av_rdft_init | ( | int | nbits, |
enum RDFTransformType | trans | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avfft.h>
Set up a real FFT.
nbits | log2 of the length of the input array |
trans | the type of transform |
void av_rdft_calc | ( | RDFTContext * | s, |
FFTSample * | data | ||
) |
void av_rdft_end | ( | RDFTContext * | s | ) |
DCTContext* av_dct_init | ( | int | nbits, |
enum DCTTransformType | type | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avfft.h>
Set up DCT.
nbits | size of the input array: (1 << nbits) for DCT-II, DCT-III and DST-I (1 << nbits) + 1 for DCT-I |
type | the type of transform |
void av_dct_calc | ( | DCTContext * | s, |
FFTSample * | data | ||
) |
void av_dct_end | ( | DCTContext * | s | ) |