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
32 #include "bcdisplayinfo.h"
38 #include "loadbalance.h"
39 #include "pluginvclient.h"
44 class RadialBlurWindow;
45 class RadialBlurEngine;
46 class RadialBlurReset;
51 class RadialBlurConfig
57 int equivalent(RadialBlurConfig &that);
58 void copy_from(RadialBlurConfig &that);
59 void interpolate(RadialBlurConfig &prev,
60 RadialBlurConfig &next,
77 class RadialBlurSize : public BC_ISlider
80 RadialBlurSize(RadialBlurMain *plugin,
87 RadialBlurMain *plugin;
91 class RadialBlurToggle : public BC_CheckBox
94 RadialBlurToggle(RadialBlurMain *plugin,
100 RadialBlurMain *plugin;
104 class RadialBlurReset : public BC_GenericButton
107 RadialBlurReset(RadialBlurMain *plugin, RadialBlurWindow *gui, int x, int y);
110 RadialBlurMain *plugin;
111 RadialBlurWindow *gui;
114 class RadialBlurWindow : public PluginClientWindow
117 RadialBlurWindow(RadialBlurMain *plugin);
120 void create_objects();
123 RadialBlurSize *x, *y, *steps, *angle;
124 RadialBlurToggle *r, *g, *b, *a;
125 RadialBlurMain *plugin;
126 RadialBlurReset *reset;
134 class RadialBlurMain : public PluginVClient
137 RadialBlurMain(PluginServer *server);
140 int process_buffer(VFrame *frame,
141 int64_t start_position,
144 void save_data(KeyFrame *keyframe);
145 void read_data(KeyFrame *keyframe);
149 PLUGIN_CLASS_MEMBERS(RadialBlurConfig)
151 VFrame *input, *output, *temp;
152 RadialBlurEngine *engine;
153 // Rotate engine only used for OpenGL
154 AffineEngine *rotate;
157 class RadialBlurPackage : public LoadPackage
164 class RadialBlurUnit : public LoadClient
167 RadialBlurUnit(RadialBlurEngine *server, RadialBlurMain *plugin);
168 void process_package(LoadPackage *package);
169 RadialBlurEngine *server;
170 RadialBlurMain *plugin;
173 class RadialBlurEngine : public LoadServer
176 RadialBlurEngine(RadialBlurMain *plugin,
179 void init_packages();
180 LoadClient* new_client();
181 LoadPackage* new_package();
182 RadialBlurMain *plugin;