From 08d613311371ef26da7b6c226d1e35d12be0ca32 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 29 Apr 2022 04:31:48 +0300 Subject: libcamera: bayer_format: Add operator<<() Implement the stream output operator<<() for the BayerFormat class to simplify printing them. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- include/libcamera/internal/bayer_format.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/libcamera/internal/bayer_format.h b/include/libcamera/internal/bayer_format.h index cb20bf9b..7d3e37c6 100644 --- a/include/libcamera/internal/bayer_format.h +++ b/include/libcamera/internal/bayer_format.h @@ -7,6 +7,7 @@ #pragma once +#include #include #include @@ -68,4 +69,6 @@ static inline bool operator!=(const BayerFormat &lhs, const BayerFormat &rhs) return !(lhs == rhs); } +std::ostream &operator<<(std::ostream &out, const BayerFormat &f); + } /* namespace libcamera */ -- cgit v1.2.1