4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "bcdisplayinfo.h"
33 #include "loadbalance.h"
34 #include "pluginvclient.h"
59 void copy_from(WaveConfig &src);
60 int equivalent(WaveConfig &src);
61 void interpolate(WaveConfig &prev,
73 class WaveSmear : public BC_Radial
76 WaveSmear(WaveEffect *plugin, WaveWindow *window, int x, int y);
82 class WaveBlacken : public BC_Radial
85 WaveBlacken(WaveEffect *plugin, WaveWindow *window, int x, int y);
92 class WaveReflective : public BC_CheckBox
95 WaveReflective(WaveEffect *plugin, int x, int y);
100 class WaveAmplitude : public BC_FSlider
103 WaveAmplitude(WaveEffect *plugin, int x, int y);
108 class WavePhase : public BC_FSlider
111 WavePhase(WaveEffect *plugin, int x, int y);
116 class WaveLength : public BC_FSlider
119 WaveLength(WaveEffect *plugin, int x, int y);
124 class WaveReset : public BC_GenericButton
127 WaveReset(WaveEffect *plugin, WaveWindow *gui, int x, int y);
140 class WaveWindow : public PluginClientWindow
143 WaveWindow(WaveEffect *plugin);
145 void create_objects();
151 // WaveBlacken *blacken;
152 // WaveReflective *reflective;
153 WaveAmplitude *amplitude;
155 WaveLength *wavelength;
165 class WaveServer : public LoadServer
168 WaveServer(WaveEffect *plugin, int cpus);
169 void init_packages();
170 LoadClient* new_client();
171 LoadPackage* new_package();
175 class WavePackage : public LoadPackage
182 class WaveUnit : public LoadClient
185 WaveUnit(WaveEffect *plugin, WaveServer *server);
186 void process_package(LoadPackage *package);
198 class WaveEffect : public PluginVClient
201 WaveEffect(PluginServer *server);
204 PLUGIN_CLASS_MEMBERS(WaveConfig)
205 int process_realtime(VFrame *input, VFrame *output);
207 void save_data(KeyFrame *keyframe);
208 void read_data(KeyFrame *keyframe);
212 VFrame *input, *output;