add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / 1080to480 / 1080to480.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #ifndef _1080TO480_H
23 #define _1080TO480_H
24
25
26 #include "overlayframe.inc"
27 #include "pluginvclient.h"
28
29 class _1080to480Main;
30 class _1080to480Option;
31
32 class _1080to480Window : public PluginClientWindow
33 {
34 public:
35         _1080to480Window(_1080to480Main *client);
36         ~_1080to480Window();
37
38         void create_objects();
39         int set_first_field(int first_field, int send_event);
40
41         _1080to480Main *client;
42         _1080to480Option *odd_first;
43         _1080to480Option *even_first;
44 };
45
46
47 class _1080to480Option : public BC_Radial
48 {
49 public:
50         _1080to480Option(_1080to480Main *client,
51                 _1080to480Window *window,
52                 int output,
53                 int x,
54                 int y,
55                 char *text);
56         int handle_event();
57
58         _1080to480Main *client;
59         _1080to480Window *window;
60         int output;
61 };
62
63 class _1080to480Config
64 {
65 public:
66         _1080to480Config();
67
68         int equivalent(_1080to480Config &that);
69         void copy_from(_1080to480Config &that);
70         void interpolate(_1080to480Config &prev,
71                 _1080to480Config &next,
72                 long prev_frame,
73                 long next_frame,
74                 long current_frame);
75
76         int first_field;
77 };
78
79 class _1080to480Main : public PluginVClient
80 {
81 public:
82         _1080to480Main(PluginServer *server);
83         ~_1080to480Main();
84         PLUGIN_CLASS_MEMBERS(_1080to480Config)
85
86
87 // required for all realtime plugins
88         int process_realtime(VFrame *input, VFrame *output);
89         int is_realtime();
90         void save_data(KeyFrame *keyframe);
91         void read_data(KeyFrame *keyframe);
92         void update_gui();
93
94         void reduce_field(VFrame *output, VFrame *input, int src_field, int dst_field);
95
96         VFrame *temp;
97 };
98
99
100 #endif