Skip to content

Commit

Permalink
PSV: Force to use hardware decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Oct 22, 2024
1 parent f52043d commit 7d5fa8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wiliwili/source/activity/setting_activity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ void SettingActivity::onContentAvailable() {
"wiliwili/setting/app/network/proxy_hint"_i18n, "wiliwili/setting/app/network/proxy_hint"_i18n, 64);

/// Hardware decode
#ifdef PS4
#if defined(PS4) || defined(__PSV__)
btnHWDEC->setVisibility(brls::Visibility::GONE);
#else
btnHWDEC->init("wiliwili/setting/app/playback/hwdec"_i18n, conf.getBoolOption(SettingItem::PLAYER_HWDEC),
Expand Down
4 changes: 4 additions & 0 deletions wiliwili/source/utils/config_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,11 @@ void ProgramConfig::load() {
VideoView::HIGHLIGHT_PROGRESS_BAR = getBoolOption(SettingItem::PLAYER_HIGHLIGHT_BAR);

// 初始化是否使用硬件加速
#ifdef __PSV__
MPVCore::HARDWARE_DEC = true;
#else
MPVCore::HARDWARE_DEC = getBoolOption(SettingItem::PLAYER_HWDEC);
#endif

// 初始化自定义的硬件加速方案
MPVCore::PLAYER_HWDEC_METHOD = getSettingItem(SettingItem::PLAYER_HWDEC_CUSTOM, MPVCore::PLAYER_HWDEC_METHOD);
Expand Down

0 comments on commit 7d5fa8b

Please sign in to comment.