4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
22 #ifndef DEINTERWINDOW_H
23 #define DEINTERWINDOW_H
26 class DeInterlaceThread;
27 class DeInterlaceWindow;
31 #include "deinterlace.h"
32 #include "pluginclient.h"
35 class DeInterlaceOption;
36 class DeInterlaceAdaptive;
37 class DeInterlaceThreshold;
39 class DeInterlaceWindow : public PluginClientWindow
42 DeInterlaceWindow(DeInterlaceMain *client);
45 void create_objects();
46 int set_mode(int mode, int recursive);
47 void get_status_string(char *string, int changed_rows);
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;
63 class DeInterlaceOption : public BC_Radial
66 DeInterlaceOption(DeInterlaceMain *client,
67 DeInterlaceWindow *window,
75 DeInterlaceMain *client;
76 DeInterlaceWindow *window;
80 class DeInterlaceAdaptive : public BC_CheckBox
83 DeInterlaceAdaptive(DeInterlaceMain *client, int x, int y);
85 DeInterlaceMain *client;
88 class DeInterlaceThreshold : public BC_IPot
91 DeInterlaceThreshold(DeInterlaceMain *client, int x, int y);
93 DeInterlaceMain *client;