Zebediah Figura : winegstreamer: Avoid performing color matrix conversions in videoconvert.

Alexandre Julliard julliard at winehq.org
Tue Jun 23 15:52:51 CDT 2020


Module: wine
Branch: master
Commit: fd25ba65e0eb9fedfb2cdfa2b7a4b16e0401dfdf
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=fd25ba65e0eb9fedfb2cdfa2b7a4b16e0401dfdf

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Jun 22 17:56:04 2020 -0500

winegstreamer: Avoid performing color matrix conversions in videoconvert.

This reduces the time videoconvert takes to process I420 -> YV12 from 15 ms to 0.8 ms on my system.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 11ca8f90bb..8f89935b82 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1022,6 +1022,9 @@ static void init_new_decoded_pad(GstElement *bin, GstPad *pad, struct gstdemux *
             goto out;
         }
 
+        /* Avoid expensive color matrix conversions. */
+        gst_util_set_object_arg(G_OBJECT(vconv), "matrix-mode", "none");
+
         /* GStreamer outputs RGB video top-down, but DirectShow expects bottom-up. */
         if (!(flip = gst_element_factory_make("videoflip", NULL)))
         {




More information about the wine-cvs mailing list