Blame gst-libs/gst/fft/gstffts16.h

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_S16_H__
Packit 971217
#define __GST_FFT_S16_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 _GstFFTS16 GstFFTS16;
Packit 971217
typedef struct _GstFFTS16Complex GstFFTS16Complex;
Packit 971217
Packit 971217
/* Copy of kiss_fft_s16_cpx for documentation reasons,
Packit 971217
 * do NOT change! */
Packit 971217
Packit 971217
/**
Packit 971217
 * GstFFTS16Complex:
Packit 971217
 * @r: Real part
Packit 971217
 * @i: Imaginary part
Packit 971217
 *
Packit 971217
 * Data type for complex numbers composed of
Packit 971217
 * signed 16 bit integers.
Packit 971217
 */
Packit 971217
struct _GstFFTS16Complex
Packit 971217
{
Packit 971217
  gint16 r;
Packit 971217
  gint16 i;
Packit 971217
};
Packit 971217
Packit 971217
/* Functions */
Packit 971217
Packit 971217
GST_FFT_API
Packit 971217
GstFFTS16 *     gst_fft_s16_new         (gint len, gboolean inverse);
Packit 971217
Packit 971217
GST_FFT_API
Packit 971217
void            gst_fft_s16_free        (GstFFTS16 *self);
Packit 971217
Packit 971217
GST_FFT_API
Packit 971217
void            gst_fft_s16_fft         (GstFFTS16 *self, const gint16 *timedata,
Packit 971217
                                         GstFFTS16Complex *freqdata);
Packit 971217
Packit 971217
GST_FFT_API
Packit 971217
void            gst_fft_s16_inverse_fft (GstFFTS16 *self, const GstFFTS16Complex *freqdata,
Packit 971217
                                         gint16 *timedata);
Packit 971217
Packit 971217
GST_FFT_API
Packit 971217
void            gst_fft_s16_window      (GstFFTS16 *self, gint16 *timedata, GstFFTWindow window);
Packit 971217
Packit 971217
G_END_DECLS
Packit 971217
Packit 971217
#endif /* __GST_FFT_S16_H__ */