[vlc-devel] [PATCH 08/25] qml: appropriately set mipmap on Player cover to reduce noise

Prince Gupta guptaprince8832 at gmail.com
Thu Mar 11 09:16:16 UTC 2021


---
 modules/gui/qt/player/qml/Player.qml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/player/qml/Player.qml b/modules/gui/qt/player/qml/Player.qml
index 7f9e8dadbe..d07baf625e 100644
--- a/modules/gui/qt/player/qml/Player.qml
+++ b/modules/gui/qt/player/qml/Player.qml
@@ -326,12 +326,13 @@ Widgets.NavigableFocusScope {
                 Image {
                     id: cover
 
-                    source: rootPlayer.coverSource
-                    fillMode: Image.PreserveAspectFit
-
                     //source aspect ratio
                     readonly property real sar: cover.sourceSize.width / cover.sourceSize.height
+
                     anchors.fill: parent
+                    source: rootPlayer.coverSource
+                    fillMode: Image.PreserveAspectFit
+                    mipmap: height < sourceSize.height * .3
                 }
 
                 Widgets.CoverShadow {
-- 
2.25.1



More information about the vlc-devel mailing list