[v2,0/4] MediaLink: Provide a string representation
mbox series

Message ID 20240911211816.73763-1-kieran.bingham@ideasonboard.com
Headers show
Series
  • MediaLink: Provide a string representation
Related show

Message

Kieran Bingham Sept. 11, 2024, 9:18 p.m. UTC
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(-)