Skip to content

Commit 4020642

Browse files
authored
Merge pull request #4012 from OpenShot/profiling-improvements
Refactor due to profiling improvements (in libopenshot)
2 parents 14ecc51 + 07c43f6 commit 4020642

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2917
-2835
lines changed

src/effects/icons/bars.png

-254 Bytes

src/effects/icons/blur.png

-441 Bytes

src/effects/icons/brightness.png

-1.6 KB

src/effects/icons/caption.png

-1.37 KB

src/effects/icons/chromakey.png

-1002 Bytes

src/effects/icons/colorshift.png

-963 Bytes

src/effects/icons/crop.png

1.53 KB

src/effects/icons/deinterlace.png

-1.06 KB

src/effects/icons/hue.png

-245 Bytes

src/effects/icons/mask.png

-972 Bytes

src/effects/icons/negate.png

-493 Bytes

src/effects/icons/objectdetector.png

1.89 KB

src/effects/icons/pixelate.png

-491 Bytes

src/effects/icons/saturation.png

-2.75 KB

src/effects/icons/shift.png

-1.05 KB

src/effects/icons/stabilizer.png

-2.19 KB

src/effects/icons/tracker.png

-2.67 KB

src/effects/icons/wave.png

-920 Bytes

src/images/cache/NewWebsite.png

-9.06 KB
Binary file not shown.

src/images/cache/bars.png

-100 Bytes

src/images/cache/blur.png

2.36 KB

src/images/cache/brightness.png

763 Bytes

src/images/cache/caption.png

-747 Bytes

src/images/cache/chromakey.png

934 Bytes

src/images/cache/colorshift.png

1.5 KB

src/images/cache/crop.png

4.85 KB

src/images/cache/deinterlace.png

5.91 KB

src/images/cache/hue.png

1.97 KB

src/images/cache/mask.png

1.38 KB

src/images/cache/negate.png

1.91 KB

src/images/cache/objectdetector.png

1.36 KB

src/images/cache/pixelate.png

1.9 KB

src/images/cache/saturation.png

728 Bytes

src/images/cache/shift.png

1.54 KB

src/images/cache/stabilizer.png

-1.08 KB

src/images/cache/tracker.png

-1.09 KB

src/images/cache/wave.png

826 Bytes

src/language/OpenShot/OpenShot.pot

+1,413-1,297
Large diffs are not rendered by default.

src/language/OpenShot/OpenShot_blender.pot

+226-226
Large diffs are not rendered by default.

src/language/OpenShot/OpenShot_emojis.pot

+958-958
Large diffs are not rendered by default.

src/language/OpenShot/OpenShot_transitions.pot

+316-316
Large diffs are not rendered by default.

src/settings/_default.settings

-8
Original file line numberDiff line numberDiff line change
@@ -422,14 +422,6 @@
422422
"values": [],
423423
"restart": true
424424
},
425-
{
426-
"value": true,
427-
"title": "Process Video Frames in Parallel (Experimental)",
428-
"type": "bool",
429-
"restart": false,
430-
"category": "Performance",
431-
"setting": "omp_threads_enabled"
432-
},
433425
{
434426
"min": 0,
435427
"max": 128,

src/windows/export.py

+1-16
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class Export(QDialog):
6767

6868
ExportStarted = pyqtSignal(str, int, int)
6969
ExportFrame = pyqtSignal(str, int, int, int, str)
70-
ExportEnded = pyqtSignal(str)
70+
ExportEnded = pyqtSignal(str)
7171

7272
def __init__(self, *args, **kwargs):
7373
super().__init__(*args, **kwargs)
@@ -111,7 +111,6 @@ def __init__(self, *args, **kwargs):
111111
self.txtChannels.setVisible(False)
112112

113113
# Set OMP thread disabled flag (for stability)
114-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
115114
openshot.Settings.Instance().HIGH_QUALITY_SCALING = True
116115

117116
project_timeline = get_app().window.timeline_sync.timeline
@@ -1012,12 +1011,6 @@ def titlestring(sec, fps, mess):
10121011
# Clear all cache
10131012
self.timeline.ClearAllCache()
10141013

1015-
# Re-set OMP thread enabled flag
1016-
if self.s.get("omp_threads_enabled"):
1017-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
1018-
else:
1019-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
1020-
10211014
# Return scale mode to lower quality scaling (for faster previews)
10221015
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
10231016

@@ -1066,14 +1059,6 @@ def reject(self):
10661059
# Resume export
10671060
return
10681061

1069-
# Re-set OMP thread enabled flag
1070-
# NOTE: This is always called when closing the export modal, and thus
1071-
# the keyframes are always scaled back to the original FPS if needed.
1072-
if self.s.get("omp_threads_enabled"):
1073-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
1074-
else:
1075-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
1076-
10771062
# Return scale mode to lower quality scaling (for faster previews)
10781063
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
10791064

src/windows/main_window.py

-6
Original file line numberDiff line numberDiff line change
@@ -2927,12 +2927,6 @@ def __init__(self, *args, mode=None):
29272927
else:
29282928
openshot.Settings.Instance().PLAYBACK_AUDIO_DEVICE_NAME = ""
29292929

2930-
# Set OMP thread enabled flag (for stability)
2931-
if s.get("omp_threads_enabled"):
2932-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
2933-
else:
2934-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
2935-
29362930
# Set scaling mode to lower quality scaling (for faster previews)
29372931
openshot.Settings.Instance().HIGH_QUALITY_SCALING = False
29382932

src/windows/preferences.py

-8
Original file line numberDiff line numberDiff line change
@@ -485,14 +485,6 @@ def bool_value_changed(self, widget, param, state):
485485
# Stop autosave timer
486486
get_app().window.auto_save_timer.stop()
487487

488-
elif param["setting"] == "omp_threads_enabled":
489-
if (state == Qt.Checked):
490-
# Enable OMP multi-threading
491-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = False
492-
else:
493-
# Disable OMP multi-threading
494-
openshot.Settings.Instance().WAIT_FOR_VIDEO_PROCESSING_TASK = True
495-
496488
# Check for restart
497489
self.check_for_restart(param)
498490

src/windows/ui/main-window.ui

+3
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@
372372
<attribute name="dockWidgetArea">
373373
<number>4</number>
374374
</attribute>
375+
<property name="visible">
376+
<bool>false</bool>
377+
</property>
375378
<widget class="QWidget" name="dockWidgetContentsCaption">
376379
<layout class="QGridLayout" name="gridLayoutCaption">
377380
<property name="leftMargin">

0 commit comments

Comments
 (0)