[gst-cvs] gst-plugins-good: videoflip: Add support for Y41B, Y42B and Y444
Sebastian Dröge
slomo at kemper.freedesktop.org
Thu Apr 29 10:36:23 PDT 2010
Module: gst-plugins-good
Branch: master
Commit: 516b5f7f2e6e37cdfb24ae5b555789f496c23ce9
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=516b5f7f2e6e37cdfb24ae5b555789f496c23ce9
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Sun Apr 18 14:31:36 2010 +0200
videoflip: Add support for Y41B, Y42B and Y444
---
gst/videofilter/gstvideoflip.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c
index 6341576..506eef9 100644
--- a/gst/videofilter/gstvideoflip.c
+++ b/gst/videofilter/gstvideoflip.c
@@ -67,14 +67,16 @@ static GstStaticPadTemplate gst_video_flip_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12 }"))
+ GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV
+ ("{ IYUV, I420, YV12, Y41B, Y42B, Y444 }"))
);
static GstStaticPadTemplate gst_video_flip_sink_template =
GST_STATIC_PAD_TEMPLATE ("sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
- GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("{ IYUV, I420, YV12 }"))
+ GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV
+ ("{ IYUV, I420, YV12, Y41B, Y42B, Y444 }"))
);
#define GST_TYPE_VIDEO_FLIP_METHOD (gst_video_flip_method_get_type())
@@ -161,7 +163,6 @@ gst_video_flip_get_unit_size (GstBaseTransform * btrans, GstCaps * caps,
GstVideoFormat format;
gint width, height;
-
if (!gst_video_format_parse_caps (caps, &format, &width, &height))
return FALSE;
@@ -494,6 +495,9 @@ gst_video_flip_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
switch (vf->format) {
case GST_VIDEO_FORMAT_I420:
case GST_VIDEO_FORMAT_YV12:
+ case GST_VIDEO_FORMAT_Y41B:
+ case GST_VIDEO_FORMAT_Y42B:
+ case GST_VIDEO_FORMAT_Y444:
vf->process = gst_video_flip_planar_yuv;
break;
default:
More information about the Gstreamer-commits
mailing list