diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-10-23 02:51:10 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-11-25 10:52:06 +0200 |
commit | 81e7689bb168a74c0822846729d992128da97322 (patch) | |
tree | 9814d804ce74030697d411710170f3d03b180b05 /src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | |
parent | baf3be12effed489770aaf02b9df3b743d4b7e50 (diff) |
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>
Diffstat (limited to 'src/libcamera/pipeline/imx8-isi/imx8-isi.cpp')
-rw-r--r-- | src/libcamera/pipeline/imx8-isi/imx8-isi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp index e51457eb..0c67e35d 100644 --- a/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp +++ b/src/libcamera/pipeline/imx8-isi/imx8-isi.cpp @@ -599,7 +599,7 @@ PipelineHandlerISI::generateConfiguration(Camera *camera, Size size; switch (role) { - case StillCapture: + case StreamRole::StillCapture: /* * \todo Make sure the sensor can produce non-RAW formats * compatible with the ones supported by the pipeline. @@ -608,8 +608,8 @@ PipelineHandlerISI::generateConfiguration(Camera *camera, pixelFormat = formats::YUYV; break; - case Viewfinder: - case VideoRecording: + case StreamRole::Viewfinder: + case StreamRole::VideoRecording: /* * \todo Make sure the sensor can produce non-RAW formats * compatible with the ones supported by the pipeline. @@ -618,7 +618,7 @@ PipelineHandlerISI::generateConfiguration(Camera *camera, pixelFormat = formats::YUYV; break; - case Raw: { + case StreamRole::Raw: { /* * Make sure the sensor can generate a RAW format and * prefer the ones with a larger bitdepth. |