gst-indent
[platform/upstream/gst-plugins-good.git] / gst / monoscope / monoscope.h
1 #ifndef _MONOSCOPE_H
2 #define _MONOSCOPE_H
3
4 #include <glib.h>
5 #include "convolve.h"
6
7 #define scope_width 256
8 #define scope_height 128
9
10 struct monoscope_state
11 {
12   gint16 copyEq[CONVOLVE_BIG];
13   int avgEq[CONVOLVE_SMALL];    /* a running average of the last few. */
14   int avgMax;                   /* running average of max sample. */
15   guint32 display[(scope_width + 1) * (scope_height + 1)];
16
17   convolve_state *cstate;
18   guint32 colors[64];
19 };
20
21 struct monoscope_state *monoscope_init (guint32 resx, guint32 resy);
22 guint32 *monoscope_update (struct monoscope_state *stateptr, gint16 data[512]);
23 void monoscope_close (struct monoscope_state *stateptr);
24
25 #endif