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 TIMEAVGWINDOW_H
23 #define TIMEAVGWINDOW_H
26 class SelTempAvgThread;
27 class SelTempAvgWindow;
29 class SelTempAvgParanoid;
30 class SelTempAvgNoSubtract;
31 class SelTempAvgStartKeyframe;
34 class SelTempAvgOffsetRadial;
35 class SelTempAvgMethodRadial;
37 class SelTempAvgSlider;
39 class SelTempAvgThreshSlider;
40 class SelTempAvgOffsetValue;
41 class SelTempAvgGainValue;
46 #include "seltempavg.h"
68 class SelTempAvgWindow : public PluginClientWindow
71 SelTempAvgWindow(SelTempAvgMain *client);
74 void create_objects();
76 SelTempAvgMain *client;
77 SelTempAvgSlider *total_frames;
79 SelTempAvgThreshSlider *avg_threshold_RY, *avg_threshold_GU, *avg_threshold_BV;
80 SelTempAvgThreshSlider *std_threshold_RY, *std_threshold_GU, *std_threshold_BV;
81 SelTempAvgMask *mask_RY, *mask_GU, *mask_BV;
83 SelTempAvgOffsetRadial *offset_fixed, *offset_restartmarker;
84 SelTempAvgMethodRadial *method_none, *method_seltempavg, *method_stddev, *method_average;
86 SelTempAvgParanoid *paranoid;
87 SelTempAvgNoSubtract *no_subtract;
88 SelTempAvgStartKeyframe *offset_restartmarker_keyframe;
89 BC_TextBox *offset_restartmarker_pos;
91 SelTempAvgOffsetValue *offset_fixed_value;
92 SelTempAvgGainValue *gain;
95 class SelTempAvgThreshSlider : public BC_TextBox
98 SelTempAvgThreshSlider(SelTempAvgMain *client, int x, int y, int type, float curval);
99 ~SelTempAvgThreshSlider();
102 SelTempAvgMain *client;
106 class SelTempAvgOffsetValue : public BC_TextBox
109 SelTempAvgOffsetValue(SelTempAvgMain *client, int x, int y);
110 ~SelTempAvgOffsetValue();
112 SelTempAvgMain *client;
116 class SelTempAvgGainValue : public BC_TextBox
119 SelTempAvgGainValue(SelTempAvgMain *client, int x, int y);
120 ~SelTempAvgGainValue();
122 SelTempAvgMain *client;
126 class SelTempAvgSlider : public BC_ISlider
129 SelTempAvgSlider(SelTempAvgMain *client, int x, int y);
133 SelTempAvgMain *client;
137 class SelTempAvgOffsetRadial : public BC_Radial
140 SelTempAvgOffsetRadial(SelTempAvgMain *client, SelTempAvgWindow *gui, int x, int y, int type, char *caption);
142 SelTempAvgMain *client;
143 SelTempAvgWindow *gui;
148 class SelTempAvgMethodRadial : public BC_Radial
151 SelTempAvgMethodRadial(SelTempAvgMain *client, SelTempAvgWindow *gui, int x, int y, int type, char *caption);
153 SelTempAvgMain *client;
154 SelTempAvgWindow *gui;
158 class SelTempAvgParanoid : public BC_CheckBox
161 SelTempAvgParanoid(SelTempAvgMain *client, int x, int y);
163 SelTempAvgMain *client;
166 class SelTempAvgNoSubtract : public BC_CheckBox
169 SelTempAvgNoSubtract(SelTempAvgMain *client, int x, int y);
171 SelTempAvgMain *client;
174 class SelTempAvgMask : public BC_CheckBox
177 SelTempAvgMask(SelTempAvgMain *client, int x, int y,int type, int val);
179 SelTempAvgMain *client;
184 class SelTempAvgStartKeyframe : public BC_CheckBox
187 SelTempAvgStartKeyframe(SelTempAvgMain *client, int x, int y);
189 SelTempAvgMain *client;