[PATCH 0/3] MediaLink: Provide a string representation
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Aug 15 23:09:22 CEST 2024
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(-)
--
2.34.1
More information about the libcamera-devel
mailing list