[gst-cvs] gst-plugins-good: [MOVED FROM BAD 46/56] deinterlace2: Add support for YVYU colorspace

Sebastian Dröge slomo at kemper.freedesktop.org
Wed May 13 01:50:11 PDT 2009


Module: gst-plugins-good
Branch: master
Commit: 1a7323d2d41d58e96a3bd9585c877823f37330e3
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=1a7323d2d41d58e96a3bd9585c877823f37330e3

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Apr 15 14:47:49 2009 +0200

[MOVED FROM BAD 46/56] deinterlace2: Add support for YVYU colorspace

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 |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gst/deinterlace2/gstdeinterlace2.c b/gst/deinterlace2/gstdeinterlace2.c
index 3d724d7..f703bd7 100644
--- a/gst/deinterlace2/gstdeinterlace2.c
+++ b/gst/deinterlace2/gstdeinterlace2.c
@@ -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);





More information about the Gstreamer-commits mailing list