[gst-cvs] gst-plugins-good: videobalance: 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: 5f396b9a71ace3ad2bc045146309e92498bfe879
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=5f396b9a71ace3ad2bc045146309e92498bfe879
Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date: Sun Apr 18 22:18:24 2010 +0200
videobalance: Add support for Y41B, Y42B and Y444
---
gst/videofilter/gstvideobalance.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c
index 391fc02..b20fe3d 100644
--- a/gst/videofilter/gstvideobalance.c
+++ b/gst/videofilter/gstvideobalance.c
@@ -78,14 +78,16 @@ static GstStaticPadTemplate gst_video_balance_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_balance_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 }"))
);
@@ -262,6 +264,9 @@ gst_video_balance_set_caps (GstBaseTransform * base, GstCaps * incaps,
switch (videobalance->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:
videobalance->process = gst_video_balance_planar_yuv;
break;
default:
More information about the Gstreamer-commits
mailing list