[0/3] libcamera: pipeline: Use shared pointers for MediaDevice
mbox series

Message ID 20250404074624.2975182-1-paul.elder@ideasonboard.com
Headers show
Series
  • libcamera: pipeline: Use shared pointers for MediaDevice
Related show

Message

Paul Elder April 4, 2025, 7:46 a.m. UTC
This series switches the pipelines to use shared pointers of MediaDevice
instead of raw pointers. This will facilitate making more complex
pipeline handlers in the future, such as ones that contain multiple
pipelines.

Kieran Bingham (3):
  libcamera: v4l2: Support fromEntityName with shared_ptr<MediaDevice>
  libcamera: pipeline: utilise shared MediaDevice pointers
  libcamera: v4l2: Remove fromEntityName(MediaDevice*)

 include/libcamera/internal/pipeline_handler.h      |  8 ++++----
 include/libcamera/internal/v4l2_subdevice.h        |  2 +-
 include/libcamera/internal/v4l2_videodevice.h      |  2 +-
 src/libcamera/pipeline/imx8-isi/imx8-isi.cpp       |  2 +-
 src/libcamera/pipeline/ipu3/cio2.cpp               |  2 +-
 src/libcamera/pipeline/ipu3/cio2.h                 |  2 +-
 src/libcamera/pipeline/ipu3/imgu.cpp               |  3 ++-
 src/libcamera/pipeline/ipu3/imgu.h                 |  4 ++--
 src/libcamera/pipeline/ipu3/ipu3.cpp               |  4 ++--
 src/libcamera/pipeline/mali-c55/mali-c55.cpp       |  2 +-
 src/libcamera/pipeline/rkisp1/rkisp1.cpp           |  2 +-
 src/libcamera/pipeline/rkisp1/rkisp1_path.cpp      |  2 +-
 src/libcamera/pipeline/rkisp1/rkisp1_path.h        |  2 +-
 .../pipeline/rpi/common/pipeline_base.cpp          |  6 ++++--
 src/libcamera/pipeline/rpi/common/pipeline_base.h  |  9 ++++++---
 src/libcamera/pipeline/rpi/pisp/pisp.cpp           | 10 ++++++----
 src/libcamera/pipeline/rpi/vc4/vc4.cpp             | 13 +++++++++----
 src/libcamera/pipeline/simple/simple.cpp           | 13 +++++++------
 src/libcamera/pipeline/uvcvideo/uvcvideo.cpp       |  6 +++---
 src/libcamera/pipeline/vimc/vimc.cpp               |  6 +++---
 src/libcamera/pipeline_handler.cpp                 | 14 ++++++++------
 src/libcamera/v4l2_subdevice.cpp                   |  2 +-
 src/libcamera/v4l2_videodevice.cpp                 |  2 +-
 test/delayed_controls.cpp                          |  2 +-
 test/libtest/buffer_source.cpp                     |  2 +-
 25 files changed, 69 insertions(+), 53 deletions(-)