projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgrades to scopewindow, add blurbox, bd.sh sed tab test, tweak clk2play over window...
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
mwindow.C
diff --git
a/cinelerra-5.1/cinelerra/mwindow.C
b/cinelerra-5.1/cinelerra/mwindow.C
index 86e15ad796aeb7d994ec9e1f996f36a40c15311c..93e0a457aba68912903ef05b7d5fe21e10700cc1 100644
(file)
--- a/
cinelerra-5.1/cinelerra/mwindow.C
+++ b/
cinelerra-5.1/cinelerra/mwindow.C
@@
-5085,3
+5085,13
@@
PatchGUI *MWindow::get_patchgui(Track *track)
return patchgui;
}
return patchgui;
}
+int MWindow::get_cpus()
+{
+ int out_w = edl->session->output_w;
+ int out_h = edl->session->output_h;
+ int cpus = out_w*out_h/0x80000 + 1;
+ if( cpus > preferences->processors )
+ cpus = preferences->processors;
+ return cpus;
+}
+