Tizen 2.0 Release
[framework/multimedia/gst-plugins-good0.10.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     gint16 copyEq[CONVOLVE_BIG];
12     int avgEq[CONVOLVE_SMALL];      /* a running average of the last few. */
13     int avgMax;                     /* running average of max sample. */
14     guint32 display[(scope_width + 1) * (scope_height + 1)];
15
16     convolve_state *cstate;
17     guint32 colors[64];
18 };
19
20 struct monoscope_state * monoscope_init (guint32 resx, guint32 resy);
21 guint32 * monoscope_update (struct monoscope_state * stateptr, gint16 data [512]);
22 void monoscope_close (struct monoscope_state * stateptr);
23
24 #endif