libcamera: stream: Turn StreamRole into scoped enumeration
The StreamRole enum has enumerators such as 'Raw' that are too generic to be in the global libcamera namespace. Turn it into a scoped enum to avoid namespace clashes, and update users accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -488,7 +488,7 @@ int CameraCapabilities::initializeStreamConfigurations()
|
||||
* \todo Get this from the camera properties once defined
|
||||
*/
|
||||
std::unique_ptr<CameraConfiguration> cameraConfig =
|
||||
camera_->generateConfiguration({ StillCapture });
|
||||
camera_->generateConfiguration({ StreamRole::StillCapture });
|
||||
if (!cameraConfig) {
|
||||
LOG(HAL, Error) << "Failed to get maximum resolution";
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user