summaryrefslogtreecommitdiffstats
path: root/gst/goom2k1/goom_core.h
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-02-23 01:51:37 +0000
committerBastien Nocera <hadess@hadess.net>2008-02-23 01:51:37 +0000
commita7bc7485b1a4d7e1b1a12ff593ca4ccb1d59e466 (patch)
treeffba99ad38c7616d089c5e728c75a6bd5f736c6c /gst/goom2k1/goom_core.h
parent7f0745bb7f26c69766bb0c64458c6543588cc4dc (diff)
configure.ac: Add checks for Flex/Yacc/Bison and other furry animals, for the new goom 2k4 based plugin
Original commit message from CVS: 2008-02-23 Bastien Nocera <hadess@hadess.net> * configure.ac: Add checks for Flex/Yacc/Bison and other furry animals, for the new goom 2k4 based plugin * gst/goom/*: Update to use goom 2k4, uses liboil to detect CPU optimisations (not working yet), move the old plugin to... * gst/goom2k1/*: ... here, in case somebody is sick enough Fixes #515073
Diffstat (limited to 'gst/goom2k1/goom_core.h')
-rw-r--r--gst/goom2k1/goom_core.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/gst/goom2k1/goom_core.h b/gst/goom2k1/goom_core.h
new file mode 100644
index 00000000..1fbc0ee8
--- /dev/null
+++ b/gst/goom2k1/goom_core.h
@@ -0,0 +1,43 @@
+#ifndef _GOOMCORE_H
+#define _GOOMCORE_H
+
+#include <glib.h>
+
+typedef struct ZoomFilterData ZoomFilterData;
+
+typedef struct
+{
+/**-----------------------------------------------------**
+ ** SHARED DATA **
+ **-----------------------------------------------------**/
+ guint32 *pixel;
+ guint32 *back;
+ guint32 *p1, *p2;
+ guint32 cycle;
+
+ guint32 resolx, resoly, buffsize;
+
+ int lockvar; /* pour empecher de nouveaux changements */
+ int goomvar; /* boucle des gooms */
+ int totalgoom; /* nombre de gooms par seconds */
+ int agoom; /* un goom a eu lieu.. */
+ int loopvar; /* mouvement des points */
+ int speedvar; /* vitesse des particules */
+ int lineMode; /* l'effet lineaire a dessiner */
+ char goomlimit; /* sensibilité du goom */
+
+ ZoomFilterData *zfd;
+
+ /* Random table */
+ gint *rand_tab;
+ guint rand_pos;
+} GoomData;
+
+void goom_init (GoomData *goomdata, guint32 resx, guint32 resy);
+void goom_set_resolution (GoomData *goomdata, guint32 resx, guint32 resy);
+
+guint32 *goom_update (GoomData *goomdata, gint16 data [2][512]);
+
+void goom_close (GoomData *goomdata);
+
+#endif