libcamera: stream: Add color space to configuration string representation
Extend the string representation of StreamConfiguration, as returned by the toString() and operator<<() functions, with color space information. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
This commit is contained in:
parent
8751369c5b
commit
9b50d3c23d
1 changed files with 2 additions and 1 deletions
|
@ -407,7 +407,8 @@ std::string StreamConfiguration::toString() const
|
|||
*/
|
||||
std::ostream &operator<<(std::ostream &out, const StreamConfiguration &cfg)
|
||||
{
|
||||
out << cfg.size << "-" << cfg.pixelFormat;
|
||||
out << cfg.size << "-" << cfg.pixelFormat << "/"
|
||||
<< ColorSpace::toString(cfg.colorSpace);
|
||||
return out;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue