imagefreeze: Add support for JPEG / PNG

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7660>
This commit is contained in:
Sebastian Dröge 2024-10-14 12:35:33 +03:00 committed by GStreamer Marge Bot
parent 2dee333f2e
commit 38392f6049
2 changed files with 6 additions and 4 deletions

View file

@ -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"
}

View file

@ -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