Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/eagle #510

Merged
merged 22 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e9cd05e
fix: 修复影院无法退出问题 (#451)
pengfeixx Apr 19, 2024
7147f68
chore: Update changelog (#453)
pengfeixx Apr 19, 2024
dfcdaa5
fix: rx550显卡下设置自动异常 (#455)
pengfeixx Apr 28, 2024
a474a90
fix: 头文件隐藏缩略图接口 (#454)
pengfeixx Apr 28, 2024
1e5e4b2
fix: the overflow bug of deepin-movie
lJxDabab May 9, 2024
db209c8
fix: 应用层检测到屏幕后对应用进行移动
myk1343 May 15, 2024
7711b93
fix: Fix the smearing screen of the mega core (#458)
pengfeixx May 16, 2024
9eefc62
fix: Remove invalid dependencies (#459)
pengfeixx May 22, 2024
74e7c52
fix: 修复视频暂停/播放提示会透过文件显示问题
myk1343 May 22, 2024
8d4cf51
fix: Fixed mute start-up squeak (#462)
pengfeixx May 23, 2024
2309232
fix: the mircast window display in error place (#463)
add-uos May 24, 2024
bfc49e3
fix: Fixed abnormal volume interaction (#472)
pengfeixx May 30, 2024
99151b9
fix: Fixed pointer usage errors (#471)
pengfeixx May 30, 2024
03970c7
fix: Fix possible crashes caused by mouse release events
starhcq May 29, 2024
804cb6c
fix: Remove Thumbnailer dependency (#473)
pengfeixx Jun 6, 2024
4eead0b
fix: 修复双屏切换影院界面无法正常显示问题
myk1343 Jun 6, 2024
0918acf
Revert "fix: Remove Thumbnailer dependency (#473)" (#477)
pengfeixx Jun 14, 2024
714c75f
fix: Adapt to Jingjiawei graphics card application and call libdmr to…
myk1343 Jun 27, 2024
80dea86
fix: 加入推荐依赖va-driver-all
myk1343 Jul 26, 2024
5c935a5
fix: Arise1020 显卡使用vaapi渲染,修复偶尔音频无声问题
myk1343 Aug 5, 2024
359c0b7
fix: 修复全屏后切换迷你模式,右键菜单中的全屏勾选状态显示错误
myk1343 Aug 16, 2024
7db5d5c
fix: merge release 1070
myk1343 Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 3 additions & 29 deletions assets/resources/data/lowEffectSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"options": [
{
"key": "crash",
"type": "combobox",
"type": "checkbox",
"hide": true,
"default": 0
"default": false
}
]
}
Expand Down Expand Up @@ -149,35 +149,9 @@
"items": [
"Auto select (Recommended)",
"Hardware decoding",
"Software decoding",
"Customize"
"Software decoding"
],
"default": 0
},
{
"key": "Effect",
"name": "Rendering engine",
"type": "effectCombobox",
"items": [
"",
"OpenGL",
"MPV"
],
"default": 0
},
{
"key": "Videoout",
"name": "Video out",
"hide": false,
"type": "videoOutCombobox",
"default": 0
},
{
"key": "Decodemode",
"name": "Decode mode",
"hide": false,
"type": "decoderCombobox",
"default": 0
}
]
},
Expand Down
32 changes: 3 additions & 29 deletions assets/resources/data/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"options": [
{
"key": "crash",
"type": "combobox",
"type": "checkbox",
"hide": true,
"default": 0
"default": false
}
]
}
Expand Down Expand Up @@ -156,35 +156,9 @@
"items": [
"Auto select (Recommended)",
"Hardware decoding",
"Software decoding",
"Customize"
"Software decoding"
],
"default": 0
},
{
"key": "Effect",
"name": "Rendering engine",
"type": "effectCombobox",
"items": [
" ",
"OpenGL",
"MPV"
],
"default": 0
},
{
"key": "Videoout",
"name": "Video out",
"hide": false,
"type": "videoOutCombobox",
"default": 0
},
{
"key": "Decodemode",
"name": "Decode mode",
"hide": false,
"type": "decoderCombobox",
"default": 0
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
deepin-movie-reborn (5.10.51) unstable; urgency=medium

* feat: Added new settings for movie
* merge release 1070.

-- xiepengfei <xiepengfei@uniontech.com> Wed, 02 Jul 2024 15:48:47 +0800
-- muyuanakai <muyuanakai@uniontech.com> Thu, 22 Aug 2024 16:22:22 +0800

deepin-movie-reborn (5.10.50) unstable; urgency=medium

Expand Down
6 changes: 3 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ Homepage: https://www.deepin.org/

Package: deepin-movie
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, va-driver-all, libavcodec58(>= 7:4.0) | libavcodec60(>= 7:6.0), libavformat58(>= 7:4.1) | libavformat60(>= 7:6.0), libavutil56(>= 7:4.0) | libavutil58(>= 7:6.0), libffmpegthumbnailer4v5, libmpv1(>= 0.29) | libmpv2(>= 0.36), libpulse0(>= 0.99.1), libqt5concurrent5, libmpris-qt5-1, libgstreamer-plugins-base1.0-0 (>= 1.0.0), libgstreamer1.0-0 (>= 1.4.0)
Recommends: libgpuinfo, uos-reporter, deepin-event-log
Depends: ${shlibs:Depends}, ${misc:Depends}, libavcodec58(>= 7:4.0), libavformat58(>= 7:4.1), libavutil56(>= 7:4.0), libffmpegthumbnailer4v5, libmpv1(>= 0.29), libpulse0(>= 0.99.1), libqt5concurrent5, libmpris-qt5-1, libgstreamer-plugins-base1.0-0 (>= 1.0.0), libgstreamer1.0-0 (>= 1.4.0)
Recommends: libgpuinfo, uos-reporter, deepin-event-log, va-driver-all
Description: movie player
Movie is a full-featured video player, supporting playing local and streaming media in multiple video formats.

Package: libdmr
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libavcodec58(>= 7:4.0) | libavcodec60(>= 7:6.0), libavformat58(>= 7:4.1) | libavformat60(>= 7:6.0), libavutil56(>= 7:4.0) | libavutil58(>= 7:6.0), libffmpegthumbnailer4v5, libmpv1(>= 0.29) | libmpv2(>= 0.36), libpulse0(>= 0.99.1), libqt5concurrent5, libmpris-qt5-1, libgstreamer-plugins-base1.0-0 (>= 1.0.0), libgstreamer1.0-0 (>= 1.4.0)
Depends: ${shlibs:Depends}, ${misc:Depends}, libavcodec58(>= 7:4.0), libavformat58(>= 7:4.1), libavutil56(>= 7:4.0), libffmpegthumbnailer4v5, libmpv1(>= 0.29), libpulse0(>= 0.99.1), libqt5concurrent5, libmpris-qt5-1, libgstreamer-plugins-base1.0-0 (>= 1.0.0), libgstreamer1.0-0 (>= 1.4.0)
Multi-Arch: same
Description: movie player widget library
deepin movie player widget library
Expand Down
46 changes: 1 addition & 45 deletions src/backends/mpv/mpv_glwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ DWIDGET_USE_NAMESPACE
#endif

static const char *vs_blend = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
attribute vec2 position;
attribute vec2 vTexCoord;

Expand All @@ -51,11 +46,6 @@ void main() {
)";

static const char* fs_blend = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;

uniform sampler2D movie;
Expand All @@ -67,8 +57,6 @@ void main() {

static const char* fs_blend_wayland = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;
Expand All @@ -81,11 +69,6 @@ void main() {
)";

static const char* vs_blend_corner = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
attribute vec2 position;
attribute vec2 maskTexCoord;
attribute vec2 vTexCoord;
Expand All @@ -101,11 +84,6 @@ void main() {
)";

static const char* fs_blend_corner = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 maskCoord;
varying vec2 texCoord;

Expand All @@ -119,8 +97,6 @@ void main() {

static const char* fs_blend_corner_wayland = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 maskCoord;
Expand All @@ -135,12 +111,6 @@ void main() {
)";

static const char* vs_code = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif

attribute vec2 position;
attribute vec2 vTexCoord;

Expand All @@ -153,11 +123,6 @@ void main() {
)";

static const char* fs_code = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;

uniform sampler2D sampler;
Expand All @@ -171,8 +136,6 @@ void main() {

static const char* fs_code_wayland = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;
Expand All @@ -187,11 +150,6 @@ void main() {
)";

static const char* fs_corner_code = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;

uniform sampler2D corner;
Expand All @@ -205,8 +163,6 @@ void main() {

static const char* fs_corner_code_wayland = R"(
#ifdef GL_ES
// Set default precision to medium
precision mediump int;
precision mediump float;
#endif
varying vec2 texCoord;
Expand Down Expand Up @@ -1072,7 +1028,7 @@ namespace dmr {
void MpvGLWidget::initMpvFuns()
{
qInfo() << "MpvGLWidget开始initMpvFuns";
QLibrary mpvLibrary(libPath("libmpv.so"));
QLibrary mpvLibrary(libPath("libmpv.so.1"));
m_callback = reinterpret_cast<mpv_render_contextSet_update_callback>(mpvLibrary.resolve("mpv_render_context_set_update_callback"));
m_context_report = reinterpret_cast<mpv_render_contextReport_swap>(mpvLibrary.resolve("mpv_render_context_report_swap"));
m_renderContex = reinterpret_cast<mpv_renderContext_free>(mpvLibrary.resolve("mpv_render_context_free"));
Expand Down
62 changes: 17 additions & 45 deletions src/backends/mpv/mpv_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void MpvProxy::setDecodeModel(const QVariant &value)

void MpvProxy::initMpvFuns()
{
QLibrary mpvLibrary(libPath("libmpv.so"));
QLibrary mpvLibrary(libPath("libmpv.so.1"));

m_waitEvent = reinterpret_cast<mpv_waitEvent>(mpvLibrary.resolve("mpv_wait_event"));
m_setOptionString = reinterpret_cast<mpv_set_optionString>(mpvLibrary.resolve("mpv_set_option_string"));
Expand Down Expand Up @@ -422,11 +422,6 @@ mpv_handle *MpvProxy::mpv_init()
my_set_property(pHandle, "vo", "gpu,xv,x11");
m_sInitVo = "gpu,xv,x11";
}
if (CompositingManager::get().isSpecialControls()) {
my_set_property(pHandle, "hwdec", "vaapi");
my_set_property(pHandle, "vo", "vaapi");
m_sInitVo = "vaapi";
}
#else
//去除9200显卡适配
QFileInfo sjmfi("/dev/jmgpu");
Expand Down Expand Up @@ -480,6 +475,12 @@ mpv_handle *MpvProxy::mpv_init()
my_set_property(pHandle, "vo", "gpu,x11");
m_sInitVo = "gpu,x11";
}

if (CompositingManager::get().isSpecialControls()) {
my_set_property(pHandle, "hwdec", "vaapi");
my_set_property(pHandle, "vo", "vaapi");
m_sInitVo = "vaapi";
}
} else { //3.设置硬解
QFileInfo fi("/dev/mwv206_0");
QFileInfo jmfi("/dev/jmgpu");
Expand Down Expand Up @@ -653,23 +654,6 @@ mpv_handle *MpvProxy::mpv_init()

//设置hwdec和vo配置
CompositingManager::get().getMpvConfig(m_pConfig);
#ifndef _LIBDMR_
if (Settings::get().settings()->getOption(QString("base.decode.select")).toInt() == 3) {
int decodeIndex = Settings::get().settings()->getOption(QString("base.decode.Decodemode")).toInt();
auto decodeModeOpt = Settings::get().settings()->option("base.decode.Decodemode");
QString decodeMode = decodeModeOpt.data()->data("items").toStringList()[decodeIndex];
decodeMode = decodeMode.isEmpty() ? "auto" : decodeMode;
m_pConfig->insert("hwdec", decodeMode);

if (!CompositingManager::get().composited()) {
int voIndex = Settings::get().settings()->getOption(QString("base.decode.Videoout")).toInt();
auto voOpt = Settings::get().settings()->option("base.decode.Videoout");
QString voMode = voOpt.data()->data("items").toStringList()[voIndex];
voMode = voMode.isEmpty() ? "auto" : voMode;
m_pConfig->insert("vo", voMode);
}
}
#endif
QMap<QString, QString>::iterator iter = m_pConfig->begin();
qInfo() << __func__ << "First set mpv propertys!!";
while (iter != m_pConfig->end()) {
Expand Down Expand Up @@ -1291,6 +1275,9 @@ void MpvProxy::refreshDecode()
if(!isSoftCodec && !CompositingManager::get().isZXIntgraphics() && !jmflag && !x100flag) {
isSoftCodec = !isSurportHardWareDecode(codec, currentInfo.mi.width, currentInfo.mi.height);
}
if (CompositingManager::get().isZXIntgraphics() && !jmflag) {
isSoftCodec = codec.contains("vp8") && (currentInfo.mi.width > 1920 || currentInfo.mi.height > 1080);
}
#endif
if(utils::check_wayland_env()){
PlaylistModel *playMode = dynamic_cast<PlayerEngine *>(m_pParentWidget)->getplaylist();
Expand Down Expand Up @@ -1327,6 +1314,9 @@ void MpvProxy::refreshDecode()
my_set_property(m_handle, "hwdec", "auto");
}
}
#ifdef _LIBDMR_
my_set_property(m_handle, "vo", "libmpv,opengl-cb");
#endif
} else if (X100GPU.exists() && X100VPU.exists()) {
my_set_property(m_handle, "hwdec", "ftomx-copy");
my_set_property(m_handle, "vo", "gpu");
Expand Down Expand Up @@ -1395,6 +1385,9 @@ void MpvProxy::refreshDecode()
}else {
my_set_property(m_handle, "hwdec", "auto");
}
#ifdef _LIBDMR_
my_set_property(m_handle, "vo", "libmpv,opengl-cb");
#endif
} else if (X100GPU.exists() && X100VPU.exists()) {
my_set_property(m_handle, "hwdec", "ftomx-copy");
my_set_property(m_handle, "vo", "gpu");
Expand Down Expand Up @@ -1423,23 +1416,6 @@ void MpvProxy::refreshDecode()

//play.conf
CompositingManager::get().getMpvConfig(m_pConfig);
#ifndef _LIBDMR_
if (Settings::get().settings()->getOption(QString("base.decode.select")).toInt() == 3) {
int decodeIndex = Settings::get().settings()->getOption(QString("base.decode.Decodemode")).toInt();
auto decodeModeOpt = Settings::get().settings()->option("base.decode.Decodemode");
QString decodeMode = decodeModeOpt.data()->data("items").toStringList()[decodeIndex];
decodeMode = decodeMode.isEmpty() ? "auto" : decodeMode;
m_pConfig->insert("hwdec", decodeMode);

if (!CompositingManager::get().composited()) {
int voIndex = Settings::get().settings()->getOption(QString("base.decode.Videoout")).toInt();
auto voOpt = Settings::get().settings()->option("base.Customize.Videoout");
QString voMode = voOpt.data()->data("items").toStringList()[voIndex];
voMode = voMode.isEmpty() ? "auto" : voMode;
m_pConfig->insert("vo", voMode);
}
}
#endif
QMap<QString, QString>::iterator iter = m_pConfig->begin();
while (iter != m_pConfig->end()) {
if (iter.key().contains(QString("hwdec"))) {
Expand Down Expand Up @@ -1565,11 +1541,7 @@ void MpvProxy::play()
}

if (listOpts.size()) {
listArgs << "replace";
if (MPV_CLIENT_API_VERSION >= MPV_MAKE_VERSION(2,3)) {
listArgs << "-1";
}
listArgs << listOpts.join(',');
listArgs << "replace" << listOpts.join(',');
}

qInfo() << listArgs;
Expand Down
2 changes: 1 addition & 1 deletion src/backends/mpv/mpv_proxy.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MpvHandle
explicit container(mpv_handle *pHandle) : m_pHandle(pHandle) {}
~container()
{
mpv_terminateDestroy func = (mpv_terminateDestroy)QLibrary::resolve(libPath("libmpv.so"), "mpv_terminate_destroy");
mpv_terminateDestroy func = (mpv_terminateDestroy)QLibrary::resolve(libPath("libmpv.so.1"), "mpv_terminate_destroy");
func(m_pHandle);
}
mpv_handle *m_pHandle;
Expand Down
Loading
Loading