2017-04-22 10:59:28 +00:00
|
|
|
#ifndef FFMPEG_FFT_H_
|
|
|
|
#define FFMPEG_FFT_H_
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2016-06-15 17:21:06 +00:00
|
|
|
#include <glsym/glsym.h>
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-04-22 10:59:28 +00:00
|
|
|
#include <retro_common_api.h>
|
|
|
|
|
|
|
|
RETRO_BEGIN_DECLS
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
typedef struct GLFFT fft_t;
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
fft_t *fft_new(unsigned fft_steps, rglgen_proc_address_t proc);
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
void fft_free(fft_t *fft);
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
void fft_init_multisample(fft_t *fft, unsigned width, unsigned height, unsigned samples);
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
void fft_step_fft(fft_t *fft, const GLshort *buffer, unsigned frames);
|
2017-04-22 10:59:28 +00:00
|
|
|
|
2017-05-27 01:28:49 +00:00
|
|
|
void fft_render(fft_t *fft, GLuint backbuffer, unsigned width, unsigned height);
|
2016-06-15 17:16:27 +00:00
|
|
|
|
2017-04-22 10:59:28 +00:00
|
|
|
RETRO_END_DECLS
|
2016-06-15 17:16:27 +00:00
|
|
|
|
|
|
|
#endif
|