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:
Laurent Pinchart
2022-10-23 02:51:10 +03:00
parent baf3be12ef
commit 81e7689bb1
5 changed files with 33 additions and 16 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ private:
StreamFormats formats_;
};
enum StreamRole {
enum class StreamRole {
Raw,
StillCapture,
VideoRecording,