|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) <2007> Sebastian Dröge <slomo@circular-chaos.org>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifndef __GST_FFT_F32_H__
|
|
Packit |
971217 |
#define __GST_FFT_F32_H__
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <glib.h>
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include "gstfft.h"
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_BEGIN_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
typedef struct _GstFFTF32 GstFFTF32;
|
|
Packit |
971217 |
typedef struct _GstFFTF32Complex GstFFTF32Complex;
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* Copy of kiss_fft_f32_cpx for documentation reasons,
|
|
Packit |
971217 |
* do NOT change! */
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* GstFFTF32Complex:
|
|
Packit |
971217 |
* @r: Real part
|
|
Packit |
971217 |
* @i: Imaginary part
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Data type for complex numbers composed of
|
|
Packit |
971217 |
* 32 bit float.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
struct _GstFFTF32Complex
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
gfloat r;
|
|
Packit |
971217 |
gfloat i;
|
|
Packit |
971217 |
};
|
|
Packit |
971217 |
|
|
Packit |
971217 |
/* Functions */
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_FFT_API
|
|
Packit |
971217 |
GstFFTF32 * gst_fft_f32_new (gint len, gboolean inverse);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_FFT_API
|
|
Packit |
971217 |
void gst_fft_f32_free (GstFFTF32 *self);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_FFT_API
|
|
Packit |
971217 |
void gst_fft_f32_fft (GstFFTF32 *self, const gfloat *timedata,
|
|
Packit |
971217 |
GstFFTF32Complex *freqdata);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_FFT_API
|
|
Packit |
971217 |
void gst_fft_f32_inverse_fft (GstFFTF32 *self, const GstFFTF32Complex *freqdata,
|
|
Packit |
971217 |
gfloat *timedata);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_FFT_API
|
|
Packit |
971217 |
void gst_fft_f32_window (GstFFTF32 *self, gfloat *timedata, GstFFTWindow window);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
G_END_DECLS
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#endif /* __GST_FFT_F32_H__ */
|