Debian Codegraph @

plugins/actor/JESS/jess.h

raw
1 /* Libvisual-plugins - Standard plugins for libvisual
2 *
3 * Copyright (C) 2000, 2001 Remi Arquier <[email protected]>
4 *
5 * Authors: Remi Arquier <[email protected]>
6 * Dennis Smit <[email protected]>
7 *
8 * $Id: jess.h,v 1.5 2005/12/20 18:49:12 synap Exp $
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24
25 #ifndef _JESS_JESS_H
26 #define _JESS_JESS_H
27
28 #include <sys/time.h>
29
30 #include <libvisual/libvisual.h>
31
32 #include "struct.h"
33 #include "analyser_struct.h"
34 #include "def.h"
35
36 #define BIG_BALL_SIZE 1024
37
38 typedef struct {
39 struct conteur_struct conteur;
40 struct analyser_struct lys;
41 float E_old1;
42 float E_old2;
43
44 struct timeval start;
45
46 /* Randomize context from libvisual */
47 VisRandomContext *rcontext;
48 VisPalette jess_pal;
49
50 VisBuffer pcm_data1;
51 VisBuffer pcm_data2;
52 float pcm_data[2][512];
53
54 uint32_t *table1;
55 uint32_t *table2;
56 uint32_t *table3;
57 uint32_t *table4;
58 uint32_t pitch;
59 uint32_t video;
60
61 uint8_t dim[256];
62 uint8_t dimR[256];
63 uint8_t dimG[256];
64 uint8_t dimB[256];
65 uint8_t *bits;
66 uint8_t bpp;
67 uint8_t *pixel;
68 uint8_t *buffer;
69
70 int resx;
71 int resy;
72 int xres2;
73 int yres2;
74
75 uint8_t *big_ball;
76 uint32_t *big_ball_scale[BIG_BALL_SIZE];
77
78 int xi[FUSEE_MAX];
79 int yi[FUSEE_MAX];
80 float life[FUSEE_MAX];
81
82 float lifev[256][LINE_MAX];
83 float x[256][LINE_MAX];
84 float y[256][LINE_MAX];
85 float vx[256][LINE_MAX];
86 float vy[256][LINE_MAX];
87
88 float lifet[256][LINE_MAX];
89 float ssx[256][LINE_MAX];
90 float ssy[256][LINE_MAX];
91 float ssvx[256][LINE_MAX];
92 float ssvy[256][LINE_MAX];
93 float sstheta[256][LINE_MAX];
94 float ssomega[256][LINE_MAX];
95
96 float smpos[2][3][STARS_MAX];
97 float smmorpheur;
98 int smselect;
99
100 } JessPrivate;
101
102 #endif /* _JESS_JESS_H */