From a741c0cf11e1747cb58023c2ad3f979fc5b23b79 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 18 Nov 2011 11:04:47 -0300 Subject: [PATCH] textoverlay: Sync the caps with the new supported formats Thanks to the use of the new video composition library, we gain support to more colospaces and formats, let's state it. --- ext/pango/gsttextoverlay.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c index 65d363ae72..5f7379840a 100644 --- a/ext/pango/gsttextoverlay.c +++ b/ext/pango/gsttextoverlay.c @@ -178,6 +178,8 @@ static GstStaticPadTemplate src_template_factory = GST_PAD_SRC, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" + GST_VIDEO_CAPS_RGB ";" + GST_VIDEO_CAPS_BGR ";" GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR ";" @@ -185,7 +187,9 @@ static GstStaticPadTemplate src_template_factory = GST_VIDEO_CAPS_BGRA ";" GST_VIDEO_CAPS_ARGB ";" GST_VIDEO_CAPS_ABGR ";" - GST_VIDEO_CAPS_YUV ("{AYUV, I420, YV12, UYVY, NV12, NV21}")) + GST_VIDEO_CAPS_YUV ("{I420, YV12, AYUV, YUY2, UYVY, v308, v210," + " v216, Y41B, Y42B, Y444, Y800, Y16, NV12, NV21, UYVP, A420," + " YUV9, IYU1}")) ); static GstStaticPadTemplate video_sink_template_factory = @@ -193,6 +197,8 @@ static GstStaticPadTemplate video_sink_template_factory = GST_PAD_SINK, GST_PAD_ALWAYS, GST_STATIC_CAPS (GST_VIDEO_CAPS_BGRx ";" + GST_VIDEO_CAPS_RGB ";" + GST_VIDEO_CAPS_BGR ";" GST_VIDEO_CAPS_RGBx ";" GST_VIDEO_CAPS_xRGB ";" GST_VIDEO_CAPS_xBGR ";" @@ -200,7 +206,9 @@ static GstStaticPadTemplate video_sink_template_factory = GST_VIDEO_CAPS_BGRA ";" GST_VIDEO_CAPS_ARGB ";" GST_VIDEO_CAPS_ABGR ";" - GST_VIDEO_CAPS_YUV ("{AYUV, I420, YV12, UYVY, NV12, NV21}")) + GST_VIDEO_CAPS_YUV ("{I420, YV12, AYUV, YUY2, UYVY, v308, v210," + " v216, Y41B, Y42B, Y444, Y800, Y16, NV12, NV21, UYVP, A420," + " YUV9, IYU1}")) ); static GstStaticPadTemplate text_sink_template_factory =