#include <glib.h>
#include <math.h>
+#include <gst/gst.h>
#ifndef __GST_FFT_H__
#define __GST_FFT_H__
/* Functions */
+GST_EXPORT
gint gst_fft_next_fast_length (gint n) G_GNUC_CONST;
G_END_DECLS
};
/* Functions */
+
+GST_EXPORT
GstFFTF32 * gst_fft_f32_new (gint len, gboolean inverse);
+
+GST_EXPORT
void gst_fft_f32_free (GstFFTF32 *self);
+GST_EXPORT
void gst_fft_f32_fft (GstFFTF32 *self, const gfloat *timedata,
GstFFTF32Complex *freqdata);
+
+GST_EXPORT
void gst_fft_f32_inverse_fft (GstFFTF32 *self, const GstFFTF32Complex *freqdata,
gfloat *timedata);
+GST_EXPORT
void gst_fft_f32_window (GstFFTF32 *self, gfloat *timedata, GstFFTWindow window);
G_END_DECLS
};
/* Functions */
+
+GST_EXPORT
GstFFTF64 * gst_fft_f64_new (gint len, gboolean inverse);
+
+GST_EXPORT
void gst_fft_f64_free (GstFFTF64 *self);
+GST_EXPORT
void gst_fft_f64_fft (GstFFTF64 *self, const gdouble *timedata,
GstFFTF64Complex *freqdata);
+
+GST_EXPORT
void gst_fft_f64_inverse_fft (GstFFTF64 *self, const GstFFTF64Complex *freqdata,
gdouble *timedata);
+GST_EXPORT
void gst_fft_f64_window (GstFFTF64 *self, gdouble *timedata, GstFFTWindow window);
G_END_DECLS
};
/* Functions */
+
+GST_EXPORT
GstFFTS16 * gst_fft_s16_new (gint len, gboolean inverse);
+
+GST_EXPORT
void gst_fft_s16_free (GstFFTS16 *self);
+GST_EXPORT
void gst_fft_s16_fft (GstFFTS16 *self, const gint16 *timedata,
GstFFTS16Complex *freqdata);
+
+GST_EXPORT
void gst_fft_s16_inverse_fft (GstFFTS16 *self, const GstFFTS16Complex *freqdata,
gint16 *timedata);
+GST_EXPORT
void gst_fft_s16_window (GstFFTS16 *self, gint16 *timedata, GstFFTWindow window);
G_END_DECLS
};
/* Functions */
+
+GST_EXPORT
GstFFTS32 * gst_fft_s32_new (gint len, gboolean inverse);
+
+GST_EXPORT
void gst_fft_s32_free (GstFFTS32 *self);
+GST_EXPORT
void gst_fft_s32_fft (GstFFTS32 *self, const gint32 *timedata,
GstFFTS32Complex *freqdata);
+
+GST_EXPORT
void gst_fft_s32_inverse_fft (GstFFTS32 *self, const GstFFTS32Complex *freqdata,
gint32 *timedata);
+GST_EXPORT
void gst_fft_s32_window (GstFFTS32 *self, gint32 *timedata, GstFFTWindow window);
G_END_DECLS