add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / 720to480 / 720to480.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 _720TO480_H
23 #define _720TO480_H
24
25
26 #include "pluginvclient.h"
27
28 class _720to480Main;
29 class _720to480Order;
30 class _720to480Direction;
31
32 class _720to480Window : public BC_Window
33 {
34 public:
35         _720to480Window(_720to480Main *client, int x, int y);
36         ~_720to480Window();
37
38         void create_objects();
39         int close_event();
40         void set_first_field(int first_field);
41         void set_direction(int direction);
42
43         _720to480Main *client;
44         _720to480Order *odd_first;
45         _720to480Order *even_first;
46         _720to480Direction *forward;
47         _720to480Direction *reverse;
48 };
49
50
51 class _720to480Order : public BC_Radial
52 {
53 public:
54         _720to480Order(_720to480Main *client,
55                 _720to480Window *window,
56                 int output,
57                 int x,
58                 int y,
59                 char *text);
60         int handle_event();
61
62         _720to480Main *client;
63         _720to480Window *window;
64         int output;
65 };
66
67 class _720to480Direction : public BC_Radial
68 {
69 public:
70         _720to480Direction(_720to480Main *client,
71                 _720to480Window *window,
72                 int output,
73                 int x,
74                 int y,
75                 char *text);
76         int handle_event();
77
78         _720to480Main *client;
79         _720to480Window *window;
80         int output;
81 };
82
83 class _720to480Config
84 {
85 public:
86         _720to480Config();
87
88         int first_field;
89         int direction;
90 };
91
92 class _720to480Main : public PluginVClient
93 {
94 public:
95         _720to480Main(PluginServer *server);
96         ~_720to480Main();
97
98 // required for all non realtime plugins
99         const char* plugin_title();
100         int get_parameters();
101         int start_loop();
102         int stop_loop();
103         int is_realtime();
104         void save_data(KeyFrame *keyframe);
105         void read_data(KeyFrame *keyframe);
106         int load_defaults();
107         int save_defaults();
108         double get_framerate();
109         int process_loop(VFrame *output);
110
111         void reduce_field(VFrame *output, VFrame *input, int dest_row);
112
113
114         MainProgressBar *progress;
115
116         _720to480Config config;
117         VFrame *temp;
118         int input_position;
119 };
120
121
122 #endif