diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-04-29 04:31:48 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-04 14:11:31 +0300 |
commit | 08d613311371ef26da7b6c226d1e35d12be0ca32 (patch) | |
tree | 68f27d73b327f486f601b973936e16419d432aa6 /include | |
parent | 2efd8ab36ae3cde16d772a7f6285b592662e8630 (diff) |
libcamera: bayer_format: Add operator<<()
Implement the stream output operator<<() for the BayerFormat class to
simplify printing them.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/bayer_format.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <ostream> #include <stdint.h> #include <string> @@ -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 */ |