]> git.sesse.net Git - vlc/blob - modules/visualization/galaktos/engine_vars.c
ca0de20f464db2624970723fa3e422e5b22ec8fe
[vlc] / modules / visualization / galaktos / engine_vars.c
1 /*****************************************************************************
2  * engine_vars.c:
3  *****************************************************************************
4  * Copyright (C) 2004 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet <asmax@videolan.org>
8  *          code from projectM http://xmms-projectm.sourceforge.net
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 published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25
26
27 /* Include engine_vars.h to use these variables */
28  char preset_name[256];
29 /* PER FRAME CONSTANTS BEGIN */
30  double zoom=1.0;
31  double zoomexp= 1.0;
32  double rot= 0.0;
33  double warp= 0.0;
34
35  double sx= 1.0;
36  double sy= 1.0;
37  double dx= 0.0;
38  double dy= 0.0;
39  double cx= 0.5;
40  double cy= 0.5;
41
42   int gx = 32;
43   int gy = 24;
44
45  double decay=.98;
46
47  double wave_r= 1.0;
48  double wave_g= 0.2;
49  double wave_b= 0.0;
50  double wave_x= 0.5;
51  double wave_y= 0.5;
52  double wave_mystery= 0.0;
53
54  double ob_size= 0.0;
55  double ob_r= 0.0;
56  double ob_g= 0.0;
57  double ob_b= 0.0;
58  double ob_a= 0.0;
59
60  double ib_size = 0.0;
61  double ib_r = 0.0;
62  double ib_g = 0.0;
63  double ib_b = 0.0;
64  double ib_a = 0.0;
65
66  double mv_a = 0.0;
67  double mv_r = 0.0;
68  double mv_g = 0.0;
69  double mv_b = 0.0;
70  double mv_l = 1.0;
71  double mv_x = 16.0;
72  double mv_y = 12.0;
73  double mv_dy = 0.02;
74  double mv_dx = 0.02;
75   
76  int meshx = 0;
77  int meshy = 0;
78  
79  double Time = 0;
80  double treb = 0;
81  double mid = 0;
82  double bass = 0;
83  double treb_att = 0;
84  double mid_att = 0;
85  double bass_att = 0;
86  double progress = 0;
87  int frame = 0;
88  int fps = 30;
89 //double bass_thresh = 0;
90
91 /* PER_FRAME CONSTANTS END */
92  double fRating = 0;
93  double fGammaAdj = 1.0;
94  double fVideoEchoZoom = 1.0;
95  double fVideoEchoAlpha = 0;
96  double nVideoEchoOrientation = 0;
97  
98  int nWaveMode = 7;
99  int bAdditiveWaves = 0;
100  int bWaveDots = 0;
101  int bWaveThick = 0;
102  int bModWaveAlphaByVolume = 0;
103  int bMaximizeWaveColor = 0;
104  int bTexWrap = 0;
105  int bDarkenCenter = 0;
106  int bRedBlueStereo = 0;
107  int bBrighten = 0;
108  int bDarken = 0;
109  int bSolarize = 0;
110 int bInvert = 0;
111 int bMotionVectorsOn = 1;
112  
113  double fWaveAlpha =1.0;
114  double fWaveScale = 1.0;
115  double fWaveSmoothing = 0;
116  double fWaveParam = 0;
117  double fModWaveAlphaStart = 0;
118  double fModWaveAlphaEnd = 0;
119  double fWarpAnimSpeed = 0;
120  double fWarpScale = 0;
121  double fShader = 0;
122
123
124 /* PER_PIXEL CONSTANTS BEGIN */
125 double x_per_pixel = 0;
126 double y_per_pixel = 0;
127 double rad_per_pixel = 0;
128 double ang_per_pixel = 0;
129
130 /* PER_PIXEL CONSTANT END */
131
132
133 /* Q AND T VARIABLES START */
134
135 double q1 = 0;
136 double q2 = 0;
137 double q3 = 0;
138 double q4 = 0;
139 double q5 = 0;
140 double q6 = 0;
141 double q7 = 0;
142 double q8 = 0;
143
144
145 /* Q AND T VARIABLES END */
146
147 //per pixel meshes
148  double **zoom_mesh;
149  double **zoomexp_mesh;
150  double **rot_mesh;
151  
152
153  double **sx_mesh;
154  double **sy_mesh;
155  double **dx_mesh;
156  double **dy_mesh;
157  double **cx_mesh;
158  double **cy_mesh;
159
160  double **x_mesh;
161  double **y_mesh;
162  double **rad_mesh;
163  double **theta_mesh;
164
165 //custom wave per point meshes
166