diff options
author | Christian Strømme <christian.stromme@qt.io> | 2023-11-10 10:05:23 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-11-10 18:09:05 +0000 |
commit | 0be7b04e3af623ab618491de746a6c3bc80e304a (patch) | |
tree | a3bd4cef8cb71890906013a965bc06fc0ded7557 | |
parent | 8ee1ca1cd402b0908c2391e2110d71660b27512f (diff) |
Fix full range color transform matrix for the 709 YCbCr to RGB
Fixes: QTBUG-117744
Pick-to: 6.5
Change-Id: I9f80add59986a6bd8aa1947a2804097e84eea2d5
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
(cherry picked from commit 20d503cd5795197276959f73d338e790d43b56ec)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/multimedia/video/qvideotexturehelper.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/multimedia/video/qvideotexturehelper.cpp b/src/multimedia/video/qvideotexturehelper.cpp index 9ba7cddf2..ba888994d 100644 --- a/src/multimedia/video/qvideotexturehelper.cpp +++ b/src/multimedia/video/qvideotexturehelper.cpp @@ -391,11 +391,10 @@ static QMatrix4x4 colorMatrix(const QVideoFrameFormat &format) default: case QVideoFrameFormat::ColorSpace_BT709: if (format.colorRange() == QVideoFrameFormat::ColorRange_Full) - return QMatrix4x4( - 1.f, 0.000f, 1.5748f, -0.8774f, - 1.f, -0.187324f, -0.468124f, 0.327724f, - 1.f, 1.8556f, 0.000f, -0.9278f, - 0.0f, 0.000f, 0.000f, 1.0000f); + return QMatrix4x4(1.0f, 0.0f, 1.5748f, -0.790488f, + 1.0f, -0.187324f, -0.468124f, 0.329010f, + 1.0f, 1.855600f, 0.0f, -0.931439f, + 0.0f, 0.0f, 0.0f, 1.0f); return QMatrix4x4( 1.1644f, 0.000f, 1.7928f, -0.9731f, 1.1644f, -0.2132f, -0.5329f, 0.3015f, |