Related |
show
-
[libcamera-devel,v3,00/27] GStreamer Element for libcamera
-
[libcamera-devel,v3,01/27] Add GStreamer plugin and element skeleton
-
[libcamera-devel,v3,02/27] gst: Add utility to convert StreamFormats to GstCaps
-
[libcamera-devel,v3,03/27] gst: Add initial device provider
-
[libcamera-devel,v3,04/27] gst: utils: Add simple scoped lockers for GMutex and GRectMutex
-
[libcamera-devel,v3,05/27] gst: Add pads to the source
-
[libcamera-devel,v3,06/27] gst: libcamerasrc: Allocate and add static pad
-
[libcamera-devel,v3,07/27] gst: libcamerasrc: Add camera-name property
-
[libcamera-devel,v3,08/27] gst: libcamerasrc: Add a debug category
-
[libcamera-devel,v3,09/27] gst: libcamerasrc: Implement selection and acquisition
-
[libcamera-devel,v3,10/27] gst: libcamerasrc: Add a task for the streaming thread
-
[libcamera-devel,v3,11/27] gst: libcamerapad: Add a method to access the role
-
[libcamera-devel,v3,12/27] gst: libcamerasrc: Store the srcpad in a vector
-
[libcamera-devel,v3,13/27] gst: libcamerasrc: Send stream start event
-
[libcamera-devel,v3,14/27] gst: utils: Add StreamConfiguration helpers
-
[libcamera-devel,v3,15/27] gst: libcamerasrc: Implement minimal caps negotiation
-
[libcamera-devel,v3,16/27] gst: libcamerasrc: Push segment event
-
[libcamera-devel,v3,17/27] gst: Add a pool and an allocator implementation
-
[libcamera-devel,v3,18/27] gst: libcamerapad: Allow storing a pool
-
[libcamera-devel,v3,19/27] gst: libcamerasrc: Allocate and release buffers
-
[libcamera-devel,v3,20/27] gst: Add getters for Stream and FrameBuffer
-
[libcamera-devel,v3,21/27] gst: pad: Add method to store retrieve pending buffers
-
[libcamera-devel,v3,22/27] gst: libcamerasrc: Implement initial streaming
-
[libcamera-devel,v3,23/27] gst: libcamerasrc: Implement timestamp support
-
[libcamera-devel,v3,24/27] gst: libcamerasrc: Add a TODO comment
-
[libcamera-devel,v3,25/27] gst: utils: Factor-out the task resume helper
-
[libcamera-devel,v3,26/27] gst: libcamerasrc: Prevent src task deadlock on exhausted buffer pool
-
[libcamera-devel,v3,27/27] gst: Document dependencies and quick usage
|
From: Nicolas Dufresne <nicolas.dufresne@collabora.com> This patchset introduces two GStreamer features for libcamera. A GstDeviceProvider that allow enumerating the cameras and a libcamerasrc element the allow streaming from a selected camera. This is an early implementation that is not feature complete. It is designed to support multiple streams even though it currently only allow one srcpad. The goal of this submission is to get an inital element merged so that further improvement can happen incrementally. To test these features, you'll need GStreamer 1.14 or more. To get the list of cameras you can run the following. Regression exist in the monitor of GStreamer 1.16.2 that may cause a crash, and also in master that may show nothing. This will be addressed in later release of GStreamer. gst-device-monitor-1.0 Video/Source To stream from a camera, you can use the following pipeline: gst-launch-1.0 libcamerasrc ! videoconvert ! autovideosink Changes since v2: - Fixed review comments - Fix include order and seperation - Fixed C++ member naming in C++ wrappers - Fixed (provided by Jakub) a crash in caps generator - Moved from custom callback to GObject signal in buffer pool Changes since v1: - Fixed review comments - Use a C++ class for glib mutex scoped locker - Fixed a potential deadlock on exhausted buffer pool - Minimum GStreamer requirement now set to 1.14 Jakub Adam (2): gst: utils: Factor-out the task resume helper gst: libcamerasrc: Prevent src task deadlock on exhausted buffer pool Nicolas Dufresne (25): Add GStreamer plugin and element skeleton gst: Add utility to convert StreamFormats to GstCaps gst: Add initial device provider gst: utils: Add simple scoped lockers for GMutex and GRectMutex gst: Add pads to the source gst: libcamerasrc: Allocate and add static pad gst: libcamerasrc: Add camera-name property gst: libcamerasrc: Add a debug category gst: libcamerasrc: Implement selection and acquisition gst: libcamerasrc: Add a task for the streaming thread gst: libcamerapad: Add a method to access the role gst: libcamerasrc: Store the srcpad in a vector gst: libcamerasrc: Send stream start event gst: utils: Add StreamConfiguration helpers gst: libcamerasrc: Implement minimal caps negotiation gst: libcamerasrc: Push segment event gst: Add a pool and an allocator implementation gst: libcamerapad: Allow storing a pool gst: libcamerasrc: Allocate and release buffers gst: Add getters for Stream and FrameBuffer gst: pad: Add method to store retrieve pending buffers gst: libcamerasrc: Implement initial streaming gst: libcamerasrc: Implement timestamp support gst: libcamerasrc: Add a TODO comment gst: Document dependencies and quick usage README.rst | 19 + meson_options.txt | 5 + src/gstreamer/gstlibcamera-utils.cpp | 180 +++++++ src/gstreamer/gstlibcamera-utils.h | 73 +++ src/gstreamer/gstlibcamera.c | 27 + src/gstreamer/gstlibcameraallocator.cpp | 253 +++++++++ src/gstreamer/gstlibcameraallocator.h | 32 ++ src/gstreamer/gstlibcamerapad.cpp | 198 +++++++ src/gstreamer/gstlibcamerapad.h | 37 ++ src/gstreamer/gstlibcamerapool.cpp | 147 ++++++ src/gstreamer/gstlibcamerapool.h | 34 ++ src/gstreamer/gstlibcameraprovider.cpp | 238 +++++++++ src/gstreamer/gstlibcameraprovider.h | 23 + src/gstreamer/gstlibcamerasrc.cpp | 654 ++++++++++++++++++++++++ src/gstreamer/gstlibcamerasrc.h | 22 + src/gstreamer/meson.build | 30 ++ src/meson.build | 2 + 17 files changed, 1974 insertions(+) create mode 100644 src/gstreamer/gstlibcamera-utils.cpp create mode 100644 src/gstreamer/gstlibcamera-utils.h create mode 100644 src/gstreamer/gstlibcamera.c create mode 100644 src/gstreamer/gstlibcameraallocator.cpp create mode 100644 src/gstreamer/gstlibcameraallocator.h create mode 100644 src/gstreamer/gstlibcamerapad.cpp create mode 100644 src/gstreamer/gstlibcamerapad.h create mode 100644 src/gstreamer/gstlibcamerapool.cpp create mode 100644 src/gstreamer/gstlibcamerapool.h create mode 100644 src/gstreamer/gstlibcameraprovider.cpp create mode 100644 src/gstreamer/gstlibcameraprovider.h create mode 100644 src/gstreamer/gstlibcamerasrc.cpp create mode 100644 src/gstreamer/gstlibcamerasrc.h create mode 100644 src/gstreamer/meson.build