diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-18 18:32:32 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-19 13:38:14 +0300 |
commit | 0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 (patch) | |
tree | 77b34c0012dbb70722a2e6217787317234e5593d /include | |
parent | 8cf52e378d60cbd255a20eb51827e17814264073 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/stream.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <string> + #include <libcamera/buffer.h> #include <libcamera/geometry.h> @@ -20,6 +22,8 @@ struct StreamConfiguration { unsigned int pixelFormat; unsigned int bufferCount; + + std::string toString() const; }; class StreamUsage |