World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
avfft.h
См. документацию.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVCODEC_AVFFT_H
20 #define AVCODEC_AVFFT_H
21 
35 typedef float FFTSample;
36 
37 typedef struct FFTComplex {
39 } FFTComplex;
40 
41 typedef struct FFTContext FFTContext;
42 
48 FFTContext *av_fft_init(int nbits, int inverse);
49 
54 
60 
61 void av_fft_end(FFTContext *s);
62 
63 FFTContext *av_mdct_init(int nbits, int inverse, double scale);
64 void av_imdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
65 void av_imdct_half(FFTContext *s, FFTSample *output, const FFTSample *input);
66 void av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input);
67 void av_mdct_end(FFTContext *s);
68 
69 /* Real Discrete Fourier Transform */
70 
76 };
77 
78 typedef struct RDFTContext RDFTContext;
79 
85 RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans);
88 
89 /* Discrete Cosine Transform */
90 
91 typedef struct DCTContext DCTContext;
92 
94  DCT_II = 0,
98 };
99 
110 DCTContext *av_dct_init(int nbits, enum DCTTransformType type);
112 void av_dct_end (DCTContext *s);
113 
118 #endif /* AVCODEC_AVFFT_H */
av_fft_end
void av_fft_end(FFTContext *s)
av_imdct_calc
void av_imdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input)
DCT_I
@ DCT_I
Definition: avfft.h:96
s
GLdouble s
Definition: SDL_opengl.h:2063
RDFTContext
struct RDFTContext RDFTContext
Definition: avfft.h:78
scale
GLenum GLenum GLenum GLenum GLenum scale
Definition: SDL_opengl_glext.h:9378
DFT_C2R
@ DFT_C2R
Definition: avfft.h:75
z
GLdouble GLdouble z
Definition: SDL_opengl_glext.h:407
av_fft_permute
void av_fft_permute(FFTContext *s, FFTComplex *z)
av_dct_init
DCTContext * av_dct_init(int nbits, enum DCTTransformType type)
FFTComplex
struct FFTComplex FFTComplex
DCT_III
@ DCT_III
Definition: avfft.h:95
IDFT_C2R
@ IDFT_C2R
Definition: avfft.h:73
input
GLenum GLenum GLenum input
Definition: SDL_opengl_glext.h:9377
FFTContext
struct FFTContext FFTContext
Definition: avfft.h:41
av_dct_end
void av_dct_end(DCTContext *s)
FFTComplex::re
FFTSample re
Definition: avfft.h:38
av_rdft_calc
void av_rdft_calc(RDFTContext *s, FFTSample *data)
IDFT_R2C
@ IDFT_R2C
Definition: avfft.h:74
av_dct_calc
void av_dct_calc(DCTContext *s, FFTSample *data)
av_mdct_init
FFTContext * av_mdct_init(int nbits, int inverse, double scale)
av_mdct_end
void av_mdct_end(FFTContext *s)
DFT_R2C
@ DFT_R2C
Definition: avfft.h:72
FFTSample
float FFTSample
Definition: avfft.h:35
DCTContext
struct DCTContext DCTContext
Definition: avfft.h:91
FFTComplex::im
FFTSample im
Definition: avfft.h:38
type
EGLenum type
Definition: SDL_egl.h:850
av_rdft_init
RDFTContext * av_rdft_init(int nbits, enum RDFTransformType trans)
DST_I
@ DST_I
Definition: avfft.h:97
RDFTransformType
RDFTransformType
Definition: avfft.h:71
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: SDL_opengl.h:1974
FFTComplex
Definition: avfft.h:37
av_fft_init
FFTContext * av_fft_init(int nbits, int inverse)
DCT_II
@ DCT_II
Definition: avfft.h:94
av_rdft_end
void av_rdft_end(RDFTContext *s)
av_fft_calc
void av_fft_calc(FFTContext *s, FFTComplex *z)
av_mdct_calc
void av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input)
DCTTransformType
DCTTransformType
Definition: avfft.h:93
av_imdct_half
void av_imdct_half(FFTContext *s, FFTSample *output, const FFTSample *input)