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"
48 #define RESET_DEFAULT_SETTINGS 10
50 #define RESET_AMPLITUDE 1
52 #define RESET_WAVELENGTH 3
57 class WaveDefaultSettings;
65 void reset(int clear);
66 void copy_from(WaveConfig &src);
67 int equivalent(WaveConfig &src);
68 void interpolate(WaveConfig &prev,
80 class WaveSmear : public BC_Radial
83 WaveSmear(WaveEffect *plugin, WaveWindow *window, int x, int y);
89 class WaveBlacken : public BC_Radial
92 WaveBlacken(WaveEffect *plugin, WaveWindow *window, int x, int y);
99 class WaveReflective : public BC_CheckBox
102 WaveReflective(WaveEffect *plugin, int x, int y);
107 class WaveAmplitude : public BC_FSlider
110 WaveAmplitude(WaveEffect *plugin, int x, int y);
115 class WavePhase : public BC_FSlider
118 WavePhase(WaveEffect *plugin, int x, int y);
123 class WaveLength : public BC_FSlider
126 WaveLength(WaveEffect *plugin, int x, int y);
131 class WaveReset : public BC_GenericButton
134 WaveReset(WaveEffect *plugin, WaveWindow *gui, int x, int y);
141 class WaveDefaultSettings : public BC_GenericButton
144 WaveDefaultSettings(WaveEffect *plugin, WaveWindow *gui, int x, int y, int w);
145 ~WaveDefaultSettings();
151 class WaveSliderClr : public BC_Button
154 WaveSliderClr(WaveEffect *plugin, WaveWindow *gui, int x, int y, int w, int clear);
166 class WaveWindow : public PluginClientWindow
169 WaveWindow(WaveEffect *plugin);
171 void create_objects();
173 void update_gui(int clear);
177 // WaveBlacken *blacken;
178 // WaveReflective *reflective;
179 WaveAmplitude *amplitude;
181 WaveLength *wavelength;
183 WaveDefaultSettings *default_settings;
184 WaveSliderClr *amplitudeClr;
185 WaveSliderClr *phaseClr;
186 WaveSliderClr *wavelengthClr;
195 class WaveServer : public LoadServer
198 WaveServer(WaveEffect *plugin, int cpus);
199 void init_packages();
200 LoadClient* new_client();
201 LoadPackage* new_package();
205 class WavePackage : public LoadPackage
212 class WaveUnit : public LoadClient
215 WaveUnit(WaveEffect *plugin, WaveServer *server);
216 void process_package(LoadPackage *package);
228 class WaveEffect : public PluginVClient
231 WaveEffect(PluginServer *server);
234 PLUGIN_CLASS_MEMBERS(WaveConfig)
235 int process_realtime(VFrame *input, VFrame *output);
237 void save_data(KeyFrame *keyframe);
238 void read_data(KeyFrame *keyframe);
242 VFrame *input, *output;