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 <hanlinchen@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Han-Lin Chen 2022-04-19 20:42:20 +08:00 committed by Laurent Pinchart
parent c730dc7479
commit dc7fc90573

View file

@ -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;
}