From b7d4e576ea4e0320e619f5f46a9f76e83a30574c Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 14 Aug 2024 10:13:44 -0400 Subject: [PATCH] v4l2object: Expose convertion from v4l2 fourcc to GstVideoFormat Part-of: --- subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c | 2 +- subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c index 36a396cd94..502fdf4d91 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c @@ -1347,7 +1347,7 @@ gst_v4l2_object_get_format_list (GstV4l2Object * v4l2object) return v4l2object->formats; } -static GstVideoFormat +GstVideoFormat gst_v4l2_object_v4l2fourcc_to_video_format (guint32 fourcc) { GstVideoFormat format; diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h index 4716a05c6e..1485fbe91f 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h @@ -324,6 +324,8 @@ GstBufferPool * gst_v4l2_object_get_buffer_pool (GstV4l2Object * v4l2object); GstStructure * gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc); +GstVideoFormat gst_v4l2_object_v4l2fourcc_to_video_format (guint32 fourcc); + GstFlowReturn gst_v4l2_object_poll (GstV4l2Object * v4l2object, GstClockTime timeout); gboolean gst_v4l2_object_subscribe_event (GstV4l2Object * v4l2object, guint32 event);