summaryrefslogtreecommitdiffstats
path: root/gst-libs/gst/resample
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2004-03-15 16:32:54 +0000
committerJohan Dahlin <johan@gnome.org>2004-03-15 16:32:54 +0000
commit39fd8a2dbd436cbabe5e336d1145b62c2a885ed5 (patch)
tree61df7da4a9d2b8bdb853af50a27219a8921bf5e4 /gst-libs/gst/resample
parent1633bd8693c54cbc5f6648703a7ecf01548ec55f (diff)
downloadgst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.tar.gz
gst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.tar.bz2
gst-plugins-bad-39fd8a2dbd436cbabe5e336d1145b62c2a885ed5.zip
*.h: Revert indenting
Original commit message from CVS: * *.h: Revert indenting
Diffstat (limited to 'gst-libs/gst/resample')
-rw-r--r--gst-libs/gst/resample/private.h97
-rw-r--r--gst-libs/gst/resample/resample.h88
2 files changed, 90 insertions, 95 deletions
diff --git a/gst-libs/gst/resample/private.h b/gst-libs/gst/resample/private.h
index a0d37f41..5791f580 100644
--- a/gst-libs/gst/resample/private.h
+++ b/gst-libs/gst/resample/private.h
@@ -23,71 +23,68 @@
#include "resample.h"
-void gst_resample_nearest_s16 (gst_resample_t * r);
-void gst_resample_bilinear_s16 (gst_resample_t * r);
-void gst_resample_sinc_s16 (gst_resample_t * r);
-void gst_resample_sinc_slow_s16 (gst_resample_t * r);
-void gst_resample_sinc_ft_s16 (gst_resample_t * r);
+void gst_resample_nearest_s16(gst_resample_t *r);
+void gst_resample_bilinear_s16(gst_resample_t *r);
+void gst_resample_sinc_s16(gst_resample_t *r);
+void gst_resample_sinc_slow_s16(gst_resample_t *r);
+void gst_resample_sinc_ft_s16(gst_resample_t * r);
-void gst_resample_nearest_float (gst_resample_t * r);
-void gst_resample_bilinear_float (gst_resample_t * r);
-void gst_resample_sinc_float (gst_resample_t * r);
-void gst_resample_sinc_slow_float (gst_resample_t * r);
-void gst_resample_sinc_ft_float (gst_resample_t * r);
+void gst_resample_nearest_float(gst_resample_t *r);
+void gst_resample_bilinear_float(gst_resample_t *r);
+void gst_resample_sinc_float(gst_resample_t *r);
+void gst_resample_sinc_slow_float(gst_resample_t *r);
+void gst_resample_sinc_ft_float(gst_resample_t * r);
typedef struct functable_s functable_t;
-struct functable_s
-{
- double start;
- double offset;
- int len;
+struct functable_s {
+ double start;
+ double offset;
+ int len;
- double invoffset;
+ double invoffset;
- double scale;
- double scale2;
+ double scale;
+ double scale2;
- double (*func_x) (void *, double x);
- double (*func_dx) (void *, double x);
+ double (*func_x)(void *,double x);
+ double (*func_dx)(void *,double x);
- double (*func2_x) (void *, double x);
- double (*func2_dx) (void *, double x);
+ double (*func2_x)(void *,double x);
+ double (*func2_dx)(void *,double x);
- double *fx;
- double *fdx;
+ double *fx;
+ double *fdx;
- void *priv;
+ void *priv;
};
-void functable_init (functable_t * t);
-double functable_eval (functable_t * t, double x);
+void functable_init(functable_t *t);
+double functable_eval(functable_t *t,double x);
-double functable_fir (functable_t * t, double x0, int n, double *data, int len);
-void functable_fir2 (functable_t * t, double *r0, double *r1, double x0,
- int n, double *data, int len);
+double functable_fir(functable_t *t,double x0,int n,double *data,int len);
+void functable_fir2(functable_t *t,double *r0, double *r1, double x0,
+ int n,double *data,int len);
-double functable_sinc (void *p, double x);
-double functable_dsinc (void *p, double x);
-double functable_window_std (void *p, double x);
-double functable_window_dstd (void *p, double x);
-double functable_window_boxcar (void *p, double x);
-double functable_window_dboxcar (void *p, double x);
+double functable_sinc(void *p, double x);
+double functable_dsinc(void *p, double x);
+double functable_window_std(void *p, double x);
+double functable_window_dstd(void *p, double x);
+double functable_window_boxcar(void *p, double x);
+double functable_window_dboxcar(void *p, double x);
/* math lib stuff */
-void conv_double_short_table (double *dest, short *src, int n);
-void conv_double_short_unroll (double *dest, short *src, int n);
-void conv_double_short_ref (double *dest, short *src, int n);
-
+void conv_double_short_table(double *dest, short *src, int n);
+void conv_double_short_unroll(double *dest, short *src, int n);
+void conv_double_short_ref(double *dest, short *src, int n);
#ifdef HAVE_CPU_PPC
-void conv_double_short_altivec (double *dest, short *src, int n);
+void conv_double_short_altivec(double *dest, short *src, int n);
#endif
-void conv_short_double_ref (short *dest, double *src, int n);
-
+void conv_short_double_ref(short *dest, double *src, int n);
#ifdef HAVE_CPU_PPC
-void conv_short_double_ppcasm (short *dest, double *src, int n);
+void conv_short_double_ppcasm(short *dest, double *src, int n);
#endif
#ifdef HAVE_CPU_PPC
@@ -101,12 +98,12 @@ void conv_short_double_ppcasm (short *dest, double *src, int n);
#define conv_double_float conv_double_float_ref
#define conv_float_double conv_float_double_ref
-void conv_double_short_dstr (double *dest, short *src, int n, int dstr);
-void conv_short_double_sstr (short *dest, double *src, int n, int dstr);
+void conv_double_short_dstr(double *dest, short *src, int n, int dstr);
+void conv_short_double_sstr(short *dest, double *src, int n, int dstr);
-void conv_double_float_ref (double *dest, float *src, int n);
-void conv_float_double_ref (float *dest, double *src, int n);
-void conv_double_float_dstr (double *dest, float *src, int n, int dstr);
-void conv_float_double_sstr (float *dest, double *src, int n, int sstr);
+void conv_double_float_ref(double *dest, float *src, int n);
+void conv_float_double_ref(float *dest, double *src, int n);
+void conv_double_float_dstr(double *dest, float *src, int n, int dstr);
+void conv_float_double_sstr(float *dest, double *src, int n, int sstr);
#endif /* __PRIVATE_H__ */
diff --git a/gst-libs/gst/resample/resample.h b/gst-libs/gst/resample/resample.h
index 699d7d3b..1c4216b3 100644
--- a/gst-libs/gst/resample/resample.h
+++ b/gst-libs/gst/resample/resample.h
@@ -21,78 +21,76 @@
#ifndef __GST_RESAMPLE_H__
#define __GST_RESAMPLE_H__
-typedef enum
-{
- GST_RESAMPLE_NEAREST = 0,
- GST_RESAMPLE_BILINEAR,
- GST_RESAMPLE_SINC_SLOW,
- GST_RESAMPLE_SINC,
+typedef enum {
+ GST_RESAMPLE_NEAREST = 0,
+ GST_RESAMPLE_BILINEAR,
+ GST_RESAMPLE_SINC_SLOW,
+ GST_RESAMPLE_SINC,
} gst_resample_method;
-typedef enum
-{
- GST_RESAMPLE_S16 = 0,
- GST_RESAMPLE_FLOAT
+typedef enum {
+ GST_RESAMPLE_S16 = 0,
+ GST_RESAMPLE_FLOAT
} gst_resample_format;
typedef struct gst_resample_s gst_resample_t;
-struct gst_resample_s
-{
- /* parameters */
+struct gst_resample_s {
+ /* parameters */
- gst_resample_method method;
- int channels;
- int verbose;
- gst_resample_format format;
+ gst_resample_method method;
+ int channels;
+ int verbose;
+ gst_resample_format format;
- int filter_length;
+ int filter_length;
- double i_rate;
- double o_rate;
+ double i_rate;
+ double o_rate;
- void *priv;
+ void *priv;
- void *(*get_buffer) (void *priv, unsigned int size);
+ void *(*get_buffer)(void *priv, unsigned int size);
- /* internal parameters */
+ /* internal parameters */
- double halftaps;
+ double halftaps;
- /* filter state */
+ /* filter state */
- void *buffer;
- int buffer_len;
+ void *buffer;
+ int buffer_len;
- double i_start;
- double o_start;
+ double i_start;
+ double o_start;
- double i_start_buf;
- double i_end_buf;
+ double i_start_buf;
+ double i_end_buf;
- double i_inc;
- double o_inc;
+ double i_inc;
+ double o_inc;
- double i_end;
- double o_end;
+ double i_end;
+ double o_end;
- int i_samples;
- int o_samples;
+ int i_samples;
+ int o_samples;
- void *i_buf, *o_buf;
+ void *i_buf, *o_buf;
- double acc[10];
+ double acc[10];
- /* methods */
- void (*scale) (gst_resample_t * r);
+ /* methods */
+ void (*scale)(gst_resample_t *r);
- double ack;
+ double ack;
};
-void gst_resample_init (gst_resample_t * r);
+void gst_resample_init(gst_resample_t *r);
-void gst_resample_reinit (gst_resample_t * r);
+void gst_resample_reinit(gst_resample_t *r);
-void gst_resample_scale (gst_resample_t * r, void *i_buf, unsigned int size);
+void gst_resample_scale(gst_resample_t *r, void *i_buf, unsigned int size);
#endif /* __GST_RESAMPLE_H__ */
+