[libcamera-devel] [RFC 0/2] Add support for pipeline specific data to Cameras

Jacopo Mondi jacopo at jmondi.org
Tue Jan 22 19:12:23 CET 2019


RFC as I'm not sure about the idea of delegating ownership of platform data
to Cameras, as that requires the pipeline handler to dynamically allocate the
resources (if they go away at pipeline handler destruction time, is pointless
to store them in Camera).

The other way around is the idea of borrowing pipeline handler data to Cameras,
but as Cameras are shared objects, they might stay around longer that pipeline
handlers, and thus I felt it is safer to tie the CameraData lifetime to the one
of the Camera instance they're associated to.

Thanks
   j

Jacopo Mondi (2):
  libcamera: camera: Add CameraData
  libcamera: ipu3: Create CIO2 V4L2 devices

 include/libcamera/camera.h           | 13 ++++++++
 src/libcamera/camera.cpp             | 50 ++++++++++++++++++++++++++++
 src/libcamera/pipeline/ipu3/ipu3.cpp | 42 +++++++++++++++++++++++
 3 files changed, 105 insertions(+)

--
2.20.1



More information about the libcamera-devel mailing list