Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openshot
Openshot Qt
提交
5e95b865
O
Openshot Qt
项目概览
openshot
/
Openshot Qt
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Openshot Qt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5e95b865
编写于
2月 17, 2021
作者:
J
Jonathan Thomas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removing some unused settings
上级
14ecc519
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
1 addition
and
42 deletion
+1
-42
src/language/OpenShot/OpenShot.pot
src/language/OpenShot/OpenShot.pot
+0
-4
src/settings/_default.settings
src/settings/_default.settings
+0
-8
src/windows/export.py
src/windows/export.py
+1
-16
src/windows/main_window.py
src/windows/main_window.py
+0
-6
src/windows/preferences.py
src/windows/preferences.py
+0
-8
未找到文件。
src/language/OpenShot/OpenShot.pot
浏览文件 @
5e95b865
...
...
@@ -2231,10 +2231,6 @@ msgstr ""
msgid "Debug Mode (Verbose)"
msgstr ""
#: Settings for omp_threads_enabled
msgid "Process Video Frames in Parallel (Experimental)"
msgstr ""
#: Settings for debug-port
msgid "Debug Mode (Port)"
msgstr ""
...
...
src/settings/_default.settings
浏览文件 @
5e95b865
...
...
@@ -422,14 +422,6 @@
"values": [],
"restart": true
},
{
"value": true,
"title": "Process Video Frames in Parallel (Experimental)",
"type": "bool",
"restart": false,
"category": "Performance",
"setting": "omp_threads_enabled"
},
{
"min": 0,
"max": 128,
...
...
src/windows/export.py
浏览文件 @
5e95b865
...
...
@@ -67,7 +67,7 @@ class Export(QDialog):
ExportStarted
=
pyqtSignal
(
str
,
int
,
int
)
ExportFrame
=
pyqtSignal
(
str
,
int
,
int
,
int
,
str
)
ExportEnded
=
pyqtSignal
(
str
)
ExportEnded
=
pyqtSignal
(
str
)
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
...
...
@@ -111,7 +111,6 @@ class Export(QDialog):
self
.
txtChannels
.
setVisible
(
False
)
# Set OMP thread disabled flag (for stability)
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
True
openshot
.
Settings
.
Instance
().
HIGH_QUALITY_SCALING
=
True
project_timeline
=
get_app
().
window
.
timeline_sync
.
timeline
...
...
@@ -1012,12 +1011,6 @@ class Export(QDialog):
# Clear all cache
self
.
timeline
.
ClearAllCache
()
# Re-set OMP thread enabled flag
if
self
.
s
.
get
(
"omp_threads_enabled"
):
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
False
else
:
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
True
# Return scale mode to lower quality scaling (for faster previews)
openshot
.
Settings
.
Instance
().
HIGH_QUALITY_SCALING
=
False
...
...
@@ -1066,14 +1059,6 @@ class Export(QDialog):
# Resume export
return
# Re-set OMP thread enabled flag
# NOTE: This is always called when closing the export modal, and thus
# the keyframes are always scaled back to the original FPS if needed.
if
self
.
s
.
get
(
"omp_threads_enabled"
):
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
False
else
:
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
True
# Return scale mode to lower quality scaling (for faster previews)
openshot
.
Settings
.
Instance
().
HIGH_QUALITY_SCALING
=
False
...
...
src/windows/main_window.py
浏览文件 @
5e95b865
...
...
@@ -2927,12 +2927,6 @@ class MainWindow(updates.UpdateWatcher, QMainWindow):
else
:
openshot
.
Settings
.
Instance
().
PLAYBACK_AUDIO_DEVICE_NAME
=
""
# Set OMP thread enabled flag (for stability)
if
s
.
get
(
"omp_threads_enabled"
):
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
False
else
:
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
True
# Set scaling mode to lower quality scaling (for faster previews)
openshot
.
Settings
.
Instance
().
HIGH_QUALITY_SCALING
=
False
...
...
src/windows/preferences.py
浏览文件 @
5e95b865
...
...
@@ -485,14 +485,6 @@ class Preferences(QDialog):
# Stop autosave timer
get_app
().
window
.
auto_save_timer
.
stop
()
elif
param
[
"setting"
]
==
"omp_threads_enabled"
:
if
(
state
==
Qt
.
Checked
):
# Enable OMP multi-threading
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
False
else
:
# Disable OMP multi-threading
openshot
.
Settings
.
Instance
().
WAIT_FOR_VIDEO_PROCESSING_TASK
=
True
# Check for restart
self
.
check_for_restart
(
param
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录