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
22 #ifndef TEMPORALSWAP_H
23 #define TEMPORALSWAP_H
26 #include "pluginvclient.h"
30 class SwapFramesWindow;
32 class SwapFramesConfig
37 int equivalent(SwapFramesConfig &that);
38 void copy_from(SwapFramesConfig &that);
39 void interpolate(SwapFramesConfig &prev,
40 SwapFramesConfig &next,
43 int64_t current_frame);
49 class SwapFramesEven : public BC_Radial
52 SwapFramesEven(SwapFrames *plugin,
53 SwapFramesWindow *gui,
58 SwapFramesWindow *gui;
62 class SwapFramesOdd : public BC_Radial
65 SwapFramesOdd(SwapFrames *plugin,
66 SwapFramesWindow *gui,
71 SwapFramesWindow *gui;
74 class SwapFramesOn : public BC_CheckBox
77 SwapFramesOn(SwapFrames *plugin, int x, int y);
83 class SwapFramesWindow : public PluginClientWindow
86 SwapFramesWindow(SwapFrames *plugin);
87 void create_objects();
89 SwapFramesEven *swap_even;
90 SwapFramesOdd *swap_odd;
95 class SwapFrames : public PluginVClient
98 SwapFrames(PluginServer *server);
101 // required for all realtime plugins
102 int process_buffer(VFrame *frame,
103 int64_t start_position,
107 void save_data(KeyFrame *keyframe);
108 void read_data(KeyFrame *keyframe);
110 PLUGIN_CLASS_MEMBERS(SwapFramesConfig)
113 // Buffer out of order frames
115 int64_t buffer_position;