[Bug 743716] New: A bug in 'videomaterial.cpp' and 'openglsurfacepainter.cpp' causes incorrect colors

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 29 13:58:05 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=743716
  GStreamer | qt-gstreamer | 1.2.0

           Summary: A bug in 'videomaterial.cpp' and
                    'openglsurfacepainter.cpp' causes incorrect colors
    Classification: Platform
           Product: GStreamer
           Version: 1.2.0
        OS/Version: Windows
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: qt-gstreamer
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: duffy-patrick at msn.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Colors for the following formats appear to be swapped in the selection for the
matrix corrections in both of theses files:


case GST_VIDEO_COLOR_MATRIX_BT709:
        m_colorMatrix *= QMatrix4x4(
                    1.164,  0.000,  1.793, -0.5727,
                    1.164, -0.534, -0.213,  0.3007,
                    1.164,  2.115,  0.000, -1.1302,
                    0.0,    0.000,  0.000,  1.0000);
        break;
case GST_VIDEO_COLOR_MATRIX_BT601:
        m_colorMatrix *= QMatrix4x4(
                    1.164,  0.000,  1.596, -0.8708,
                    1.164, -0.392, -0.813,  0.5296,
                    1.164,  2.017,  0.000, -1.081,
                    0.0,    0.000,  0.000,  1.0000);


Colors are correct when these are swapped like this:

case GST_VIDEO_COLOR_MATRIX_BT601:
        m_colorMatrix *= QMatrix4x4(
                    1.164,  0.000,  1.793, -0.5727,
                    1.164, -0.534, -0.213,  0.3007,
                    1.164,  2.115,  0.000, -1.1302,
                    0.0,    0.000,  0.000,  1.0000);
        break;
    case GST_VIDEO_COLOR_MATRIX_BT709:
        m_colorMatrix *= QMatrix4x4(
                    1.164,  0.000,  1.596, -0.8708,
                    1.164, -0.392, -0.813,  0.5296,
                    1.164,  2.017,  0.000, -1.081,
                    0.0,    0.000,  0.000,  1.0000);

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list