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

Wrong colors when using Phonon GStreamer in QGraphicsView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.6.2
    • Multimedia
    • None

    Description

      When using Phonon with the GStreamer backed on linux inside QGraphicsView, the colors are wrong, it is like being in BGR instead of RGB.
      The problem can be fixed by swapping the QImage that is created for every frame (see attached patcg), but I somewhat doubt this is the correct fix, as
      a) it works if it is not in QGV
      b) similar code is in qglrenderer.cpp, but that doesn't seem to be used even if the QGV widget is a QGLWidget

      Luckily and strangely, even with the swapping playing works e.g in Dragon Player from KDE as it is supposed to be.

      See the solution, two example images, a testcase and an example movie (but for me happens for every movie file)

      Attachments

        1. a6_schanze1986_mbr_de_wm64.wmv
          2.60 MB
        2. bgrfix.patch
          0.5 kB
        3. main.cpp
          1 kB
        4. phonon-bad.png
          phonon-bad.png
          94 kB
        5. phonon-good.png
          phonon-good.png
          97 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            janichol Andy Nichols
            andras@kdab.com Andras Mantia
            Votes:
            12 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes