Skip to content

Commit

Permalink
add yuv420p as a debanding option
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz authored Sep 13, 2023
1 parent 8432086 commit 17adea7
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 17adea7

Please sign in to comment.