[PATCH 2/5] winegstreamer: Avoid performing color matrix conversions in videoconvert.
Zebediah Figura
z.figura12 at gmail.com
Mon Jun 22 17:56:04 CDT 2020
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>
---
dlls/winegstreamer/gstdemux.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 11ca8f90bb0..8f89935b82b 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)))
{
--
2.27.0
More information about the wine-devel
mailing list