Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / plugins / 720to480 / 720to480.h
diff --git a/cinelerra-5.1/plugins/720to480/720to480.h b/cinelerra-5.1/plugins/720to480/720to480.h
new file mode 100644 (file)
index 0000000..58a015d
--- /dev/null
@@ -0,0 +1,122 @@
+
+/*
+ * CINELERRA
+ * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * 
+ */
+
+#ifndef _720TO480_H
+#define _720TO480_H
+
+
+#include "pluginvclient.h"
+
+class _720to480Main;
+class _720to480Order;
+class _720to480Direction;
+
+class _720to480Window : public BC_Window
+{
+public:
+       _720to480Window(_720to480Main *client, int x, int y);
+       ~_720to480Window();
+       
+       void create_objects();
+       int close_event();
+       void set_first_field(int first_field);
+       void set_direction(int direction);
+
+       _720to480Main *client;
+       _720to480Order *odd_first;
+       _720to480Order *even_first;
+       _720to480Direction *forward;
+       _720to480Direction *reverse;
+};
+
+
+class _720to480Order : public BC_Radial
+{
+public:
+       _720to480Order(_720to480Main *client, 
+               _720to480Window *window, 
+               int output, 
+               int x, 
+               int y, 
+               char *text);
+       int handle_event();
+
+       _720to480Main *client;
+       _720to480Window *window;
+       int output;
+};
+
+class _720to480Direction : public BC_Radial
+{
+public:
+       _720to480Direction(_720to480Main *client, 
+               _720to480Window *window, 
+               int output, 
+               int x, 
+               int y, 
+               char *text);
+       int handle_event();
+
+       _720to480Main *client;
+       _720to480Window *window;
+       int output;
+};
+
+class _720to480Config
+{
+public:
+       _720to480Config();
+
+       int first_field;
+       int direction;
+};
+
+class _720to480Main : public PluginVClient
+{
+public:
+       _720to480Main(PluginServer *server);
+       ~_720to480Main();
+
+// required for all non realtime plugins
+       const char* plugin_title();
+       int get_parameters();
+       int start_loop();
+       int stop_loop();
+       int is_realtime();
+       void save_data(KeyFrame *keyframe);
+       void read_data(KeyFrame *keyframe);
+       int load_defaults();
+       int save_defaults();
+       double get_framerate();
+       int process_loop(VFrame *output);
+
+       void reduce_field(VFrame *output, VFrame *input, int dest_row);
+
+
+       MainProgressBar *progress;
+
+       _720to480Config config;
+       VFrame *temp;
+       int input_position;
+};
+
+
+#endif