Fixed initialisation of tf in file_open(). Without setting the memory to 0,
[cinelerra_cv/mob.git] / plugins / 720to480 / 720to480.h
bloba923735634e39f7a63c26e63ad9d2cb129ef8a72
1 #ifndef _720TO480_H
2 #define _720TO480_H
5 #include "pluginvclient.h"
7 class _720to480Main;
8 class _720to480Order;
9 class _720to480Direction;
11 class _720to480Window : public BC_Window
13 public:
14 _720to480Window(_720to480Main *client, int x, int y);
15 ~_720to480Window();
17 int create_objects();
18 int close_event();
19 int set_first_field(int first_field);
20 int set_direction(int direction);
22 _720to480Main *client;
23 _720to480Order *odd_first;
24 _720to480Order *even_first;
25 _720to480Direction *forward;
26 _720to480Direction *reverse;
30 class _720to480Order : public BC_Radial
32 public:
33 _720to480Order(_720to480Main *client,
34 _720to480Window *window,
35 int output,
36 int x,
37 int y,
38 char *text);
39 int handle_event();
41 _720to480Main *client;
42 _720to480Window *window;
43 int output;
46 class _720to480Direction : public BC_Radial
48 public:
49 _720to480Direction(_720to480Main *client,
50 _720to480Window *window,
51 int output,
52 int x,
53 int y,
54 char *text);
55 int handle_event();
57 _720to480Main *client;
58 _720to480Window *window;
59 int output;
62 class _720to480Config
64 public:
65 _720to480Config();
67 int first_field;
68 int direction;
71 class _720to480Main : public PluginVClient
73 public:
74 _720to480Main(PluginServer *server);
75 ~_720to480Main();
80 // required for all non realtime plugins
81 char* plugin_title();
82 int get_parameters();
83 int start_loop();
84 int stop_loop();
85 int is_realtime();
86 void save_data(KeyFrame *keyframe);
87 void read_data(KeyFrame *keyframe);
88 int load_defaults();
89 int save_defaults();
90 double get_framerate();
91 int process_loop(VFrame *output);
93 void reduce_field(VFrame *output, VFrame *input, int dest_row);
96 BC_Hash *defaults;
97 MainProgressBar *progress;
99 _720to480Config config;
100 VFrame *temp;
101 int input_position;
105 #endif