fft: fix headers
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 11 Nov 2011 17:23:22 +0000 (18:23 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 11 Nov 2011 17:23:22 +0000 (18:23 +0100)
More fft structure into .c file
indent headers

gst-libs/gst/fft/gstfftf32.c
gst-libs/gst/fft/gstfftf32.h
gst-libs/gst/fft/gstfftf64.c
gst-libs/gst/fft/gstfftf64.h
gst-libs/gst/fft/gstffts16.c
gst-libs/gst/fft/gstffts16.h
gst-libs/gst/fft/gstffts32.c
gst-libs/gst/fft/gstffts32.h

index fd574e0..8c93dec 100644 (file)
  *
  */
 
+struct _GstFFTF32
+{
+  void *cfg;
+  gboolean inverse;
+  gint len;
+};
+
 /**
  * gst_fft_f32_new:
  * @len: Length of the FFT in the time domain
index 3b56b48..fcd3174 100644 (file)
 typedef struct _GstFFTF32 GstFFTF32;
 typedef struct _GstFFTF32Complex GstFFTF32Complex;
 
-/* FIXME 0.11: Move the struct definition to the sources,
- *             there's no reason to have it public.
- */
-/**
- * GstFFTF32:
- *
- * Instance structure for #GstFFTF32.
- *
- */
-struct _GstFFTF32 {
-  /* <private> */
-  void * cfg;
-  gboolean inverse;
-  gint len;
-  gpointer _padding[GST_PADDING];
-};
-
 /* Copy of kiss_fft_f32_cpx for documentation reasons,
  * do NOT change! */
 
@@ -55,7 +38,6 @@ struct _GstFFTF32 {
  *
  * Data type for complex numbers composed of
  * 32 bit float.
- *
  */
 struct _GstFFTF32Complex
 {
@@ -64,12 +46,14 @@ struct _GstFFTF32Complex
 };
 
 /* Functions */
+GstFFTF32 *   gst_fft_f32_new           (gint len, gboolean inverse);
+void          gst_fft_f32_free          (GstFFTF32 *self);
 
-GstFFTF32 * gst_fft_f32_new (gint len, gboolean inverse);
-void gst_fft_f32_fft (GstFFTF32 *self, const gfloat *timedata, GstFFTF32Complex *freqdata);
-void gst_fft_f32_inverse_fft (GstFFTF32 *self, const GstFFTF32Complex *freqdata, gfloat *timedata);
-void gst_fft_f32_free (GstFFTF32 *self);
+void          gst_fft_f32_fft           (GstFFTF32 *self, const gfloat *timedata,
+                                         GstFFTF32Complex *freqdata);
+void          gst_fft_f32_inverse_fft   (GstFFTF32 *self, const GstFFTF32Complex *freqdata,
+                                         gfloat *timedata);
 
-void gst_fft_f32_window (GstFFTF32 *self, gfloat *timedata, GstFFTWindow window);
+void          gst_fft_f32_window        (GstFFTF32 *self, gfloat *timedata, GstFFTWindow window);
 
 #endif /* __GST_FFT_F32_H__ */
index e737854..520788d 100644 (file)
  *
  */
 
+struct _GstFFTF64
+{
+  void *cfg;
+  gboolean inverse;
+  gint len;
+};
+
 /**
  * gst_fft_f64_new:
  * @len: Length of the FFT in the time domain
index 8ebbee4..7bb42ca 100644 (file)
 typedef struct _GstFFTF64 GstFFTF64;
 typedef struct _GstFFTF64Complex GstFFTF64Complex;
 
-/* FIXME 0.11: Move the struct definition to the sources,
- *             there's no reason to have it public.
- */
-/**
- * GstFFTF64:
- *
- * Instance structure for #GstFFTF64.
- *
- */
-struct _GstFFTF64 {
-  /* <private> */
-  void * cfg;
-  gboolean inverse;
-  gint len;
-  gpointer _padding[GST_PADDING];
-};
-
 /* Copy of kiss_fft_f64_cpx for documentation reasons,
  * do NOT change! */
 
@@ -55,7 +38,6 @@ struct _GstFFTF64 {
  *
  * Data type for complex numbers composed of
  * 64 bit float.
- *
  */
 struct _GstFFTF64Complex
 {
@@ -64,12 +46,14 @@ struct _GstFFTF64Complex
 };
 
 /* Functions */
+GstFFTF64 *     gst_fft_f64_new         (gint len, gboolean inverse);
+void            gst_fft_f64_free        (GstFFTF64 *self);
 
-GstFFTF64 * gst_fft_f64_new (gint len, gboolean inverse);
-void gst_fft_f64_fft (GstFFTF64 *self, const gdouble *timedata, GstFFTF64Complex *freqdata);
-void gst_fft_f64_inverse_fft (GstFFTF64 *self, const GstFFTF64Complex *freqdata, gdouble *timedata);
-void gst_fft_f64_free (GstFFTF64 *self);
+void            gst_fft_f64_fft         (GstFFTF64 *self, const gdouble *timedata,
+                                         GstFFTF64Complex *freqdata);
+void            gst_fft_f64_inverse_fft (GstFFTF64 *self, const GstFFTF64Complex *freqdata,
+                                         gdouble *timedata);
 
-void gst_fft_f64_window (GstFFTF64 *self, gdouble *timedata, GstFFTWindow window);
+void            gst_fft_f64_window      (GstFFTF64 *self, gdouble *timedata, GstFFTWindow window);
 
 #endif /* __GST_FFT_F64_H__ */
index 212e93f..729e354 100644 (file)
  * The relation between them is iFFT (FFT (x)) = x / nfft where nfft is the
  * length of the FFT. This also has to be taken into account when calculation
  * the magnitude of the frequency data.
- * 
+ *
  */
 
+struct _GstFFTS16
+{
+  void *cfg;
+  gboolean inverse;
+  gint len;
+};
+
 /**
  * gst_fft_s16_new:
  * @len: Length of the FFT in the time domain
index 9a752f1..30cbdee 100644 (file)
 typedef struct _GstFFTS16 GstFFTS16;
 typedef struct _GstFFTS16Complex GstFFTS16Complex;
 
-/* FIXME 0.11: Move the struct definition to the sources,
- *             there's no reason to have it public.
- */
-/**
- * GstFFTS16:
- *
- * Instance structure for #GstFFTS16.
- *
- */
-struct _GstFFTS16 {
-  /* <private> */
-  void *cfg;
-  gboolean inverse;
-  gint len;
-  gpointer _padding[GST_PADDING];
-};
-
 /* Copy of kiss_fft_s16_cpx for documentation reasons,
  * do NOT change! */
 
@@ -55,7 +38,6 @@ struct _GstFFTS16 {
  *
  * Data type for complex numbers composed of
  * signed 16 bit integers.
- *
  */
 struct _GstFFTS16Complex
 {
@@ -64,11 +46,14 @@ struct _GstFFTS16Complex
 };
 
 /* Functions */
+GstFFTS16 *     gst_fft_s16_new         (gint len, gboolean inverse);
+void            gst_fft_s16_free        (GstFFTS16 *self);
+
+void            gst_fft_s16_fft         (GstFFTS16 *self, const gint16 *timedata,
+                                         GstFFTS16Complex *freqdata);
+void            gst_fft_s16_inverse_fft (GstFFTS16 *self, const GstFFTS16Complex *freqdata,
+                                         gint16 *timedata);
 
-GstFFTS16 * gst_fft_s16_new (gint len, gboolean inverse);
-void gst_fft_s16_fft (GstFFTS16 *self, const gint16 *timedata, GstFFTS16Complex *freqdata);
-void gst_fft_s16_inverse_fft (GstFFTS16 *self, const GstFFTS16Complex *freqdata, gint16 *timedata);
-void gst_fft_s16_free (GstFFTS16 *self);
+void            gst_fft_s16_window      (GstFFTS16 *self, gint16 *timedata, GstFFTWindow window);
 
-void gst_fft_s16_window (GstFFTS16 *self, gint16 *timedata, GstFFTWindow window);
 #endif /* __GST_FFT_S16_H__ */
index 56ea543..a135786 100644 (file)
  * the magnitude of the frequency data.
  */
 
+struct _GstFFTS32
+{
+  void *cfg;
+  gboolean inverse;
+  gint len;
+};
+
 /**
  * gst_fft_s32_new:
  * @len: Length of the FFT in the time domain
index fd3b279..f73ad96 100644 (file)
 typedef struct _GstFFTS32 GstFFTS32;
 typedef struct _GstFFTS32Complex GstFFTS32Complex;
 
-/* FIXME 0.11: Move the struct definition to the sources,
- *             there's no reason to have it public.
- */
-/**
- * GstFFTS32:
- *
- * Instance structure for #GstFFTS32.
- *
- */
-struct _GstFFTS32 {
-  /* <private> */
-  void * cfg;
-  gboolean inverse;
-  gint len;
-  gpointer _padding[GST_PADDING];
-};
-
 /* Copy of kiss_fft_s32_cpx for documentation reasons,
  * do NOT change! */
 
@@ -55,7 +38,6 @@ struct _GstFFTS32 {
  *
  * Data type for complex numbers composed of
  * signed 32 bit integers.
- *
  */
 struct _GstFFTS32Complex
 {
@@ -64,12 +46,14 @@ struct _GstFFTS32Complex
 };
 
 /* Functions */
+GstFFTS32 *     gst_fft_s32_new         (gint len, gboolean inverse);
+void            gst_fft_s32_free        (GstFFTS32 *self);
 
-GstFFTS32 * gst_fft_s32_new (gint len, gboolean inverse);
-void gst_fft_s32_fft (GstFFTS32 *self, const gint32 *timedata, GstFFTS32Complex *freqdata);
-void gst_fft_s32_inverse_fft (GstFFTS32 *self, const GstFFTS32Complex *freqdata, gint32 *timedata);
-void gst_fft_s32_free (GstFFTS32 *self);
+void            gst_fft_s32_fft         (GstFFTS32 *self, const gint32 *timedata,
+                                         GstFFTS32Complex *freqdata);
+void            gst_fft_s32_inverse_fft (GstFFTS32 *self, const GstFFTS32Complex *freqdata,
+                                         gint32 *timedata);
 
-void gst_fft_s32_window (GstFFTS32 *self, gint32 *timedata, GstFFTWindow window);
+void            gst_fft_s32_window      (GstFFTS32 *self, gint32 *timedata, GstFFTWindow window);
 
 #endif /* __GST_FFT_S32_H__ */