v4l2transform: allow to change pixel aspect ratio
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 20 May 2016 10:49:53 +0000 (12:49 +0200)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 6 Jun 2016 21:50:41 +0000 (17:50 -0400)
Scalers may change width and height independently,
allow to change pixel aspect ratio.

https://bugzilla.gnome.org/show_bug.cgi?id=766712

sys/v4l2/gstv4l2transform.c

index 7819129..2e29f10 100644 (file)
@@ -375,7 +375,7 @@ gst_v4l2_transform_caps_remove_format_info (GstCaps * caps)
         && gst_caps_features_is_equal (f,
             GST_CAPS_FEATURES_MEMORY_SYSTEM_MEMORY))
       gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site",
-          "width", "height", NULL);
+          "width", "height", "pixel-aspect-ratio", NULL);
 
     gst_caps_append_structure_full (res, st, gst_caps_features_copy (f));
   }