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
25 #include "bcdisplayinfo.h"
32 #include "pluginvclient.h"
52 class YUVShiftISlider;
62 void reset(int clear);
63 void copy_from(YUVShiftConfig &src);
64 int equivalent(YUVShiftConfig &src);
65 void interpolate(YUVShiftConfig &prev,
71 int y_dx, y_dy, u_dx, u_dy, v_dx, v_dy;
74 class YUVShiftIText : public BC_TumbleTextBox
77 YUVShiftIText(YUVShiftWindow *window, YUVShiftEffect *plugin,
78 YUVShiftISlider *slider, int *output, int x, int y, int min, int max);
81 YUVShiftWindow *window;
82 YUVShiftEffect *plugin;
83 YUVShiftISlider *slider;
88 class YUVShiftISlider : public BC_ISlider
91 YUVShiftISlider(YUVShiftEffect *plugin, YUVShiftIText *text, int *output, int x, int y);
93 YUVShiftEffect *plugin;
98 class YUVShiftReset : public BC_GenericButton
101 YUVShiftReset(YUVShiftEffect *plugin, YUVShiftWindow *window, int x, int y);
104 YUVShiftEffect *plugin;
105 YUVShiftWindow *window;
108 class YUVShiftClr : public BC_Button
111 YUVShiftClr(YUVShiftEffect *plugin, YUVShiftWindow *window, int x, int y, int clear);
114 YUVShiftEffect *plugin;
115 YUVShiftWindow *window;
119 class YUVShiftWindow : public PluginClientWindow
122 YUVShiftWindow(YUVShiftEffect *plugin);
123 void create_objects();
124 void update_gui(int clear);
126 YUVShiftIText *y_dx_text;
127 YUVShiftISlider *y_dx_slider;
128 YUVShiftClr *y_dx_Clr;
129 YUVShiftIText *y_dy_text;
130 YUVShiftISlider *y_dy_slider;
131 YUVShiftClr *y_dy_Clr;
133 YUVShiftIText *u_dx_text;
134 YUVShiftISlider *u_dx_slider;
135 YUVShiftClr *u_dx_Clr;
136 YUVShiftIText *u_dy_text;
137 YUVShiftISlider *u_dy_slider;
138 YUVShiftClr *u_dy_Clr;
140 YUVShiftIText *v_dx_text;
141 YUVShiftISlider *v_dx_slider;
142 YUVShiftClr *v_dx_Clr;
143 YUVShiftIText *v_dy_text;
144 YUVShiftISlider *v_dy_slider;
145 YUVShiftClr *v_dy_Clr;
147 YUVShiftEffect *plugin;
148 YUVShiftReset *reset;
153 class YUVShiftEffect : public PluginVClient
157 YUVShiftEffect(PluginServer *server);
161 PLUGIN_CLASS_MEMBERS(YUVShiftConfig)
162 int process_realtime(VFrame *input, VFrame *output);
164 void save_data(KeyFrame *keyframe);
165 void read_data(KeyFrame *keyframe);