Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128246

QMultimedia UYVY rendering is in lower image quality

XMLWordPrintable

    • Windows
    • 425b4c89f (dev), c4995794a (6.8), 057413c7f (6.7), a64576463 (tqtc/lts-6.5)
    • Multimedia wk 31-32, Multimedia wk 35-38

      QMultimedia UYVY rendering is in lower image quality than other formats, for example YUV422P.

      Steps to reproduce the issue:

      • Run the attached example application. ( qt_bug_report_uyvy_cpp.zip )
      • The application opens a raw UYVY file ( raw_uyvy.bin ) and convert it in two ways :
        • Convert directly from UYVY to RGBA ( rgb_from_uyvy.png )
        • Copy the packed UYVY pixel data into planar YUV422P QVideoFrame and then convert it to RGB ( rgb_from_yuv422.png ).
      • rgb_from_uyvy.png will show blurry and blocky image compared to rgb_from_yuv422.png.

      The original application is using QtMultimedia to display a FullHD video, with getting UYVY frames from video feed from an external camera.
      Since the image quality was lower than expected, the original reporter investigated it, and reported this issue with the comments below:


      Could this be caused by the shader that does the UYVY rendering?
      https://github.com/qt/qtmultimedia/blob/6.8/src/multimedia/shaders/uyvy.frag

      If the texture lookup uses linear interpolation, wouldn't this shader interpolate between alternating Y components in the texture?

      This might also be related to the following commit:
      https://github.com/qt/qtmultimedia/commit/d58b6b908ea130e9422b08b5b3b460b48da7d337


        1. image-2024-08-21-12-57-22-379.png
          141 kB
          Jøger Hansegård
        2. qt_bug_report_uyvy_cpp.zip
          2.03 MB
          Hitoshi Ito
        3. rgb_from_uyvy.png
          2.95 MB
          Hitoshi Ito
        4. rgb_from_yuv422.png
          3.10 MB
          Hitoshi Ito
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            johanseg Jøger Hansegård
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes