mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
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:
parent
9e3470ad3e
commit
364ae3b78d
3 changed files with 86 additions and 86 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue