diff options
author | Toon Heyrman <toonheyrman@hotmail.com> | 2017-04-27 16:49:24 +0200 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2018-05-04 14:04:14 +0300 |
commit | 91c9011e901ccd713e225ac85b4c46e1689b98ce (patch) | |
tree | 4c41306feb4a03a1d7e8a8b4cc70e7753d9d24ad | |
parent | 0cf247bfb444973c5c36dde03f17c8192cb60b07 (diff) |
qt5glvideosink: fix of too much red value in video
The red value was too much in the video when using qt5glvideosink.
This was caused by a wrong color matrix.
https://bugzilla.gnome.org/show_bug.cgi?id=781816
-rw-r--r-- | elements/gstqtvideosink/painters/openglsurfacepainter.cpp | 6 | ||||
-rw-r--r-- | elements/gstqtvideosink/painters/videomaterial.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/elements/gstqtvideosink/painters/openglsurfacepainter.cpp b/elements/gstqtvideosink/painters/openglsurfacepainter.cpp index 6cae138..c9f2a77 100644 --- a/elements/gstqtvideosink/painters/openglsurfacepainter.cpp +++ b/elements/gstqtvideosink/painters/openglsurfacepainter.cpp @@ -146,9 +146,9 @@ void OpenGLSurfacePainter::updateColors(int brightness, int contrast, int hue, i #endif 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, + 1.164, 0.000, 1.793, -0.969, + 1.164, -0.213, -0.533, 0.300, + 1.164, 2.112, 0.000, -1.129, 0.0, 0.000, 0.000, 1.0000); break; case GST_VIDEO_COLOR_MATRIX_BT601: diff --git a/elements/gstqtvideosink/painters/videomaterial.cpp b/elements/gstqtvideosink/painters/videomaterial.cpp index 3073e6d..49a2f47 100644 --- a/elements/gstqtvideosink/painters/videomaterial.cpp +++ b/elements/gstqtvideosink/painters/videomaterial.cpp @@ -384,9 +384,9 @@ void VideoMaterial::updateColors(int brightness, int contrast, int hue, int satu switch (m_colorMatrixType) { 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, + 1.164, 0.000, 1.793, -0.969, + 1.164, -0.213, -0.533, 0.300, + 1.164, 2.112, 0.000, -1.129, 0.0, 0.000, 0.000, 1.0000); break; case GST_VIDEO_COLOR_MATRIX_BT601: |