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 "pluginvclient.h"
53 class RGBShiftISlider;
63 void reset(int clear);
64 void copy_from(RGBShiftConfig &src);
65 int equivalent(RGBShiftConfig &src);
66 void interpolate(RGBShiftConfig &prev,
72 int r_dx, r_dy, g_dx, g_dy, b_dx, b_dy;
75 class RGBShiftIText : public BC_TumbleTextBox
78 RGBShiftIText(RGBShiftWindow *window, RGBShiftEffect *plugin,
79 RGBShiftISlider *slider, int *output, int x, int y, int min, int max);
82 RGBShiftWindow *window;
83 RGBShiftEffect *plugin;
84 RGBShiftISlider *slider;
89 class RGBShiftISlider : public BC_ISlider
92 RGBShiftISlider(RGBShiftEffect *plugin, RGBShiftIText *text, int *output, int x, int y);
94 RGBShiftEffect *plugin;
99 class RGBShiftReset : public BC_GenericButton
102 RGBShiftReset(RGBShiftEffect *plugin, RGBShiftWindow *window, int x, int y);
105 RGBShiftEffect *plugin;
106 RGBShiftWindow *window;
109 class RGBShiftClr : public BC_Button
112 RGBShiftClr(RGBShiftEffect *plugin, RGBShiftWindow *window, int x, int y, int clear);
115 RGBShiftEffect *plugin;
116 RGBShiftWindow *window;
120 class RGBShiftWindow : public PluginClientWindow
123 RGBShiftWindow(RGBShiftEffect *plugin);
124 void create_objects();
125 void update_gui(int clear);
127 RGBShiftIText *r_dx_text;
128 RGBShiftISlider *r_dx_slider;
129 RGBShiftClr *r_dx_Clr;
130 RGBShiftIText *r_dy_text;
131 RGBShiftISlider *r_dy_slider;
132 RGBShiftClr *r_dy_Clr;
134 RGBShiftIText *g_dx_text;
135 RGBShiftISlider *g_dx_slider;
136 RGBShiftClr *g_dx_Clr;
137 RGBShiftIText *g_dy_text;
138 RGBShiftISlider *g_dy_slider;
139 RGBShiftClr *g_dy_Clr;
141 RGBShiftIText *b_dx_text;
142 RGBShiftISlider *b_dx_slider;
143 RGBShiftClr *b_dx_Clr;
144 RGBShiftIText *b_dy_text;
145 RGBShiftISlider *b_dy_slider;
146 RGBShiftClr *b_dy_Clr;
148 RGBShiftEffect *plugin;
149 RGBShiftReset *reset;
154 class RGBShiftEffect : public PluginVClient
158 RGBShiftEffect(PluginServer *server);
162 PLUGIN_CLASS_MEMBERS(RGBShiftConfig)
163 int process_realtime(VFrame *input, VFrame *output);
165 void save_data(KeyFrame *keyframe);
166 void read_data(KeyFrame *keyframe);