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 "overlayframe.inc"
27 #include "pluginvclient.h"
30 class _1080to540Option;
32 class _1080to540Window : public PluginClientWindow
35 _1080to540Window(_1080to540Main *client);
38 void create_objects();
39 int set_first_field(int first_field, int send_event);
41 _1080to540Main *client;
42 _1080to540Option *odd_first;
43 _1080to540Option *even_first;
47 class _1080to540Option : public BC_Radial
50 _1080to540Option(_1080to540Main *client,
51 _1080to540Window *window,
58 _1080to540Main *client;
59 _1080to540Window *window;
63 class _1080to540Config
68 int equivalent(_1080to540Config &that);
69 void copy_from(_1080to540Config &that);
70 void interpolate(_1080to540Config &prev,
71 _1080to540Config &next,
79 class _1080to540Main : public PluginVClient
82 _1080to540Main(PluginServer *server);
85 PLUGIN_CLASS_MEMBERS(_1080to540Config)
88 // required for all realtime plugins
89 int process_realtime(VFrame *input, VFrame *output);
92 void save_data(KeyFrame *keyframe);
93 void read_data(KeyFrame *keyframe);
95 void reduce_field(VFrame *output, VFrame *input, int src_field, int dst_field);