From dc7fc90573b99bbc6d21a25a741891471d68f274 Mon Sep 17 00:00:00 2001 From: Han-Lin Chen Date: Tue, 19 Apr 2022 20:42:20 +0800 Subject: libcamera: geometry: Correct the string representation of Rectangle Change the string representation of class Rectangle from "(top x left)/width x height" to "(top, left)/width x height". Signed-off-by: Han-Lin Chen Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Paul Elder Signed-off-by: Laurent Pinchart --- src/libcamera/geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp index 3b366af2..e50b46c5 100644 --- a/src/libcamera/geometry.cpp +++ b/src/libcamera/geometry.cpp @@ -841,7 +841,7 @@ bool operator==(const Rectangle &lhs, const Rectangle &rhs) */ std::ostream &operator<<(std::ostream &out, const Rectangle &r) { - out << "(" << r.x << "x" << r.y << ")/" << r.width << "x" << r.height; + out << "(" << r.x << ", " << r.y << ")/" << r.width << "x" << r.height; return out; } -- cgit v1.2.1