Skip to content

Commit

Permalink
feat(player): Add yuv420p as a debanding option (aniyomiorg#1124)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz authored and LuftVerbot committed Sep 30, 2023
1 parent 9ac5e45 commit 1648d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ object AdvancedPlayerSettingsScreen : SearchableSettings {
0 to context.getString(R.string.pref_debanding_disabled),
1 to context.getString(R.string.pref_debanding_cpu),
2 to context.getString(R.string.pref_debanding_gpu),
3 to "YUV420P",
),
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ class PlayerActivity : BaseActivity() {
when (playerPreferences.deband().get()) {
1 -> MPVLib.setOptionString("vf", "gradfun=radius=12")
2 -> MPVLib.setOptionString("deband", "yes")
3 -> MPVLib.setOptionString("vf", "format=yuv420p")
}

MPVLib.addLogObserver(playerObserver)
Expand Down

0 comments on commit 1648d64

Please sign in to comment.