[libcamera-devel] [PATCH 0/3] libcamera: Add new Camera devices property
Jacopo Mondi
jacopo.mondi at ideasonboard.com
Wed Apr 19 11:45:16 CEST 2023
Hi Kieran
On Wed, Apr 19, 2023 at 09:58:18AM +0100, Kieran Bingham via libcamera-devel wrote:
> It can be beneficial to allow reporting the devices used by a camera to
> facilitate de-duplication of resources when handling cameras from a
> centralised infrastructure such as PipeWire.
>
This series allows to retrieve the list of dev_t a libcamera::Camera
handles by using a camera properties.
The CameraManager class however maintains a camerasByDevnum_ map that
associates a dev_t with the Camera it is owned by. It would be trivial
to reverse the map. Have you considered that ? Getting dev_t from the
manager seems more natural than doing so from the Camera (and would
avoid the additional template specialization for dev_t you don't like)
> Expose a new property on all cameras which reports a list of dev_t
> values representing devices used by the camera.
>
> Pipelines supported by media-controller will automatically register an
> entry for any video node present in the media graphs registered with the
> Pipeline Handler.
>
> Kieran Bingham (3):
> libcamera: controls: Support dev_t in an Integer32 type.
> libcamera: properties: Provide a Devices camera property
> libcamera: pipeline: Register device numbers with camera
>
> include/libcamera/controls.h | 5 +++++
> src/libcamera/pipeline_handler.cpp | 8 ++++++++
> src/libcamera/property_ids.yaml | 8 ++++++++
> 3 files changed, 21 insertions(+)
>
> --
> 2.34.1
>
More information about the libcamera-devel
mailing list