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
28 #include "bcdisplayinfo.h"
34 #include "pluginvclient.h"
35 #include "rotateframe.h"
52 int equivalent(RotateConfig &that);
53 void copy_from(RotateConfig &that);
54 void interpolate(RotateConfig &prev,
67 class RotateToggle : public BC_Radial
70 RotateToggle(RotateWindow *window,
84 class RotateDrawPivot : public BC_CheckBox
87 RotateDrawPivot(RotateWindow *window,
97 class RotateInterpolate : public BC_CheckBox
100 RotateInterpolate(RotateEffect *plugin, int x, int y);
102 RotateEffect *plugin;
105 class RotateFine : public BC_FPot
108 RotateFine(RotateWindow *window,
109 RotateEffect *plugin,
114 RotateEffect *plugin;
115 RotateWindow *window;
118 class RotateX : public BC_FPot
121 RotateX(RotateWindow *window,
122 RotateEffect *plugin,
126 RotateEffect *plugin;
127 RotateWindow *window;
130 class RotateY : public BC_FPot
133 RotateY(RotateWindow *window,
134 RotateEffect *plugin,
138 RotateEffect *plugin;
139 RotateWindow *window;
143 class RotateText : public BC_TextBox
146 RotateText(RotateWindow *window,
147 RotateEffect *plugin,
152 RotateEffect *plugin;
153 RotateWindow *window;
156 class RotateReset : public BC_GenericButton
159 RotateReset(RotateEffect *plugin, RotateWindow *window, int x, int y);
162 RotateEffect *plugin;
163 RotateWindow *window;
167 class RotateWindow : public PluginClientWindow
170 RotateWindow(RotateEffect *plugin);
172 void create_objects();
177 int update_toggles();
179 RotateEffect *plugin;
180 RotateToggle *toggle0;
181 RotateToggle *toggle90;
182 RotateToggle *toggle180;
183 RotateToggle *toggle270;
184 RotateDrawPivot *draw_pivot;
189 // RotateInterpolate *bilinear;
196 class RotateEffect : public PluginVClient
199 RotateEffect(PluginServer *server);
202 PLUGIN_CLASS_MEMBERS(RotateConfig)
203 int process_buffer(VFrame *frame,
204 int64_t start_position,
208 void save_data(KeyFrame *keyframe);
209 void read_data(KeyFrame *keyframe);
212 AffineEngine *engine;
213 int need_reconfigure;