From 38392f6049754f12534b126d63bacf376a4c4122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Oct 2024 12:35:33 +0300 Subject: [PATCH] imagefreeze: Add support for JPEG / PNG Part-of: --- subprojects/gst-plugins-good/docs/gst_plugins_cache.json | 4 ++-- .../gst-plugins-good/gst/imagefreeze/gstimagefreeze.c | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json index 61bebed7ac..4fb78ca246 100644 --- a/subprojects/gst-plugins-good/docs/gst_plugins_cache.json +++ b/subprojects/gst-plugins-good/docs/gst_plugins_cache.json @@ -8055,12 +8055,12 @@ "long-name": "Still frame stream generator", "pad-templates": { "sink": { - "caps": "video/x-raw(ANY):\n\nvideo/x-bayer(ANY):\n", + "caps": "video/x-raw(ANY):\n\nvideo/x-bayer(ANY):\n\nimage/jpeg(ANY):\n\nimage/png(ANY):\n", "direction": "sink", "presence": "always" }, "src": { - "caps": "video/x-raw(ANY):\n\nvideo/x-bayer(ANY):\n", + "caps": "video/x-raw(ANY):\n\nvideo/x-bayer(ANY):\n\nimage/jpeg(ANY):\n\nimage/png(ANY):\n", "direction": "src", "presence": "always" } diff --git a/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c b/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c index 2a897c1e63..8a802f4a8d 100644 --- a/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c +++ b/subprojects/gst-plugins-good/gst/imagefreeze/gstimagefreeze.c @@ -89,11 +89,13 @@ static gboolean gst_image_freeze_src_query (GstPad * pad, GstObject * parent, static GstStaticPadTemplate sink_pad_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw(ANY); video/x-bayer(ANY)")); + GST_STATIC_CAPS + ("video/x-raw(ANY); video/x-bayer(ANY); image/jpeg(ANY); image/png(ANY)")); static GstStaticPadTemplate src_pad_template = GST_STATIC_PAD_TEMPLATE ("src", GST_PAD_SRC, GST_PAD_ALWAYS, - GST_STATIC_CAPS ("video/x-raw(ANY); video/x-bayer(ANY)")); + GST_STATIC_CAPS + ("video/x-raw(ANY); video/x-bayer(ANY); image/jpeg(ANY); image/png(ANY)")); GST_DEBUG_CATEGORY_STATIC (gst_image_freeze_debug); #define GST_CAT_DEFAULT gst_image_freeze_debug