4 * Copyright (C) 2008-2016 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"
32 #include "pluginvclient.h"
34 #include "transportque.h"
38 class ReframeRTWindow;
46 int equivalent(ReframeRTConfig &src);
48 void copy_from(ReframeRTConfig &src);
49 void interpolate(ReframeRTConfig &prev,
50 ReframeRTConfig &next,
53 int64_t current_frame);
63 class ReframeRTNum : public BC_TumbleTextBox
66 ReframeRTNum(ReframeRT *plugin,
74 class ReframeRTDenom : public BC_TumbleTextBox
77 ReframeRTDenom(ReframeRT *plugin,
85 class ReframeRTStretch : public BC_Radial
88 ReframeRTStretch(ReframeRT *plugin,
97 class ReframeRTDownsample : public BC_Radial
100 ReframeRTDownsample(ReframeRT *plugin,
101 ReframeRTWindow *gui,
106 ReframeRTWindow *gui;
109 class ReframeRTInterpolate : public BC_CheckBox
112 ReframeRTInterpolate(ReframeRT *plugin,
113 ReframeRTWindow *gui,
118 ReframeRTWindow *gui;
121 class ReframeRTReset : public BC_GenericButton
124 ReframeRTReset(ReframeRT *plugin, ReframeRTWindow *gui, int x, int y);
128 ReframeRTWindow *gui;
131 class ReframeRTWindow : public PluginClientWindow
134 ReframeRTWindow(ReframeRT *plugin);
136 void create_objects();
140 ReframeRTDenom *denom;
141 ReframeRTStretch *stretch;
142 ReframeRTDownsample *downsample;
143 ReframeRTInterpolate *interpolate;
144 ReframeRTReset *reset;
148 class ReframeRT : public PluginVClient
151 ReframeRT(PluginServer *server);
154 PLUGIN_CLASS_MEMBERS(ReframeRTConfig)
156 void save_data(KeyFrame *keyframe);
157 void read_data(KeyFrame *keyframe);
161 int process_buffer(VFrame *frame,
162 int64_t start_position,