libcamera: stream: Add and use toString() method to StreamConfiguration
Add a toString() method to the StreamConfiguration class, and replace all manually coded implementations through the source code. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -596,9 +596,7 @@ int Camera::configureStreams(const CameraConfiguration &config)
|
||||
return -EINVAL;
|
||||
|
||||
const StreamConfiguration &cfg = config[stream];
|
||||
msg << " (" << index << ") " << cfg.width << "x"
|
||||
<< cfg.height << "-0x" << std::hex << std::setfill('0')
|
||||
<< std::setw(8) << cfg.pixelFormat;
|
||||
msg << " (" << index << ") " << cfg.toString();
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user