summaryrefslogtreecommitdiffstats
path: root/gst/monoscope
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
commit5acffea623eaa95469a8fb77260c85240c6c0a41 (patch)
tree5d1eb5b3c6cbe7ff7888cfe0b2f972f7e509e99d /gst/monoscope
parentf878cc16402dcc70f31861bb120f435f3157c518 (diff)
*.h: Revert indenting
Original commit message from CVS: * *.h: Revert indenting
Diffstat (limited to 'gst/monoscope')
-rw-r--r--gst/monoscope/convolve.h14
-rw-r--r--gst/monoscope/monoscope.h21
2 files changed, 17 insertions, 18 deletions
diff --git a/gst/monoscope/convolve.h b/gst/monoscope/convolve.h
index d5f34d2b..d9709edc 100644
--- a/gst/monoscope/convolve.h
+++ b/gst/monoscope/convolve.h
@@ -21,8 +21,7 @@
#define CONVOLVE_H
#ifdef __cplusplus
-extern "C"
-{
+extern "C" {
#endif
/* convolve_match takes two blocks, one twice the size of the other. The
@@ -32,13 +31,14 @@ extern "C"
#define CONVOLVE_BIG (CONVOLVE_SMALL * 2)
/* Convolution stuff */
- typedef struct _struct_convolve_state convolve_state;
+typedef struct _struct_convolve_state convolve_state;
- convolve_state *convolve_init (void);
- void convolve_close (convolve_state * state);
+convolve_state *convolve_init (void);
+void convolve_close (convolve_state * state);
- int convolve_match (const int *lastchoice,
- const short int *input, convolve_state * state);
+int convolve_match (const int * lastchoice,
+ const short int * input,
+ convolve_state * state);
#ifdef __cplusplus
}
diff --git a/gst/monoscope/monoscope.h b/gst/monoscope/monoscope.h
index 37be6fff..8e7d7591 100644
--- a/gst/monoscope/monoscope.h
+++ b/gst/monoscope/monoscope.h
@@ -7,19 +7,18 @@
#define scope_width 256
#define scope_height 128
-struct monoscope_state
-{
- gint16 copyEq[CONVOLVE_BIG];
- int avgEq[CONVOLVE_SMALL]; /* a running average of the last few. */
- int avgMax; /* running average of max sample. */
- guint32 display[(scope_width + 1) * (scope_height + 1)];
+struct monoscope_state {
+ gint16 copyEq[CONVOLVE_BIG];
+ int avgEq[CONVOLVE_SMALL]; /* a running average of the last few. */
+ int avgMax; /* running average of max sample. */
+ guint32 display[(scope_width + 1) * (scope_height + 1)];
- convolve_state *cstate;
- guint32 colors[64];
+ convolve_state *cstate;
+ guint32 colors[64];
};
-struct monoscope_state *monoscope_init (guint32 resx, guint32 resy);
-guint32 *monoscope_update (struct monoscope_state *stateptr, gint16 data[512]);
-void monoscope_close (struct monoscope_state *stateptr);
+struct monoscope_state * monoscope_init (guint32 resx, guint32 resy);
+guint32 * monoscope_update (struct monoscope_state * stateptr, gint16 data [512]);
+void monoscope_close (struct monoscope_state * stateptr);
#endif