mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
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
This commit is contained in:
parent
6ddab6918d
commit
5070d6367e
1 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue