videoscale: disable chroma and matrix operations
authorWim Taymans <wtaymans@redhat.com>
Tue, 27 Jan 2015 08:51:47 +0000 (09:51 +0100)
committerWim Taymans <wtaymans@redhat.com>
Tue, 27 Jan 2015 09:52:29 +0000 (10:52 +0100)
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

index 4da1a9f..cb6c1e2 100644 (file)
@@ -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,