summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2024-08-14 10:13:44 -0400
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-09-23 19:58:51 +0000
commitb7d4e576ea4e0320e619f5f46a9f76e83a30574c (patch)
treedbd99e5fe0b40622f74d3b30a0ae54416dd541fb
parent87398e1f8bb2d8d4205ee9e05c1ab3f6627d9656 (diff)
v4l2object: Expose convertion from v4l2 fourcc to GstVideoFormat
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7540>
-rw-r--r--subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.c2
-rw-r--r--subprojects/gst-plugins-good/sys/v4l2/gstv4l2object.h2
2 files changed, 3 insertions, 1 deletions
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);