[PATCH v2 0/4] MediaLink: Provide a string representation

Kieran Bingham kieran.bingham at ideasonboard.com
Wed Sep 11 23:18:12 CEST 2024


Provide a .toString() helper and a corresponding overload<< operator to
directly report a string representation of a Link in a common and
defined way.

Patches 2 and 3 then replace existing locations that report MediaLink
objects in a string form to use the new shorthand, and I have more
development on top which will also use this.

Following a recommendation from the previous iteration, this further
breaks the helpers down and adds a MediaPad helper too.

Kieran Bingham (4):
  libcamera: media_object: Add MediaPad string representations
  libcamera: media_object: Add MediaLink string representations
  libcamera: media_device: Use MediaLink string helper
  libcamera: pipeline: simple: Use MediaLink string helper

 include/libcamera/internal/media_object.h |  8 ++++
 src/libcamera/media_device.cpp            | 12 +-----
 src/libcamera/media_object.cpp            | 50 +++++++++++++++++++++++
 src/libcamera/pipeline/simple/simple.cpp  |  7 +---
 4 files changed, 62 insertions(+), 15 deletions(-)

-- 
2.46.0



More information about the libcamera-devel mailing list