[0/3] MediaLink: Provide a string representation
mbox series

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

Message

Kieran Bingham Aug. 15, 2024, 9:09 p.m. UTC
While developing on the RkISP1 pipeline handler, I found myself
replicating instances of printing a MediaLink.

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.

Kieran Bingham (3):
  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 |  4 ++++
 src/libcamera/media_device.cpp            | 14 ++++---------
 src/libcamera/media_object.cpp            | 25 +++++++++++++++++++++++
 src/libcamera/pipeline/simple/simple.cpp  |  7 ++-----
 4 files changed, 35 insertions(+), 15 deletions(-)