Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2842

QMultimedia UYVY rendering is in lower image quality

XMLWordPrintable

    • Windows

      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.zip )
      • The application opens a raw UYVY file ( raw_uyvy.bin ) and convert it into two formats, UYVY ( rgb_from_uyvy.png ) and YUV422P ( 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 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. rgb_from_yuv422.png
          rgb_from_yuv422.png
          3.10 MB
        2. rgb_from_uyvy.png
          rgb_from_uyvy.png
          2.95 MB
        3. qt_bug_report_uyvy.zip
          2.03 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            crmaurei Cristian Maureira-Fredes
            hitoshiito Hitoshi Ito
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes