remove whitespace at eol
[goodguy/history.git] / cinelerra-5.1 / plugins / deinterlace / deinterwindow.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 DEINTERWINDOW_H
23 #define DEINTERWINDOW_H
24
25
26 class DeInterlaceThread;
27 class DeInterlaceWindow;
28
29 #include "guicast.h"
30 #include "mutex.h"
31 #include "deinterlace.h"
32 #include "pluginclient.h"
33
34
35 class DeInterlaceOption;
36 class DeInterlaceAdaptive;
37 class DeInterlaceThreshold;
38
39 class DeInterlaceWindow : public PluginClientWindow
40 {
41 public:
42         DeInterlaceWindow(DeInterlaceMain *client);
43         ~DeInterlaceWindow();
44
45         void create_objects();
46         int set_mode(int mode, int recursive);
47         void get_status_string(char *string, int changed_rows);
48
49         DeInterlaceMain *client;
50         DeInterlaceOption *odd_fields;
51         DeInterlaceOption *even_fields;
52         DeInterlaceOption *average_fields;
53         DeInterlaceOption *swap_odd_fields;
54         DeInterlaceOption *swap_even_fields;
55         DeInterlaceOption *avg_even;
56         DeInterlaceOption *avg_odd;
57         DeInterlaceOption *none;
58 //      DeInterlaceAdaptive *adaptive;
59 //      DeInterlaceThreshold *threshold;
60 //      BC_Title *status;
61 };
62
63 class DeInterlaceOption : public BC_Radial
64 {
65 public:
66         DeInterlaceOption(DeInterlaceMain *client,
67                 DeInterlaceWindow *window,
68                 int output,
69                 int x,
70                 int y,
71                 char *text);
72         ~DeInterlaceOption();
73         int handle_event();
74
75         DeInterlaceMain *client;
76         DeInterlaceWindow *window;
77         int output;
78 };
79
80 class DeInterlaceAdaptive : public BC_CheckBox
81 {
82 public:
83         DeInterlaceAdaptive(DeInterlaceMain *client, int x, int y);
84         int handle_event();
85         DeInterlaceMain *client;
86 };
87
88 class DeInterlaceThreshold : public BC_IPot
89 {
90 public:
91         DeInterlaceThreshold(DeInterlaceMain *client, int x, int y);
92         int handle_event();
93         DeInterlaceMain *client;
94 };
95
96
97
98
99 #endif