blob: 4f8962d1b980268653fd9cab25655e3c50ae48fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
|
/*
* Pure Data Packet system implementation: setup code
* Copyright (c) by Tom Schouten <pdp@zzz.kotnet.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#include <stdio.h>
#include "pdp_config.h"
#include "pdp_post.h"
static int initialized = 0;
/* all symbols are C style */
#ifdef __cplusplus
extern "C"
{
#endif
/* module setup declarations (all C-style) */
/* pdp system / internal stuff */
void pdp_debug_setup(void);
void pdp_list_setup(void);
void pdp_pdsym_setup(void);
void pdp_forth_setup(void);
void pdp_forth_def_setup(void);
void pdp_symbol_setup(void);
void pdp_type_setup(void);
void pdp_packet_setup(void);
void pdp_ut_setup(void);
void pdp_queue_setup(void);
void pdp_control_setup(void);
void pdp_image_setup(void);
void pdp_bitmap_setup(void);
void pdp_matrix_setup(void);
/* pdp modules */
void pdp_xv_setup(void);
void pdp_add_setup(void);
void pdp_mul_setup(void);
void pdp_mix_setup(void);
void pdp_randmix_setup(void);
void pdp_qt_setup(void);
void pdp_v4l_setup(void);
void pdp_reg_setup(void);
void pdp_conv_setup(void);
void pdp_bq_setup(void);
void pdp_del_setup(void);
void pdp_snap_setup(void);
void pdp_trigger_setup(void);
void pdp_route_setup(void);
void pdp_noise_setup(void);
void pdp_gain_setup(void);
void pdp_chrot_setup(void);
void pdp_scope_setup(void);
void pdp_scale_setup(void);
void pdp_zoom_setup(void);
void pdp_scan_setup(void);
void pdp_scanxy_setup(void);
void pdp_sdl_setup(void);
void pdp_cheby_setup(void);
void pdp_grey2mask_setup(void);
void pdp_constant_setup(void);
void pdp_logic_setup(void);
void pdp_glx_setup(void);
void pdp_loop_setup(void);
void pdp_description_setup(void);
void pdp_convert_setup(void);
void pdp_stateless_setup(void);
void pdp_mat_mul_setup(void);
void pdp_mat_lu_setup(void);
void pdp_mat_vec_setup(void);
void pdp_plasma_setup(void);
void pdp_cog_setup(void);
void pdp_histo_setup(void);
void pdp_array_setup(void);
void pdp_udp_send_setup(void);
void pdp_udp_receive_setup(void);
void pdp_rawin_setup(void);
void pdp_rawout_setup(void);
void pdp_metro_setup(void);
/* hacks */
void pdp_inspect_setup(void);
/* testing */
void pdp_dpd_test_setup(void);
/* library setup routine */
void pdp_setup(void){
if (initialized) return;
/* babble */
#ifdef PDP_VERSION
pdp_post("PDP: pure data packet version " PDP_VERSION );
#else
pdp_post ("PDP: pure data packet");
#endif
/* setup pdp system */
/* kernel */
pdp_pdsym_setup();
pdp_debug_setup();
pdp_symbol_setup();
pdp_list_setup();
pdp_type_setup();
pdp_packet_setup();
pdp_control_setup();
/* types */
pdp_image_setup();
pdp_bitmap_setup();
#ifdef HAVE_PDP_GSL
pdp_matrix_setup();
#endif
pdp_queue_setup();
/* setup utility toolkit */
pdp_ut_setup();
/* setup pdp pd modules*/
pdp_add_setup();
pdp_mul_setup();
pdp_mix_setup();
pdp_randmix_setup();
pdp_reg_setup();
pdp_conv_setup();
pdp_bq_setup();
pdp_del_setup();
pdp_snap_setup();
pdp_trigger_setup();
pdp_route_setup();
pdp_noise_setup();
pdp_plasma_setup();
pdp_gain_setup();
pdp_chrot_setup();
pdp_scope_setup();
pdp_scale_setup();
pdp_zoom_setup();
pdp_scan_setup();
pdp_scanxy_setup();
pdp_grey2mask_setup();
pdp_constant_setup();
pdp_logic_setup();
pdp_loop_setup();
pdp_description_setup();
pdp_convert_setup();
pdp_stateless_setup();
pdp_cog_setup();
pdp_array_setup();
pdp_rawin_setup();
pdp_rawout_setup();
pdp_metro_setup();
/* experimental stuff */
pdp_inspect_setup();
pdp_udp_send_setup();
pdp_udp_receive_setup();
/* testing */
//pdp_dpd_test_setup();
/* optional stuff */
#ifdef HAVE_PDP_READLINE
pdp_forthconsole_setup();
#endif
#ifdef HAVE_PDP_GSL
pdp_histo_setup();
pdp_cheby_setup();
pdp_mat_mul_setup();
pdp_mat_lu_setup();
pdp_mat_vec_setup();
#endif
#ifdef HAVE_PDP_QT
pdp_qt_setup();
#endif
#ifdef HAVE_PDP_XV
pdp_xv_setup();
#endif
#ifdef HAVE_PDP_SDL
pdp_sdl_setup();
#endif
#ifdef HAVE_PDP_V4L
pdp_v4l_setup();
#endif
#ifdef HAVE_PDP_GLX
pdp_glx_setup();
#endif
initialized++;
}
#ifdef __cplusplus
}
#endif
|