2017-04-22 12:59:28 +02:00
|
|
|
#ifndef FFMPEG_FFT_H_
|
|
|
|
#define FFMPEG_FFT_H_
|
2016-06-15 19:16:27 +02:00
|
|
|
|
2016-06-15 19:21:06 +02:00
|
|
|
#include <glsym/glsym.h>
|
2016-06-15 19:16:27 +02:00
|
|
|
|
2017-04-22 12:59:28 +02:00
|
|
|
#include <retro_common_api.h>
|
|
|
|
|
|
|
|
RETRO_BEGIN_DECLS
|
2016-06-15 19:16:27 +02:00
|
|
|
|
2017-04-22 12:59:28 +02:00
|
|
|
typedef struct GLFFT glfft_t;
|
2016-06-15 19:16:27 +02:00
|
|
|
|
|
|
|
glfft_t *glfft_new(unsigned fft_steps, rglgen_proc_address_t proc);
|
|
|
|
|
|
|
|
void glfft_free(glfft_t *fft);
|
|
|
|
|
|
|
|
void glfft_init_multisample(glfft_t *fft, unsigned width, unsigned height, unsigned samples);
|
|
|
|
|
|
|
|
void glfft_step_fft(glfft_t *fft, const GLshort *buffer, unsigned frames);
|
2017-04-22 12:59:28 +02:00
|
|
|
|
2016-06-15 19:16:27 +02:00
|
|
|
void glfft_render(glfft_t *fft, GLuint backbuffer, unsigned width, unsigned height);
|
|
|
|
|
2017-04-22 12:59:28 +02:00
|
|
|
RETRO_END_DECLS
|
2016-06-15 19:16:27 +02:00
|
|
|
|
|
|
|
#endif
|