diff options
author | Joan Pau Beltran <joanpau.beltran@socib.cat> | 2015-08-10 22:03:48 +0200 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2015-08-10 17:21:03 -0400 |
commit | 5070d6367e6581aa62396b4f64ff2e0537696522 (patch) | |
tree | 34d4321e49ff8bb2a76a7215a6ab399ddba0392f | |
parent | 6ddab6918d074591130bc444358a0f0e4633becc (diff) |
videorate: add support for bayer formats
Since the videorate element just duplicates or drops frames
to achieve the desired framerate, it can accept video/x-bayer media
(in any format), which are not present in the current caps.
Just add "video/x-bayer(ANY);" to the caps of the static pad template
(fixing line style to pass the indent commit hook).
https://bugzilla.gnome.org/show_bug.cgi?id=753483
-rw-r--r-- | gst/videorate/gstvideorate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 19441c70e..15b11ffeb 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -111,14 +111,16 @@ static GstStaticPadTemplate gst_video_rate_src_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw(ANY);" "image/jpeg(ANY);" "image/png(ANY)") + GST_STATIC_CAPS ("video/x-raw(ANY);" "video/x-bayer(ANY);" + "image/jpeg(ANY);" "image/png(ANY)") ); static GstStaticPadTemplate gst_video_rate_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw(ANY);" "image/jpeg(ANY);" "image/png(ANY)") + GST_STATIC_CAPS ("video/x-raw(ANY);" "video/x-bayer(ANY);" + "image/jpeg(ANY);" "image/png(ANY)") ); static void gst_video_rate_swap_prev (GstVideoRate * videorate, |