diff options
author | Joshua M. Doe <oss@nvl.army.mil> | 2012-11-19 03:22:13 -0500 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-11-20 13:48:43 +0100 |
commit | 9c917b84916e57f1b4312a36de5bae013dca58e9 (patch) | |
tree | a4859f35ea474ac9b2f161ce52b3e2cbc0340e55 | |
parent | 21251233e056267e19696791dee25ec2b88740ae (diff) |
videoflip: Add gray 8/16 support
-rw-r--r-- | gst/videofilter/gstvideoflip.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/gst/videofilter/gstvideoflip.c b/gst/videofilter/gstvideoflip.c index 3c03a09fc..1c5888611 100644 --- a/gst/videofilter/gstvideoflip.c +++ b/gst/videofilter/gstvideoflip.c @@ -79,8 +79,9 @@ static GstStaticPadTemplate gst_video_flip_src_template = GST_VIDEO_CAPS_YUV ("YV12") ";" GST_VIDEO_CAPS_YUV ("IYUV") ";" GST_VIDEO_CAPS_YUV ("YUY2") ";" GST_VIDEO_CAPS_YUV ("UYVY") ";" GST_VIDEO_CAPS_YUV ("NV12") ";" GST_VIDEO_CAPS_YUV ("NV21") ";" - GST_VIDEO_CAPS_YUV ("YVYU") - + GST_VIDEO_CAPS_YUV ("YVYU") ";" GST_VIDEO_CAPS_GRAY8 ";" + GST_VIDEO_CAPS_GRAY16 ("LITTLE_ENDIAN") ";" + GST_VIDEO_CAPS_GRAY16 ("BIG_ENDIAN") ) ); @@ -99,7 +100,9 @@ static GstStaticPadTemplate gst_video_flip_sink_template = GST_VIDEO_CAPS_YUV ("YV12") ";" GST_VIDEO_CAPS_YUV ("IYUV") ";" GST_VIDEO_CAPS_YUV ("YUY2") ";" GST_VIDEO_CAPS_YUV ("UYVY") ";" GST_VIDEO_CAPS_YUV ("NV12") ";" GST_VIDEO_CAPS_YUV ("NV21") ";" - GST_VIDEO_CAPS_YUV ("YVYU") + GST_VIDEO_CAPS_YUV ("YVYU") ";" GST_VIDEO_CAPS_GRAY8 ";" + GST_VIDEO_CAPS_GRAY16 ("LITTLE_ENDIAN") ";" + GST_VIDEO_CAPS_GRAY16 ("BIG_ENDIAN") ) ); @@ -1073,6 +1076,9 @@ gst_video_flip_set_caps (GstBaseTransform * btrans, GstCaps * incaps, case GST_VIDEO_FORMAT_BGRx: case GST_VIDEO_FORMAT_RGB: case GST_VIDEO_FORMAT_BGR: + case GST_VIDEO_FORMAT_GRAY8: + case GST_VIDEO_FORMAT_GRAY16_BE: + case GST_VIDEO_FORMAT_GRAY16_LE: vf->process = gst_video_flip_packed_simple; break; case GST_VIDEO_FORMAT_NV12: |