Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Scaling of QML VideoOutput/ShaderEffect (bilinear vs nearest-neighbour interpolation)
Forum Updated to NodeBB v4.3 + New Features

Scaling of QML VideoOutput/ShaderEffect (bilinear vs nearest-neighbour interpolation)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 432 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adrianf0
    wrote on last edited by adrianf0
    #1

    I have a problem with the low-resolution stream of a coloured grid being projected by QML VideoOutput and/or ShaderEffect. It becomes blur when I apply scale or anchors.fill (applies to VideoOutput only). I am not sure I am clear, but let's imagine that our original stream is a grid, e .g. a white-black chessboard. I would imagine that one could scale it to infinity preserving high quality/sharp output view (let's assume integer scale factor). Instead, I have the impression the mentioned QML objects use bilinear interpolation making the image blur, while I think in my case (more categorical than continuous data) the nearest-neighbour interpolation would be more appropriate. How to control this interpolation?
    I have tried to set the smooth property in VideoOutput to false, but it doesn't impact the view at all (it's still blurry).

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adrianf0
      wrote on last edited by adrianf0
      #2

      For VideOutput that does the trick:

          VideoOutput {
          ...
              layer.enabled: true
              smooth: false
          }
      

      Unfortunately, it does't work with ShaderEffetct (the image is still blurry):

          ShaderEffect {
          ...
              layer.enabled: true
              smooth: false
              scale = 10
          }
      
      1 Reply Last reply
      0
      • R Offline
        R Offline
        Ready
        wrote last edited by
        #3

        Hello, do you find the solution? I'm also using the VideoOutput to display my frames and it also becomes blurry. I tried your suggestion:

         VideoOutput {
            ...
                layer.enabled: true
                smooth: false
            }
        

        But this still doesn't help

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved