From 0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 18 Apr 2019 18:32:32 +0300 Subject: libcamera: stream: Add and use toString() method to StreamConfiguration Add a toString() method to the StreamConfiguration class, and replace all manually coded implementations through the source code. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/libcamera/stream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/libcamera/stream.h') diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h index 8a47930f..3caaefc9 100644 --- a/include/libcamera/stream.h +++ b/include/libcamera/stream.h @@ -7,6 +7,8 @@ #ifndef __LIBCAMERA_STREAM_H__ #define __LIBCAMERA_STREAM_H__ +#include + #include #include @@ -20,6 +22,8 @@ struct StreamConfiguration { unsigned int pixelFormat; unsigned int bufferCount; + + std::string toString() const; }; class StreamUsage -- cgit v1.2.1