From 3db8879f25fcd6b124d196850a58f5015d5be0e7 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 27 Jan 2015 09:51:47 +0100 Subject: [PATCH] videoscale: disable chroma and matrix operations Ignore chroma subsampling and color matrix transformations like the old videoscale used to do. This is to make the performance like it was before. See https://bugzilla.gnome.org/show_bug.cgi?id=741987 --- gst/videoscale/gstvideoscale.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 4da1a9f51e..cb6c1e20d5 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -602,7 +602,9 @@ gst_video_scale_set_info (GstVideoFilter * filter, GstCaps * in, GST_VIDEO_CONVERTER_OPT_DEST_WIDTH, G_TYPE_INT, out_info->width - videoscale->borders_w, GST_VIDEO_CONVERTER_OPT_DEST_HEIGHT, G_TYPE_INT, - out_info->height - videoscale->borders_h, NULL); + out_info->height - videoscale->borders_h, + GST_VIDEO_CONVERTER_OPT_MATRIX_MODE, G_TYPE_STRING, "none", + GST_VIDEO_CONVERTER_OPT_CHROMA_MODE, G_TYPE_STRING, "none", NULL); if (videoscale->gamma_decode) { gst_structure_set (options,