2008-02-23 01:51:37 +00:00
|
|
|
#ifndef _LINES_H
|
|
|
|
#define _LINES_H
|
|
|
|
|
2002-02-01 19:28:30 +00:00
|
|
|
/*
|
|
|
|
* lines.h
|
2008-02-23 01:51:37 +00:00
|
|
|
* Goom
|
|
|
|
* Copyright (c) 2000-2003 iOS-software. All rights reserved.
|
2002-02-01 19:28:30 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-23 01:51:37 +00:00
|
|
|
#include "goom_typedefs.h"
|
|
|
|
#include "goom_graphic.h"
|
|
|
|
#include "goom_config.h"
|
|
|
|
|
|
|
|
struct _GMUNITPOINTER
|
|
|
|
{
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float angle;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* tableau de points */
|
|
|
|
struct _GMLINE
|
|
|
|
{
|
|
|
|
|
|
|
|
GMUnitPointer *points;
|
|
|
|
GMUnitPointer *points2;
|
|
|
|
int IDdest;
|
|
|
|
float param;
|
|
|
|
float amplitudeF;
|
|
|
|
float amplitude;
|
|
|
|
|
|
|
|
int nbPoints;
|
|
|
|
guint32 color; /* pour l'instant je stocke la couleur a terme, on stockera le mode couleur et l'on animera */
|
|
|
|
guint32 color2;
|
|
|
|
|
|
|
|
int screenX;
|
|
|
|
int screenY;
|
|
|
|
|
|
|
|
float power;
|
|
|
|
float powinc;
|
|
|
|
|
|
|
|
PluginInfo *goomInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* les ID possibles */
|
|
|
|
|
|
|
|
#define GML_CIRCLE 0
|
|
|
|
/* (param = radius) */
|
|
|
|
|
|
|
|
#define GML_HLINE 1
|
|
|
|
/* (param = y) */
|
|
|
|
|
|
|
|
#define GML_VLINE 2
|
|
|
|
/* (param = x) */
|
|
|
|
|
|
|
|
/* les modes couleur possible (si tu mets un autre c'est noir) */
|
|
|
|
|
|
|
|
#define GML_BLEUBLANC 0
|
|
|
|
#define GML_RED 1
|
|
|
|
#define GML_ORANGE_V 2
|
|
|
|
#define GML_ORANGE_J 3
|
|
|
|
#define GML_VERT 4
|
|
|
|
#define GML_BLEU 5
|
|
|
|
#define GML_BLACK 6
|
|
|
|
|
|
|
|
/* construit un effet de line (une ligne horitontale pour commencer) */
|
|
|
|
GMLine *goom_lines_init (PluginInfo *goomInfo, int rx, int ry,
|
|
|
|
int IDsrc, float paramS, int modeCoulSrc,
|
|
|
|
int IDdest, float paramD, int modeCoulDest);
|
|
|
|
|
|
|
|
void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
|
|
|
|
float amplitude,
|
|
|
|
int modeCoul);
|
|
|
|
|
|
|
|
void goom_lines_set_res (GMLine * gml, int rx, int ry);
|
gst/goom/: Make goom reentrant by moving all important static variables into instance structures.
Original commit message from CVS:
* gst/goom/filters.c: (zoomFilterNew), (calculatePXandPY),
(setPixelRGB), (setPixelRGB_), (getPixelRGB), (getPixelRGB_),
(zoomFilterSetResolution), (zoomFilterDestroy),
(zoomFilterFastRGB), (pointFilter):
* gst/goom/filters.h:
* gst/goom/goom_core.c: (goom_init), (goom_set_resolution),
(goom_update), (goom_close):
* gst/goom/goom_core.h:
* gst/goom/goom_tools.h:
* gst/goom/graphic.c:
* gst/goom/gstgoom.c: (gst_goom_class_init), (gst_goom_init),
(gst_goom_dispose), (gst_goom_src_setcaps), (gst_goom_chain):
* gst/goom/gstgoom.h:
* gst/goom/lines.c: (goom_lines):
* gst/goom/lines.h:
Make goom reentrant by moving all important static variables
into instance structures.
(Fixes #329181)
2006-02-05 20:43:49 +00:00
|
|
|
|
2008-02-23 01:51:37 +00:00
|
|
|
void goom_lines_free (GMLine ** gml);
|
2002-02-01 19:28:30 +00:00
|
|
|
|
2008-02-23 01:51:37 +00:00
|
|
|
void goom_lines_draw (PluginInfo *plugInfo, GMLine * gml, gint16 data[512], Pixel *p);
|
2004-03-15 16:32:54 +00:00
|
|
|
|
2008-02-23 01:51:37 +00:00
|
|
|
#endif /* _LINES_H */
|