[vlc-commits] qml: appropriately set mipmap on Player cover to reduce noise

Prince Gupta git at videolan.org
Mon Mar 15 10:32:55 UTC 2021


vlc | branch: master | Prince Gupta <guptaprince8832 at gmail.com> | Fri Feb  5 17:50:50 2021 +0530| [0b3945510995e112ed7f5386abaca5f03c8ae9c2] | committer: Pierre Lamot

qml: appropriately set mipmap on Player cover to reduce noise

Signed-off-by: Pierre Lamot <pierre at videolabs.io>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b3945510995e112ed7f5386abaca5f03c8ae9c2
---

 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 {



More information about the vlc-commits mailing list