From c3cfb404aeb7f7cc53a5a280c6eb0f651629913f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 12 Jun 2010 13:59:32 +0200 Subject: [PATCH] videoscale: Add support for more gray formats --- gst/videoscale/gstvideoscale.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index 962ccff975..9c9b47efe8 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -102,8 +102,11 @@ static GstStaticCaps gst_video_scale_format_caps[] = { GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB_16), GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB_15), GST_STATIC_CAPS (GST_VIDEO_CAPS_GRAY16 ("BYTE_ORDER")), + GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("Y16 ")), GST_STATIC_CAPS (GST_VIDEO_CAPS_GRAY8), - GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("Y800")) + GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("Y800")), + GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("Y8 ")), + GST_STATIC_CAPS (GST_VIDEO_CAPS_YUV ("GREY")) }; #define GST_TYPE_VIDEO_SCALE_METHOD (gst_video_scale_method_get_type()) @@ -985,6 +988,7 @@ gst_video_scale_transform (GstBaseTransform * trans, GstBuffer * in, break; case GST_VIDEO_FORMAT_GRAY16_LE: case GST_VIDEO_FORMAT_GRAY16_BE: + case GST_VIDEO_FORMAT_Y16: vs_image_scale_nearest_Y16 (&dest, &src, videoscale->tmp_buf); break; case GST_VIDEO_FORMAT_I420: