summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-11-01 09:15:03 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-02 12:08:44 +0000
commit364ae3b78d3f0fc18c9bf1c2c3ee9fee1d80e68a (patch)
tree40b6baf78322b15f26e1c188266e38af6de5e8bb /include
parent9e3470ad3e4f03364c8160917117d62fde5a7d88 (diff)
libcamera: bayer_format: Turn BayerFormat::Packing into scoped enum
The unscoped enum BayerFormat::Packing leads to usage of the ambiguous BayerFormat::None enumerator. Turn the enumeration into a scoped enum to force usage of BayerFormat::Packing::None, and drop the now redundant "Packed" suffix for the CSI2 and IPU3 packing. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/bayer_format.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libcamera/internal/bayer_format.h b/include/libcamera/internal/bayer_format.h
index 723382d4..d9a56d74 100644
--- a/include/libcamera/internal/bayer_format.h
+++ b/include/libcamera/internal/bayer_format.h
@@ -27,10 +27,10 @@ public:
MONO = 4
};
- enum Packing : uint16_t {
+ enum class Packing : uint16_t {
None = 0,
- CSI2Packed = 1,
- IPU3Packed = 2,
+ CSI2 = 1,
+ IPU3 = 2,
};
constexpr BayerFormat()