deinterlace2: Add support for YVYU colorspace
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 Apr 2009 12:47:49 +0000 (14:47 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 Apr 2009 12:47:49 +0000 (14:47 +0200)
This is the same as YUY2 with just Cr and Cb swapped. As
we don't make a difference between them when deinterlacing
this works.

gst/deinterlace2/gstdeinterlace2.c

index 3d724d7e21b689e7ffab02184608a9af01b36d3e..f703bd76bf4cae55178df10c29f6ed2f8d2e1424 100644 (file)
@@ -328,13 +328,15 @@ gst_deinterlace2_field_layout_get_type (void)
 static GstStaticPadTemplate src_templ = GST_STATIC_PAD_TEMPLATE ("src",
     GST_PAD_SRC,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("YUY2"))
+    GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("YUY2") ";"
+        GST_VIDEO_CAPS_YUV ("YVYU"))
     );
 
 static GstStaticPadTemplate sink_templ = GST_STATIC_PAD_TEMPLATE ("sink",
     GST_PAD_SINK,
     GST_PAD_ALWAYS,
-    GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("YUY2"))
+    GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("YUY2") ";"
+        GST_VIDEO_CAPS_YUV ("YVYU"))
     );
 
 static void gst_deinterlace2_finalize (GObject * self);