diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-04-18 22:18:24 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-04-29 19:28:20 +0200 |
commit | 5f396b9a71ace3ad2bc045146309e92498bfe879 (patch) | |
tree | efd97b94f4370c2c02550a29e5b39724771ad79e | |
parent | 2cb7ac0192fdc747d7a665a92b6d71fb924f33b9 (diff) |
videobalance: Add support for Y41B, Y42B and Y444
-rw-r--r-- | 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 391fc02e0..b20fe3d89 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: |