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>
This commit is contained in:
Laurent Pinchart 2021-11-01 09:15:03 +00:00 committed by Kieran Bingham
parent 9e3470ad3e
commit 364ae3b78d
3 changed files with 86 additions and 86 deletions

View file

@ -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()