X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fperformanceprefs.h;h=61d43a5d49cfe1891dab260e603ac853c68b12b5;hb=0d3917a4eda0344055badf0bd6e235c15c3b6cb8;hp=ecedd28eb641d6ad78d8d3869a528b80952e3238;hpb=5a1b2bb96f2bd6b7ef4f8031763683726c02219d;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/performanceprefs.h b/cinelerra-5.1/cinelerra/performanceprefs.h index ecedd28e..61d43a5d 100644 --- a/cinelerra-5.1/cinelerra/performanceprefs.h +++ b/cinelerra-5.1/cinelerra/performanceprefs.h @@ -2,21 +2,21 @@ /* * CINELERRA * Copyright (C) 2008 Adam Williams - * + * * 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 PERFORMANCEPREFS_H @@ -27,6 +27,7 @@ #include "mwindow.inc" #include "performanceprefs.inc" #include "preferencesthread.h" +#include "probeprefs.inc" class PerformancePrefs : public PreferencesDialog @@ -40,6 +41,7 @@ public: void generate_node_list(); void update_node_list(); void update_rates(); + void start_probe_dialog(); int hot_node; @@ -54,25 +56,21 @@ public: TOTAL_COLUMNS }; - ArrayList nodes[4]; + ArrayList nodes[TOTAL_COLUMNS]; PrefsRenderFarmEditNode *edit_node; PrefsRenderFarmPort *edit_port; PrefsRenderFarmNodes *node_list; + PrefsRenderFarmWatchdog *renderfarm_watchdog; FormatTools *brender_tools; BC_Title *master_rate; - PrefsFFMPEGEarlyProbe *ffmpeg_early_probe; - PrefsYUV420P_DVDlace *yuv420p_dvdlace; - PrefsFFMPEGMarkerIndecies *ffmpeg_marker_indexes; }; - class PrefsUseBRender : public BC_CheckBox { public: - PrefsUseBRender(PreferencesWindow *pwindow, - int x, - int y); + PrefsUseBRender(PreferencesWindow *pwindow, + int x, int y); int handle_event(); PreferencesWindow *pwindow; }; @@ -80,36 +78,33 @@ public: class PrefsBRenderFragment : public BC_TumbleTextBox { public: - PrefsBRenderFragment(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, - int y); + PrefsBRenderFragment(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); int handle_event(); PreferencesWindow *pwindow; }; - - class PrefsRenderPreroll : public BC_TumbleTextBox { public: - PrefsRenderPreroll(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, + PrefsRenderPreroll(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); ~PrefsRenderPreroll(); - + int handle_event(); - + PreferencesWindow *pwindow; }; class PrefsBRenderPreroll : public BC_TumbleTextBox { public: - PrefsBRenderPreroll(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, + PrefsBRenderPreroll(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); int handle_event(); PreferencesWindow *pwindow; @@ -121,39 +116,8 @@ public: PrefsForceUniprocessor(PreferencesWindow *pwindow, int x, int y); ~PrefsForceUniprocessor(); int handle_event(); - - PreferencesWindow *pwindow; -}; - -class PrefsTrapSigSEGV : public BC_CheckBox -{ -public: - PrefsTrapSigSEGV(PerformancePrefs *perf_prefs, int x, int y); - ~PrefsTrapSigSEGV(); - int handle_event(); - - PerformancePrefs *perf_prefs; -}; -class PrefsTrapSigINTR : public BC_CheckBox -{ -public: - PrefsTrapSigINTR(PerformancePrefs *perf_prefs, int x, int y); - ~PrefsTrapSigINTR(); - int handle_event(); - - PerformancePrefs *perf_prefs; -}; - -class PrefsFFMPEGEarlyProbe : public BC_CheckBox -{ -public: - PrefsFFMPEGEarlyProbe(PerformancePrefs *perf_prefs, int x, int y); - ~PrefsFFMPEGEarlyProbe(); - - int handle_event(); - - PerformancePrefs *perf_prefs; + PreferencesWindow *pwindow; }; class PrefsFFMPEGMarkerIndecies : public BC_CheckBox @@ -161,24 +125,20 @@ class PrefsFFMPEGMarkerIndecies : public BC_CheckBox public: PrefsFFMPEGMarkerIndecies(PerformancePrefs *perf_prefs, int x, int y); ~PrefsFFMPEGMarkerIndecies(); - + int handle_event(); PerformancePrefs *perf_prefs; }; - - - class PrefsRenderFarm : public BC_CheckBox { public: PrefsRenderFarm(PreferencesWindow *pwindow, int x, int y); ~PrefsRenderFarm(); - + int handle_event(); - - + PreferencesWindow *pwindow; }; @@ -187,10 +147,9 @@ class PrefsRenderFarmConsolidate : public BC_CheckBox public: PrefsRenderFarmConsolidate(PreferencesWindow *pwindow, int x, int y); ~PrefsRenderFarmConsolidate(); - + int handle_event(); - - + PreferencesWindow *pwindow; }; @@ -198,24 +157,23 @@ public: class PrefsRenderFarmPort : public BC_TumbleTextBox { public: - PrefsRenderFarmPort(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, - int y); + PrefsRenderFarmPort(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); ~PrefsRenderFarmPort(); - + int handle_event(); - + PreferencesWindow *pwindow; }; class PrefsProjectSMP : public BC_TumbleTextBox { public: - PrefsProjectSMP(PreferencesWindow *pwindow, + PrefsProjectSMP(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsProjectSMP(); - + int handle_event(); PreferencesWindow *pwindow; }; @@ -223,28 +181,26 @@ public: class PrefsRenderFarmJobs : public BC_TumbleTextBox { public: - PrefsRenderFarmJobs(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, - int y); + PrefsRenderFarmJobs(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); ~PrefsRenderFarmJobs(); - + int handle_event(); - + PreferencesWindow *pwindow; }; class PrefsRenderFarmMountpoint : public BC_TextBox { public: - PrefsRenderFarmMountpoint(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, - int y); + PrefsRenderFarmMountpoint(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); ~PrefsRenderFarmMountpoint(); - + int handle_event(); - + PreferencesWindow *pwindow; PerformancePrefs *subwindow; }; @@ -266,11 +222,15 @@ class PrefsRenderFarmNodes : public BC_ListBox public: PrefsRenderFarmNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsRenderFarmNodes(); - + int handle_event(); int selection_changed(); int column_resize_event(); - + void update_list(); + + const char *titles[PerformancePrefs::TOTAL_COLUMNS]; + int widths[PerformancePrefs::TOTAL_COLUMNS]; + PreferencesWindow *pwindow; PerformancePrefs *subwindow; }; @@ -280,9 +240,9 @@ class PrefsRenderFarmEditNode : public BC_TextBox public: PrefsRenderFarmEditNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsRenderFarmEditNode(); - + int handle_event(); - + PerformancePrefs *subwindow; PreferencesWindow *pwindow; }; @@ -292,10 +252,10 @@ class PrefsRenderFarmNewNode : public BC_GenericButton public: PrefsRenderFarmNewNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsRenderFarmNewNode(); - + int handle_event(); - - + + PerformancePrefs *subwindow; PreferencesWindow *pwindow; }; @@ -303,15 +263,15 @@ public: class PrefsRenderFarmReplaceNode : public BC_GenericButton { public: - PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, + PrefsRenderFarmReplaceNode(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, + int x, int y); ~PrefsRenderFarmReplaceNode(); - + int handle_event(); - - + + PerformancePrefs *subwindow; PreferencesWindow *pwindow; }; @@ -321,11 +281,10 @@ class PrefsRenderFarmDelNode : public BC_GenericButton public: PrefsRenderFarmDelNode(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsRenderFarmDelNode(); - + int handle_event(); - + PerformancePrefs *subwindow; - PreferencesWindow *pwindow; }; @@ -334,34 +293,30 @@ class PrefsRenderFarmSortNodes : public BC_GenericButton public: PrefsRenderFarmSortNodes(PreferencesWindow *pwindow, PerformancePrefs *subwindow, int x, int y); ~PrefsRenderFarmSortNodes(); - + int handle_event(); - + PerformancePrefs *subwindow; PreferencesWindow *pwindow; }; - class PrefsRenderFarmReset : public BC_GenericButton { public: - PrefsRenderFarmReset(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, int y); - + PrefsRenderFarmReset(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, int x, int y); + int handle_event(); - + PerformancePrefs *subwindow; PreferencesWindow *pwindow; }; - -class PrefsYUV420P_DVDlace : public BC_CheckBox +class PrefsRenderFarmWatchdog : public BC_TumbleTextBox { public: - PrefsYUV420P_DVDlace(PreferencesWindow *pwindow, - PerformancePrefs *subwindow, - int x, int y); + PrefsRenderFarmWatchdog(PreferencesWindow *pwindow, + PerformancePrefs *subwindow, int x, int y); int handle_event(); @@ -370,16 +325,17 @@ public: }; - class CICacheSize : public BC_TumbleTextBox { public: - CICacheSize(int x, - int y, - PreferencesWindow *pwindow, + CICacheSize(int x, int y, + PreferencesWindow *pwindow, PerformancePrefs *subwindow); + int handle_event(); + PreferencesWindow *pwindow; }; + #endif