From a9b2ee2e00ce6e95f4e4ed4cbd60c96564f2085c Mon Sep 17 00:00:00 2001 From: Stefan Klug Date: Mon, 7 Jul 2025 10:55:10 +0200 Subject: [PATCH] pipeline: v4l2_subdevice: Add color space to format string representation To debug color issues in a pipeline it is necessary to know the color space used. Therefore add the color space to the string representation of V4L2SubdeviceFormat that is returned by toString() and operator<<(). Signed-off-by: Stefan Klug Reviewed-by: Kieran Bingham Reviewed-by: Isaac Scott --- src/libcamera/v4l2_subdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcamera/v4l2_subdevice.cpp b/src/libcamera/v4l2_subdevice.cpp index 33279654..ce6b0d38 100644 --- a/src/libcamera/v4l2_subdevice.cpp +++ b/src/libcamera/v4l2_subdevice.cpp @@ -949,6 +949,8 @@ std::ostream &operator<<(std::ostream &out, const V4L2SubdeviceFormat &f) else out << it->second.name; + out << "/" << ColorSpace::toString(f.colorSpace); + return out; }