[clutter-gst/clutter-gst-3.0] video-sink: Fix colors in UHD videos



commit abc3743ca0741f6169c239c1ad8d14696f1abd61
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Sat Sep 3 16:43:50 2016 +0200

    video-sink: Fix colors in UHD videos
    
    The BT.2020 YUV to RGB conversion matrix was wrong.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770799

 clutter-gst/clutter-gst-video-sink.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter-gst/clutter-gst-video-sink.c b/clutter-gst/clutter-gst-video-sink.c
index 942c700..7a5a0ba 100644
--- a/clutter-gst/clutter-gst-video-sink.c
+++ b/clutter-gst/clutter-gst-video-sink.c
@@ -916,8 +916,8 @@ _matrix_from_colorimetry (GstVideoColorMatrix matrix)
                                  1.5748, -0.468124, 0.0     };
 #if GST_CHECK_VERSION(1, 6, 0)
   static const float bt2020[] = { 1.0,     1.0,      1.0,
-                                  0.0,     0.571353, 1.8814,
-                                  1.4746,  0.164553, 0.0     };
+                                  0.0,    -0.164553, 1.8814,
+                                  1.4746, -0.571353, 0.0     };
 #endif
 #if 0
   /* Original transformation from the clutter-gst 2.0/1.6 days.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]