summaryrefslogtreecommitdiff
path: root/src/post/goom/lines.h
diff options
context:
space:
mode:
authorThibaut Mattern <tmattern@users.sourceforge.net>2003-01-03 21:29:20 +0000
committerThibaut Mattern <tmattern@users.sourceforge.net>2003-01-03 21:29:20 +0000
commit725a7a2631013ae00b8d363069331446eaff4273 (patch)
treee6b7a96ce3b3c05b4d3c92e5113dbb6e26f83097 /src/post/goom/lines.h
parentb4bcc7ac8ae797dbe478d42d34839f31bba277dc (diff)
downloadxine-lib-725a7a2631013ae00b8d363069331446eaff4273.tar.gz
xine-lib-725a7a2631013ae00b8d363069331446eaff4273.tar.bz2
Updates to the latest version of Goom
Adds mmx and ppc assembly optimizations. Adds 5 config entries for this post plugin : - frames per second - width - height - usage of assembly optimizations - colorspace conversion method PPc optimizations are not tested. The compiler option -fomit-frame-pointer is disabled. CVS patchset: 3762 CVS date: 2003/01/03 21:29:20
Diffstat (limited to 'src/post/goom/lines.h')
-rw-r--r--src/post/goom/lines.h86
1 files changed, 45 insertions, 41 deletions
diff --git a/src/post/goom/lines.h b/src/post/goom/lines.h
index 24dcd4fc9..bb1b2e416 100644
--- a/src/post/goom/lines.h
+++ b/src/post/goom/lines.h
@@ -9,45 +9,49 @@
#include "graphic.h"
#include "goom_config.h"
-typedef struct _GMUNITPOINTER {
- float x;
- float y;
- float angle;
-} GMUnitPointer;
-
-/* tableau de points */
-typedef struct _GMLINE {
-
- GMUnitPointer *points;
- GMUnitPointer *points2;
- int IDdest;
- float param;
-
- int nbPoints;
- guint32 color; /* pr l'instant je stocke la ouuleur
- * a terme, on stockera le mode couleur.. et l'on animera
- */
- guint32 color2;
-
- int screenX;
- int screenY;
-
- float power;
- float powinc;
-} GMLine;
-
-/* les ID possibles */
+typedef struct _GMUNITPOINTER
+{
+ float x;
+ float y;
+ float angle;
+}
+GMUnitPointer;
+
+/* tableau de points */
+typedef struct _GMLINE
+{
+
+ GMUnitPointer *points;
+ GMUnitPointer *points2;
+ int IDdest;
+ float param;
+
+ int nbPoints;
+ guint32 color; /* pr l'instant je stocke la ouuleur * * a *
+ * * * terme, on stockera le mode couleur..
+ * et * * * l'on animera */
+ guint32 color2;
+
+ int screenX;
+ int screenY;
+
+ float power;
+ float powinc;
+}
+GMLine;
+
+/* les ID possibles */
#define GML_CIRCLE 0
-/* (param = radius) */
+/* (param = radius) */
#define GML_HLINE 1
-/* (param = y) */
+/* (param = y) */
#define GML_VLINE 2
-/* (param = x) */
+/* (param = x) */
-/* les modes couleur possible (si tu mets un autre c'est noir) */
+/* les modes couleur possible (si tu mets un autre c'est noir) */
#define GML_BLEUBLANC 0
#define GML_RED 1
@@ -59,17 +63,17 @@ typedef struct _GMLINE {
/* construit un effet de line (une ligne horitontale pour commencer) */
GMLine *goom_lines_init (int rx, int ry,
- int IDsrc, float paramS, int modeCoulSrc,
- int IDdest, float paramD, int modeCoulDest);
+ int IDsrc, float paramS, int modeCoulSrc,
+ int IDdest, float paramD, int modeCoulDest);
+
+void goom_lines_switch_to (GMLine * gml, int IDdest, float param,
-void goom_lines_switch_to (GMLine *gml, int IDdest, float param, int modeCoul);
+ int modeCoul);
-void goom_lines_set_res (GMLine *gml, int rx, int ry);
+void goom_lines_set_res (GMLine * gml, int rx, int ry);
-void goom_lines_free (GMLine **gml);
+void goom_lines_free (GMLine ** gml);
-void goom_lines_draw (GMLine *gml,
- gint16 data [512],
- unsigned int* p);
-/* void goom_lines_conf(gint16 config [25]); */
+void goom_lines_draw (GMLine * gml, gint16 data[512], unsigned int *p);
+/*void goom_lines_conf(gint16 config [25]); */