summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanjay NM <sanjay.nm@samsung.com>2014-09-22 17:14:29 +0530
committerSebastian Dröge <sebastian@centricular.com>2014-09-23 19:34:06 +0300
commit511dfd65de41d1dc69bf588459bdb3670cb03f6f (patch)
treec66fd37f6c63184cb3a4969396cae245d721cd28
parentb2398e3fd1cd637918c3b29c8144b9449c2a047b (diff)
videofilters: Add support for more YUV formats
https://bugzilla.gnome.org/show_bug.cgi?id=737111
-rw-r--r--gst/videofilters/gstzebrastripe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/videofilters/gstzebrastripe.c b/gst/videofilters/gstzebrastripe.c
index 840c010b9..0b08100e9 100644
--- a/gst/videofilters/gstzebrastripe.c
+++ b/gst/videofilters/gstzebrastripe.c
@@ -79,7 +79,7 @@ enum
/* pad templates */
#define VIDEO_CAPS GST_VIDEO_CAPS_MAKE( \
- "{ I420, Y444, Y42B, Y41B, YUY2, UYVY, AYUV }")
+ "{ I420, Y444, Y42B, Y41B, YUY2, UYVY, AYUV, NV12, NV21, YV12 }")
/* class initialization */
@@ -222,6 +222,9 @@ gst_zebra_stripe_transform_frame_ip (GstVideoFilter * filter,
case GST_VIDEO_FORMAT_Y444:
case GST_VIDEO_FORMAT_Y42B:
case GST_VIDEO_FORMAT_YUY2:
+ case GST_VIDEO_FORMAT_NV12:
+ case GST_VIDEO_FORMAT_NV21:
+ case GST_VIDEO_FORMAT_YV12:
break;
case GST_VIDEO_FORMAT_UYVY:
offset = 1;