mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
a7bc7485b1
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
43 lines
1.2 KiB
C
43 lines
1.2 KiB
C
#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
|